Changeset 2710 for GTP/trunk/Lib/Vis/Preprocessing/src/QtInterface
- Timestamp:
- 05/26/08 04:01:24 (17 years ago)
- Location:
- GTP/trunk/Lib/Vis/Preprocessing/src/QtInterface
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Vis/Preprocessing/src/QtInterface/ObjectPlacer.cpp
r2702 r2710 58 58 } 59 59 60 61 void ObjectPlacer::PlaceObject(SceneGraphLeaf *leaf, const Vector3 &pt) 62 { 63 AxisAlignedBox3 box = leaf->GetBox(); 64 65 Vector3 p = box.Center() - pt;; 66 67 // set pivot to ground of object 68 //p.y -= obj->GetOriginalBox().Min().y; 69 Matrix4x4 trafo = TranslationMatrix(p); 70 71 leaf->ApplyTransform(trafo); 60 72 } 73 74 } -
GTP/trunk/Lib/Vis/Preprocessing/src/QtInterface/ObjectPlacer.h
r2702 r2710 33 33 */ 34 34 void PlaceObject(const Vector3 &p); 35 /** Adds an object at the indicated position. 36 */ 37 void PlaceObject(SceneGraphLeaf *l, const Vector3 &p); 35 38 /** Returns the currently active object. 36 39 */ -
GTP/trunk/Lib/Vis/Preprocessing/src/QtInterface/QtGlRenderer.cpp
r2709 r2710 143 143 glLoadIdentity(); 144 144 glOrtho(-1, 1, -1, 1, -99, 99); 145 //glTranslatef(-0.5f, -0.5f, 0.0f);146 145 glMatrixMode(GL_MODELVIEW); 147 146 glLoadIdentity(); … … 916 915 { 917 916 Matrix4x4 tm; 917 918 SceneGraphLeaf *l = 919 mViewCellsManager->GetPreprocessor()->mDynamicObjects[mCurrentDynamicObjectIdx]; 918 920 919 921 switch (mTrafoType) … … 948 950 cerr << "not implemented" << endl; 949 951 } 950 951 SceneGraphLeaf *l = 952 mViewCellsManager->GetPreprocessor()->mDynamicObjects[mCurrentDynamicObjectIdx]; 952 953 953 l->ApplyTransform(tm); 954 954 955 955 updateGL(); 956 956 } … … 1184 1184 mCurrentDynamicObjectIdx = -1; 1185 1185 1186 // export frame buffer during walkthrough 1186 1187 //mExportFrameBuffer = true; 1187 1188 mExportFrameBuffer = false;
Note: See TracChangeset
for help on using the changeset viewer.