00001 00002 // WorldCoordTranslatorGlobalVariables.h // 00004 00005 #ifndef WORLDCOORDTRANSLATORGLOBALVARIABLES_H 00006 #define WORLDCOORDTRANSLATORGLOBALVARIABLES_H 00007 00008 #include "GlobalVariables.h" 00009 00010 #include <list> 00011 00012 namespace X3DTK { 00013 namespace X3D { 00014 00016 00017 class WorldCoordTranslatorGlobalVariables : public GlobalVariables 00018 { 00019 public: 00021 WorldCoordTranslatorGlobalVariables(); 00023 virtual ~WorldCoordTranslatorGlobalVariables(); 00024 00026 void init(); 00028 void finish(); 00029 00031 void pushMatrix(const SFMatrix34f &transformation); 00032 00034 void popMatrix(); 00035 00037 SFMatrix34f getMatrix() const {return _matrixStack.front();}; 00038 00039 private: 00040 std::list<SFMatrix34f> _matrixStack; 00041 }; 00042 00043 } 00044 } 00045 00046 #endif