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

MESH_MeshNormalsDrawerStateVariables.h

Go to the documentation of this file.
00001 
00002 //                                 MESH_MeshNormalsDrawerStateVariables.h     //
00004 
00005 #ifndef TEMPLATENORMALSDRAWERSTATEVARIABLES_H
00006 #define TEMPLATENORMALSDRAWERSTATEVARIABLES_H
00007 
00008 #include "MESH_SceneGraphTypes.h"
00009 #include "MESH_Mesh.h"
00010 #include "StateVariables.h"
00011 
00012 #include <list>
00013 
00014 namespace X3DTK {
00015 namespace MESH {
00016 
00017 // State variables for the Drawer processor.
00018 
00019 template<class MData, class VData, class EData, class FData>
00020 class MeshNormalsDrawerStateVariables : public StateVariables
00021 {
00022 public:
00024   MeshNormalsDrawerStateVariables();
00025 
00026   // Initializes the traversal.
00027   void init();
00028   // Finishes the traversal.
00029   void finish();
00030 
00032   void setAmplitude(float amplitude);
00034   inline float getAmplitude() const;
00035   
00036   // Pushes the transformation matrix.
00037   void pushMatrix(const SFMatrix34f &transformation);
00038   // Pops the transformation matrix.
00039   void popMatrix();
00040 
00041 private: 
00042   std::list<SFMatrix34f> _matrixStack;
00043   float _amplitude;
00044 };
00045 
00046 }
00047 }
00048 
00049 #include "MESH_MeshNormalsDrawerStateVariables.inl"
00050 
00051 #endif

Generated on Mon Jan 19 10:32:05 2004 for X3DToolKit by doxygen1.2.18