Main Page | Modules | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

X3D_GLBuilderStateVariables.h

Go to the documentation of this file.
00001 #ifndef X3DTK_X3D_GLBUILDERSTATEVARIABLES_H
00002 #define X3DTK_X3D_GLBUILDERSTATEVARIABLES_H
00003 
00004 #include "StateVariables.h"
00005 #include "GL_X3DNode.h"
00006 
00007 #include <map>
00008 
00009 namespace X3DTK {
00010 namespace X3D {
00011 
00018 class GLBuilderStateVariables : public StateVariables
00019 {
00020 public:
00022   GLBuilderStateVariables();
00024   virtual ~GLBuilderStateVariables();
00026   virtual void init();
00028   virtual void finish();
00029   
00031   void addCoupleNode(SFNode N, GL::SFNode GN);
00033   void pushNode(GL::SFNode N);
00035   void popNode();
00036     
00038   inline GL::SFNode getRoot() const {return _root;};
00040   inline GL::SFNode getTop() const {return (!_nodeStack.empty() ? _nodeStack.front() : 0);};
00042   GL::SFNode getNode(SFNode N) const;
00043   
00044 private:
00045   GL::SFNode _root;
00046   GL::MFNode _nodeStack;
00047   std::map<SFNode, GL::SFNode> _nodeCoupleMap;
00048   char *_cwd;
00049 };
00050 
00051 }
00052 }
00053 
00054 #endif

Generated on Thu Jun 3 10:12:10 2004 for X3DToolKit by doxygen 1.3.6