]> Creatis software - cpPlugins.git/blobdiff - lib/cpPlugins/Interface/Mesh.h
binary threshold image filter added
[cpPlugins.git] / lib / cpPlugins / Interface / Mesh.h
index e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..75c5eb3683e766a6a546e3091330116d170a8b2e 100644 (file)
@@ -0,0 +1,69 @@
+#ifndef __CPPLUGINS__INTERFACE__MESH__H__
+#define __CPPLUGINS__INTERFACE__MESH__H__
+
+#include <cpPlugins/Interface/cpPlugins_Interface_Export.h>
+#include <cpPlugins/Interface/DataObject.h>
+
+#include <vtkSmartPointer.h>
+#include <vtkActor.h>
+#include <vtkPolyData.h>
+#include <vtkPolyDataMapper.h>
+
+namespace cpPlugins
+{
+  namespace Interface
+  {
+    /**
+     */
+    class cpPlugins_Interface_EXPORT Mesh
+      : public DataObject
+    {
+    public:
+      typedef Mesh                            Self;
+      typedef DataObject                      Superclass;
+      typedef itk::SmartPointer< Self >       Pointer;
+      typedef itk::SmartPointer< const Self > ConstPointer;
+
+    public:
+      itkNewMacro( Self );
+      itkTypeMacro( Mesh, DataObject );
+
+    public:
+      template< class M >
+        inline void SetITKMesh( itk::DataObject* object );
+
+      template< class M >
+        inline M* GetITKMesh( );
+
+      template< class M >
+        inline const M* GetITKMesh( ) const;
+
+      virtual void SetVTKMesh( vtkPolyData* mesh );
+      virtual vtkPolyData* GetVTKMesh( );
+      virtual const vtkPolyData* GetVTKMesh( ) const;
+      virtual vtkActor* GetVTKActor( );
+      virtual const vtkActor* GetVTKActor( ) const;
+
+    protected:
+      Mesh( );
+      virtual ~Mesh( );
+
+    private:
+      // Purposely not implemented
+      Mesh( const Self& );
+      Self& operator=( const Self& );
+
+    protected:
+      vtkSmartPointer< vtkActor >          m_Actor;
+      vtkSmartPointer< vtkPolyDataMapper > m_Mapper;
+    };
+
+  } // ecapseman
+
+} // ecapseman
+
+#include <cpPlugins/Interface/Mesh.hxx>
+
+#endif // __CPPLUGINS__INTERFACE__MESH__H__
+
+// eof - $RCSfile$