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

X3D_WorldCoordTranslatorStateVariables.h

Go to the documentation of this file.
00001 #ifndef X3DTK_X3D_WORLDCOORDTRANSLATORSTATEVARIABLES_H
00002 #define X3DTK_X3D_WORLDCOORDTRANSLATORSTATEVARIABLES_H
00003 
00004 #include "X3D_SceneGraphTypes.h"
00005 #include "StateVariables.h"
00006 
00007 #include <list>
00008 
00009 namespace X3DTK {
00010 namespace X3D {
00011 
00018 class WorldCoordTranslatorStateVariables : public StateVariables
00019 {
00020 public:
00022   WorldCoordTranslatorStateVariables();
00024   virtual ~WorldCoordTranslatorStateVariables();
00025 
00027   void init();
00029   void finish();
00030 
00032   void pushMatrix(const SFMatrix34f &transformation);  
00034   void pushNode(SFNode N);  
00035   
00037   void popMatrix();
00038   
00040   SFMatrix34f getMatrix() const {return _matrixStack.front();};
00042   bool findNode(SFNode N);
00043 
00044 private: 
00045   std::list<SFMatrix34f> _matrixStack;
00046   std::list<SFNode> _nodeList;
00047 };
00048 
00049 }
00050 }
00051 
00052 #endif

Generated on Wed Apr 7 12:15:22 2004 for X3DToolKit by doxygen 1.3.3