Changeset 2636 for GTP/trunk/Lib/Vis/Preprocessing/src/QtInterface
- Timestamp:
- 01/23/08 06:32:46 (17 years ago)
- Location:
- GTP/trunk/Lib/Vis/Preprocessing/src/QtInterface
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Vis/Preprocessing/src/QtInterface/QtGlRenderer.cpp
r2635 r2636 17 17 #include "IntersectableWrapper.h" 18 18 #include "LogWriter.h" 19 19 #include "RayCaster.h" 20 20 21 21 … … 664 664 } 665 665 666 void QtGlRendererWidget::mouseReleaseEvent(QMouseEvent *e) 667 { 668 669 if (e->modifiers() & Qt::AltModifier) 670 if (mCurrentDynamicObjectIdx >= 0) { 671 // preprocessor->ScheduleUpdateDynamicObjects(); 672 } 673 } 674 666 675 void 667 676 QtGlRendererWidget::mouseMoveEvent(QMouseEvent *e) … … 722 731 tmi->ApplyWorldTransform(tm); 723 732 #else 724 SceneGraphLeaf *l = mViewCellsManager->GetPreprocessor()->mDynamicObjects[mCurrentDynamicObjectIdx]; 733 SceneGraphLeaf *l = 734 mViewCellsManager->GetPreprocessor()->mDynamicObjects[mCurrentDynamicObjectIdx]; 725 735 l->ApplyTransform(tm); 736 726 737 #endif 727 738 updateGL(); … … 744 755 } 745 756 746 void747 QtGlRendererWidget::mouseReleaseEvent(QMouseEvent *)748 {749 }750 757 751 758 void … … 1021 1028 connect(mControlWidget, SIGNAL(SetRotation(bool)), this, SLOT(SetRotation(bool))); 1022 1029 connect(mControlWidget, SIGNAL(SetScale(bool)), this, SLOT(SetScale(bool))); 1023 1030 1031 connect(mControlWidget, SIGNAL(UpdateDynamicObjects()), this, SLOT(UpdateDynamicObjects())); 1032 1024 1033 setWindowTitle("PVS Visualization"); 1025 1034 … … 1091 1100 ++ mCurrentDynamicObjectIdx; 1092 1101 1093 if (mViewCellsManager->GetPreprocessor()->LoadDynamicGeometry(filename)) 1094 cout << "Loading finished" << endl; 1095 else 1096 cerr << "Loading failed" << endl; 1097 1102 if (mViewCellsManager->GetPreprocessor()->LoadDynamicGeometry(filename)) { 1103 1104 cout << "Loading finished" << endl; 1105 } else 1106 cerr << "Loading failed" << endl; 1107 1098 1108 updateGL(); 1099 1109 } … … 1742 1752 1743 1753 vbox2->addStretch(1); 1754 1755 1756 QPushButton *button = new QPushButton("Update", groupBox); 1757 vbox2->addWidget(button); 1758 connect(button, SIGNAL(clicked()), SIGNAL(UpdateDynamicObjects())); 1759 1760 1744 1761 groupBox->setLayout(vbox2); 1745 1762 1746 1763 return groupBox; 1747 1764 } 1748 1749 1765 1750 1766 … … 2373 2389 } 2374 2390 2375 } 2391 void 2392 QtGlRendererWidget::UpdateDynamicObjects() 2393 { 2394 preprocessor->ScheduleUpdateDynamicObjects(); 2395 2396 } 2397 2398 } -
GTP/trunk/Lib/Vis/Preprocessing/src/QtInterface/QtGlRenderer.h
r2633 r2636 108 108 109 109 signals: 110 110 void UpdateDynamicObjects(); 111 111 void ComputeVisibility(); 112 112 void StopComputation(); … … 310 310 311 311 public slots: 312 312 void UpdateDynamicObjects(); 313 313 void UpdateAllPvs(); 314 314 void ComputeVisibility();
Note: See TracChangeset
for help on using the changeset viewer.