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

MeshBuilderGlobalVariables.h

Go to the documentation of this file.
00001 
00002 //                            MeshBuilderGlobalVariables.h                    //
00004 
00005 #ifndef MESHBUILDERGLOBALVARIABLES_H
00006 #define MESHBUILDERGLOBALVARIABLES_H
00007 
00008 #include "GlobalVariables.h"
00009 #include "X3DMeshNode.h"
00010 
00011 namespace X3DTK {
00012 namespace X3D {
00013 
00015 
00016 class MeshBuilderGlobalVariables : public GlobalVariables
00017 {
00018 public:
00020   MeshBuilderGlobalVariables();
00022   virtual ~MeshBuilderGlobalVariables();
00024   void init();
00026   virtual void finish();
00027   
00029   void pushNode(Mesh::SFNode N);
00031   void popNode();
00032     
00034   inline Mesh::SFNode getRoot() const {return _root;};
00036   inline Mesh::SFNode getTop() const {return _nodeStack.front();};
00037   
00038 private:
00039   Mesh::SFNode _root;
00040   Mesh::MFNode _nodeStack;  
00041 };
00042 
00043 }
00044 }
00045 
00046 #endif

Generated on Mon Jun 16 13:50:56 2003 for X3DToolKit by doxygen1.3