]> Creatis software - cpPlugins.git/blobdiff - lib/cpPlugins/Interface/Image.h
Merge branch 'master' of ssh://git.creatis.insa-lyon.fr/cpPlugins
[cpPlugins.git] / lib / cpPlugins / Interface / Image.h
index 360da0168821d1543cfb65767a24e2983ea53678..1aeee5cc18a7b6945951fcbf7d692d1748318b70 100644 (file)
@@ -1,35 +1,64 @@
 #ifndef __CPPLUGINS__INTERFACE__IMAGE__H__
 #define __CPPLUGINS__INTERFACE__IMAGE__H__
 
-#include <map>
-#include <string>
-#include <itkProcessObject.h>
+#include <cpPlugins/Interface/cpPlugins_Interface_Export.h>
 #include <cpPlugins/Interface/DataObject.h>
 
+#include <itkProcessObject.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 );
+      cpPlugins_Id_Macro(
+        cpPlugins::Interface::Image, "DataObject"
+        );
 
     public:
+      template< class I >
+        inline void SetITK( itk::Object* object );
+
+      virtual void SetVTK( vtkObject* image );
+
+    protected:
       Image( );
       virtual ~Image( );
 
-      virtual std::string GetClassName( ) const;
+      template< class P, unsigned int D >
+        inline void _ITK_2_VTK( itk::Object* object );
+
+    private:
+      // Purposely not implemented
+      Image( const Self& );
+      Self& operator=( const Self& );
+
+    protected:
+      itk::ProcessObject::Pointer m_ITKvVTKConnection;
     };
 
   } // ecapseman
 
 } // ecapseman
 
+#include <cpPlugins/Interface/Image.hxx>
+
 #endif // __CPPLUGINS__INTERFACE__IMAGE__H__
 
 // eof - $RCSfile$