]> Creatis software - cpPlugins.git/blobdiff - lib/cpExtensions/Visualization/MeshActor.h
yet another refactoring
[cpPlugins.git] / lib / cpExtensions / Visualization / MeshActor.h
diff --git a/lib/cpExtensions/Visualization/MeshActor.h b/lib/cpExtensions/Visualization/MeshActor.h
new file mode 100644 (file)
index 0000000..c26b8d7
--- /dev/null
@@ -0,0 +1,45 @@
+#ifndef __cpExtensions__Visualization__MeshActor__h__
+#define __cpExtensions__Visualization__MeshActor__h__
+
+#include <cpExtensions/Config.h>
+#include <vtkSmartPointer.h>
+
+// -------------------------------------------------------------------------
+class vtkActor;
+class vtkPolyData;
+class vtkPolyDataMapper;
+
+// -------------------------------------------------------------------------
+namespace cpExtensions
+{
+  namespace Visualization
+  {
+    /**
+     */
+    class cpExtensions_EXPORT MeshActor
+    {
+    public:
+      typedef MeshActor Self;
+
+    public:
+      MeshActor( );
+      virtual ~MeshActor( );
+
+      void SetMesh( vtkPolyData* mesh );
+
+      vtkActor* GetActor( );
+      const vtkActor* GetActor( ) const;
+
+    protected:
+      vtkSmartPointer< vtkPolyData >       m_Mesh;
+      vtkSmartPointer< vtkPolyDataMapper > m_Mapper;
+      vtkSmartPointer< vtkActor >          m_Actor;
+    };
+
+  } // ecapseman
+
+} // ecapseman
+
+#endif // __cpExtensions__Visualization__MeshActor__h__
+
+// eof - $RCSfile$