00001 #ifndef X3DTK_MESH_FACESDRAWERCOREVISITOR_H 00002 #define X3DTK_MESH_FACESDRAWERCOREVISITOR_H 00003 00004 #include "MESH_FacesDrawerStateVariables.h" 00005 #include "MESH_CoreVisitor.h" 00006 #include "MESH_Mesh.h" 00007 #include "MESH_Scene.h" 00008 #include "MESH_Shape.h" 00009 #include "X3D_Shape.h" 00010 #include "MESH_Transform.h" 00011 00012 #include <iostream> 00013 #include <algorithm> 00014 00015 namespace X3DTK { 00016 namespace MESH { 00017 00024 template<class MData, class VData, class EData, class FData, bool RW> 00025 class TemplateFacesDrawerCoreVisitor : public CoreVisitor 00026 { 00027 public: 00029 TemplateFacesDrawerCoreVisitor(); 00030 00032 static void enterScene(Scene *S); 00034 static void enterMesh(TemplateMesh<MData, VData, EData, FData, RW> *M); 00036 static void enterShape(Shape *S); 00038 static bool walkOnShape(Shape *S, SFNode child); 00040 static void enterTransform(Transform *T); 00042 static void leaveTransform(Transform *T); 00043 }; 00044 00045 } 00046 } 00047 00048 #include "MESH_FacesDrawerCoreVisitor.inl" 00049 00050 #endif