Changeset 2685 for GTP/trunk/Lib/Vis/Preprocessing/src/QtInterface
- Timestamp:
- 05/17/08 01:15:07 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Vis/Preprocessing/src/QtInterface/QtGlRenderer.cpp
r2683 r2685 581 581 glDrawElements(GL_TRIANGLES, mIndexBufferSize, GL_UNSIGNED_INT, mIndices); 582 582 583 #if 0//DYNAMIC_OBJECTS_HACK583 #if DYNAMIC_OBJECTS_HACK 584 584 // handle dynamic objects 585 585 DynamicObjectsContainer::const_iterator dit, dit_end = mDynamicObjects.end(); … … 819 819 if (e->modifiers() & Qt::AltModifier) 820 820 if (mCurrentDynamicObjectIdx >= 0) { 821 // 821 // preprocessor->ScheduleUpdateDynamicObjects(); 822 822 } 823 823 } … … 829 829 float TURN_SENSITIVITY = 0.1f; 830 830 float TILT_SENSITIVITY = 32.0 ; 831 float TURN_ANGLE= M_PI /36.0 ;831 float TURN_ANGLE= M_PI / 36.0 ; 832 832 833 833 int x = e->pos().x(); … … 843 843 mViewPoint.y += (y-mousePoint.y)*MOVE_SENSITIVITY / 2.0; 844 844 mViewPoint.x += (x-mousePoint.x)*MOVE_SENSITIVITY / 2.0; 845 } 845 } 846 846 #if DYNAMIC_OBJECTS_HACK 847 847 else if (e->modifiers() & Qt::AltModifier) … … 883 883 } 884 884 885 #if USE_TRANSFORMED_MESH_INSTANCE_HACK886 TransformedMeshInstance *tmi = mViewCellsManager->GetPreprocessor()->mDynamicObjects[mCurrentDynamicObjectIdx];887 tmi->ApplyWorldTransform(tm);888 #else889 885 SceneGraphLeaf *l = 890 886 mViewCellsManager->GetPreprocessor()->mDynamicObjects[mCurrentDynamicObjectIdx]; 891 887 l->ApplyTransform(tm); 892 888 893 #endif894 889 updateGL(); 895 890 }
Note: See TracChangeset
for help on using the changeset viewer.