Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

SFSceneGraph.h

Go to the documentation of this file.
00001 
00002 //                            SFSceneGraph.h                                  //
00004 
00005 #ifndef SFSCENEGRAPH_H
00006 #define SFSCENEGRAPH_H
00007 
00008 #include "X3DTypes.h"
00009 
00010 namespace X3DTK {
00011 
00013 
00014 class SFSceneGraph
00015 {
00016   friend class SFComponent;
00017   
00018 public:
00020   static SFSceneGraph *getSceneGraph(const SFString &name);
00021   
00023   inline SFString getName() const {return _name;};
00025   inline MFComponent getComponentList() const {return _componentList;};
00026 
00027 private:  
00028   SFSceneGraph(const SFString &name);
00029   ~SFSceneGraph();
00030   
00032   void addComponent(SFComponent *component);
00034   void addOneReference();
00036   static void removeOneReference(SFSceneGraph *sceneGraph);
00037   
00038   SFString _name;    
00039   int _refCount;
00040   MFComponent _componentList;
00041   
00042   static MFSceneGraph _sceneGraphList;
00043 };
00044 
00045 }
00046 
00047 #endif

Generated on Mon Jan 19 10:32:05 2004 for X3DToolKit by doxygen1.2.18