Ignore:
Timestamp:
01/17/08 21:46:32 (16 years ago)
Author:
mattausch
Message:
 
File:
1 edited

Legend:

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

    r2606 r2609  
    55#include "Containers.h" 
    66#include "AxisAlignedBox3.h" 
    7  
     7#include "Matrix4x4.h" 
    88 
    99namespace GtpVisibilityPreprocessor { 
     
    3737        virtual void UpdateBox(); 
    3838 
    39         ~SceneGraphInterior(); 
    40  
    4139//protected: 
    4240 
     
    5149public: 
    5250 
     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;} 
    5357        virtual bool IsLeaf() const { return true; } 
    5458        virtual void UpdateBox(); 
    5559 
    56         ~SceneGraphLeaf(); 
     60        ObjectContainer mGeometry; 
    5761 
    58 //protected: 
     62protected: 
    5963 
    60         //MeshContainer mGeometry; 
    61         ObjectContainer mGeometry; 
     64        bool mIsDynamic; 
     65        Matrix4x4 mTrafo; 
    6266}; 
    6367 
    6468 
    6569 
    66 /** Scene graph class */ 
    67 class SceneGraph { 
     70/** Scene graph class  
     71*/ 
     72class SceneGraph  
     73{ 
    6874 
    6975public: 
     
    8187 
    8288        AxisAlignedBox3 GetBox() const { return mRoot->mBox; } 
    83    
    8489        /** Exports binary version of the scene. 
    8590        */ 
    8691        void ExportScene(const std::string filename); 
    87  
    8892        /** Loads binary version of the scene. 
    8993        */ 
Note: See TracChangeset for help on using the changeset viewer.