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