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

GLBuilderGlobalVariables.h

Go to the documentation of this file.
00001 
00002 
00003 
00005 
00006 
00011 
00016 
00021 //                            GLBuilderGlobalVariables.h                      //
00023 
00024 #ifndef GLBUILDERGLOBALVARIABLES_H
00025 #define GLBUILDERGLOBALVARIABLES_H
00026 
00027 #include "GlobalVariables.h"
00028 #include "X3DGLNode.h"
00029 
00030 namespace X3DTK {
00031 namespace X3D {
00032 
00034 
00035 class GLBuilderGlobalVariables : public GlobalVariables
00036 {
00037 public:
00039   GLBuilderGlobalVariables();
00041   virtual ~GLBuilderGlobalVariables();
00043   void init();
00045   virtual void finish();
00046   
00048   void pushNode(GL::SFNode N);
00050   void popNode();
00051     
00053   inline GL::SFNode getRoot() const {return _root;};
00055   inline GL::SFNode getTop() const {return _nodeStack.front();};
00056   
00057 private:
00058   GL::SFNode _root;
00059   GL::MFNode _nodeStack;  
00060 };
00061 
00062 }
00063 }
00064 
00065 #endif

Generated on Wed Sep 10 11:25:13 2003 for X3DToolKit by doxygen1.3