MESH_VerticesDrawer.h

Go to the documentation of this file.
00001 #ifndef X3DTK_MESH_VERTICESDRAWER_H
00002 #define X3DTK_MESH_VERTICESDRAWER_H
00003 
00004 #include "MESH_VerticesDrawerStateVariables.h"
00005 #include "DFSGraphTraversal.h"
00006 #include "MESH_VerticesDrawerCoreVisitor.h"
00007 #include "X3DOnePassProcessor.h"
00008 #include "MESH_SceneGraphTypes.h"
00009 #include "MESH_MeshData.h"
00010 
00011 namespace X3DTK {
00012 namespace MESH {
00013 
00022 template<class MData, class VData, class EData, class FData, bool RW>
00023 class TemplateVerticesDrawer : public X3DOnePassProcessor
00024 {
00025 public:
00027   TemplateVerticesDrawer();
00029   virtual ~TemplateVerticesDrawer();
00030   
00032   void draw(X3DNode *N, bool selection = false);  
00033   // Get ith Mesh of the scene.
00034   inline TemplateMesh<MData, VData, EData, FData, RW> *getMesh(int i) const;
00035   // Gets stored transformation matrix associated with a given Mesh.
00036   inline const SFMatrix34f &getMatrix(int i) const;
00037 };
00038 
00040 typedef TemplateVerticesDrawer<MeshData, VertexData, EdgeData, FaceData, true> VerticesDrawer;
00041 
00042 }
00043 }
00044 
00045 #include "MESH_VerticesDrawer.inl"
00046 
00047 #endif
00048 

Generated on Fri Aug 27 13:16:22 2004 for X3DToolKit by doxygen 1.3.6