Changeset 2609 for GTP/trunk/Lib/Vis/Preprocessing/src/SceneGraph.h
- Timestamp:
- 01/17/08 21:46:32 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Vis/Preprocessing/src/SceneGraph.h
r2606 r2609 5 5 #include "Containers.h" 6 6 #include "AxisAlignedBox3.h" 7 7 #include "Matrix4x4.h" 8 8 9 9 namespace GtpVisibilityPreprocessor { … … 37 37 virtual void UpdateBox(); 38 38 39 ~SceneGraphInterior();40 41 39 //protected: 42 40 … … 51 49 public: 52 50 51 SceneGraphLeaf(bool isDynamic = false): 52 mIsDynamic(isDynamic){} 53 ~SceneGraphLeaf(); 54 55 virtual void Transform(const Matrix4x4 &trafo); 56 virtual bool IsDynamic() const { return mIsDynamic;} 53 57 virtual bool IsLeaf() const { return true; } 54 58 virtual void UpdateBox(); 55 59 56 ~SceneGraphLeaf();60 ObjectContainer mGeometry; 57 61 58 //protected:62 protected: 59 63 60 //MeshContainer mGeometry;61 ObjectContainer mGeometry;64 bool mIsDynamic; 65 Matrix4x4 mTrafo; 62 66 }; 63 67 64 68 65 69 66 /** Scene graph class */ 67 class SceneGraph { 70 /** Scene graph class 71 */ 72 class SceneGraph 73 { 68 74 69 75 public: … … 81 87 82 88 AxisAlignedBox3 GetBox() const { return mRoot->mBox; } 83 84 89 /** Exports binary version of the scene. 85 90 */ 86 91 void ExportScene(const std::string filename); 87 88 92 /** Loads binary version of the scene. 89 93 */
Note: See TracChangeset
for help on using the changeset viewer.