]> Creatis software - cpPlugins.git/blobdiff - lib/cpPlugins/Interface/Image.h
...
[cpPlugins.git] / lib / cpPlugins / Interface / Image.h
index 360da0168821d1543cfb65767a24e2983ea53678..4ba14cbf558fc80964f610acf9b2b0df393f47ec 100644 (file)
@@ -4,26 +4,55 @@
 #include <map>
 #include <string>
 #include <itkProcessObject.h>
+#include <cpPlugins/Interface/cpPlugins_Interface_Export.h>
 #include <cpPlugins/Interface/DataObject.h>
 
+class vtkImageData;
+
 namespace cpPlugins
 {
   namespace Interface
   {
     /**
      */
-    class Image
+    class cpPlugins_Interface_EXPORT Image
       : public DataObject
     {
     public:
-      typedef Image      Self;
-      typedef DataObject Superclass;
+      typedef Image                           Self;
+      typedef DataObject                      Superclass;
+      typedef itk::SmartPointer< Self >       Pointer;
+      typedef itk::SmartPointer< const Self > ConstPointer;
+
+    public:
+      itkNewMacro( Self );
+      itkTypeMacro( Image, DataObject );
 
     public:
+      virtual std::string GetClassName( ) const;
+      virtual void SetRealDataObject( itk::DataObject* dobj );
+
+      vtkImageData* GetVTKImageData( ) const;
+      void UpdateVTKImageData( );
+
+    protected:
       Image( );
       virtual ~Image( );
 
-      virtual std::string GetClassName( ) const;
+      template< unsigned int D >
+        void _VTK_0( );
+
+      template< class P, unsigned int D >
+        void _VTK_1( );
+
+    private:
+      // Purposely not implemented
+      Image( const Self& );
+      Self& operator=( const Self& );
+
+    protected:
+      itk::ProcessObject::Pointer m_Image2VTKImageData;
+      vtkImageData* m_VTKImageData;
     };
 
   } // ecapseman