00001 00002 // MESH_MeshNormalsDrawer.h // 00004 00005 #ifndef MESH_NORMALSDRAWER_H 00006 #define MESH_NORMALSDRAWER_H 00007 00008 #include "MESH_MeshNormalsDrawerStateVariables.h" 00009 #include "MESH_DFSGraphTraversal.h" 00010 #include "MESH_MeshNormalsDrawerCoreVisitor.h" 00011 #include "X3DOnePassProcessor.h" 00012 #include "MESH_SceneGraphTypes.h" 00013 00014 namespace X3DTK { 00015 namespace MESH { 00016 00018 00019 template<class MData, class VData, class EData, class FData> 00020 class MeshNormalsDrawer : public X3DOnePassProcessor 00021 { 00022 public: 00024 MeshNormalsDrawer(); 00026 virtual ~MeshNormalsDrawer(); 00027 00029 void draw(X3DNode *N, float amplitude = 1.0f); 00030 00031 protected: 00032 MeshNormalsDrawerStateVariables<MData, VData, EData, FData>* stateVariables; 00033 }; 00034 00035 } 00036 } 00037 00038 #include "MESH_MeshNormalsDrawer.inl" 00039 00040 #endif 00041