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

X3D_GLBuilderStateVariables.h

Go to the documentation of this file.
00001 
00002 //                            X3D_GLBuilderStateVariables.h                   //
00004 
00005 #ifndef GLBUILDERGLOBALVARIABLES_H
00006 #define GLBUILDERGLOBALVARIABLES_H
00007 
00008 #include "StateVariables.h"
00009 #include "GL_X3DNode.h"
00010 
00011 #include <map>
00012 
00013 namespace X3DTK {
00014 namespace X3D {
00015 
00017 
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 Mon Jan 19 10:32:06 2004 for X3DToolKit by doxygen1.2.18