Ignore:
Timestamp:
01/16/08 09:38:50 (16 years ago)
Author:
mattausch
Message:

preparing for moving objects (contains compile errors!)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • GTP/trunk/Lib/Vis/Preprocessing/include/SceneGraph.h

    r68 r2600  
    77namespace GtpVisibilityPreprocessor { 
    88   
    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*/ 
     12class SceneGraphNode 
     13{ 
     14public: 
     15        virtual bool IsLeaf() const = NULL; 
     16 
     17protected: 
     18 
     19        AxisAlignedBox3 mBox; 
     20}; 
    2021   
    2122 
    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 */ 
     26class SceneGraphInterior: public SceneGraphNode 
     27{ 
     28public: 
     29        ~SceneGraphInterior(); 
     30 
     31        virtual bool IsLeaf() const { return false; } 
     32 
     33protected: 
     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 */ 
     41class SceneGraphLeaf: public SceneGraphNode  
     42{ 
     43public: 
     44        ~SceneGraphLeaf(); 
     45        virtual bool IsLeaf() const { return true; } 
     46 
     47protected: 
     48        MeshContainer mGeometry; 
     49}; 
     50 
     51 
     52/** Scene graph class  
     53*/ 
     54class SceneGraph  
     55{ 
     56protected: 
     57        SceneGraphNode *mRoot; 
     58}; 
    2859   
    2960 
Note: See TracChangeset for help on using the changeset viewer.