Changeset 2600 for GTP/trunk/Lib/Vis/Preprocessing/include
- Timestamp:
- 01/16/08 09:38:50 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Vis/Preprocessing/include/SceneGraph.h
r68 r2600 7 7 namespace GtpVisibilityPreprocessor { 8 8 9 /** Basic scene graph node, we are interested only in bounding boxes and topology 10 of the scene graph */ 11 class SceneGraphNode { 12 public: 13 14 15 protected: 16 MeshContainer mGeometry; 17 NodeContainer mChildren; 18 AxisAlignedBox3 mBox; 19 }; 9 /** Basic scene graph node, we are interested only in bounding boxes and topology 10 of the scene graph 11 */ 12 class SceneGraphNode 13 { 14 public: 15 virtual bool IsLeaf() const = NULL; 16 17 protected: 18 19 AxisAlignedBox3 mBox; 20 }; 20 21 21 22 22 /** Scene graph class */ 23 class SceneGraph { 24 25 protected: 26 SceneGraphNode *mRoot; 27 }; 23 24 /** Basic scene graph node, we are interested only in bounding boxes and topology 25 of the scene graph */ 26 class SceneGraphInterior: public SceneGraphNode 27 { 28 public: 29 ~SceneGraphInterior(); 30 31 virtual bool IsLeaf() const { return false; } 32 33 protected: 34 35 NodeContainer mChildren; 36 }; 37 38 39 /** Basic scene graph node, we are interested only in bounding boxes and topology 40 of the scene graph */ 41 class SceneGraphLeaf: public SceneGraphNode 42 { 43 public: 44 ~SceneGraphLeaf(); 45 virtual bool IsLeaf() const { return true; } 46 47 protected: 48 MeshContainer mGeometry; 49 }; 50 51 52 /** Scene graph class 53 */ 54 class SceneGraph 55 { 56 protected: 57 SceneGraphNode *mRoot; 58 }; 28 59 29 60
Note: See TracChangeset
for help on using the changeset viewer.