00001 #include "GLCreatorGlobalVariables.h" 00002 00003 #include <iostream> 00004 00005 using namespace X3DTK; 00006 using namespace std; 00007 00008 GLCreatorGlobalVariables::GLCreatorGlobalVariables() 00009 : GlobalVariables(), _root(0) 00010 { 00011 } 00012 00013 GLCreatorGlobalVariables::~GLCreatorGlobalVariables() 00014 { 00015 } 00016 00017 void GLCreatorGlobalVariables::init() 00018 { 00019 _root = 0; 00020 } 00021 00022 void GLCreatorGlobalVariables::finish() 00023 { 00024 _nodeStack.clear(); 00025 } 00026 00027 void GLCreatorGlobalVariables::pushNode(GLSFNode N) 00028 { 00029 if (_root == 0) 00030 _root = N; 00031 00032 _nodeStack.push_front(N); 00033 } 00034 00035 void GLCreatorGlobalVariables::popNode() 00036 { 00037 _nodeStack.pop_front(); 00038 }