]> Creatis software - cpPlugins.git/blobdiff - lib/cpPlugins/Interface/Image.h
XML IO added. Workspace singleton added to simplify pipeline definition and execution.
[cpPlugins.git] / lib / cpPlugins / Interface / Image.h
index 4ba14cbf558fc80964f610acf9b2b0df393f47ec..30bfbf549cb1b725d32cc86063ae46b09d47649a 100644 (file)
@@ -1,14 +1,11 @@
 #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>
 
-class vtkImageData;
+#include <itkProcessObject.h>
 
+// -------------------------------------------------------------------------
 namespace cpPlugins
 {
   namespace Interface
@@ -27,23 +24,20 @@ namespace cpPlugins
     public:
       itkNewMacro( Self );
       itkTypeMacro( Image, DataObject );
+      cpPlugins_Id_Macro( Image, "DataObject" );
 
     public:
-      virtual std::string GetClassName( ) const;
-      virtual void SetRealDataObject( itk::DataObject* dobj );
+      template< class I >
+        inline void SetITK( itk::Object* object );
 
-      vtkImageData* GetVTKImageData( ) const;
-      void UpdateVTKImageData( );
+      virtual void SetVTK( vtkObject* image );
 
     protected:
       Image( );
       virtual ~Image( );
 
-      template< unsigned int D >
-        void _VTK_0( );
-
       template< class P, unsigned int D >
-        void _VTK_1( );
+        inline void _ITK_2_VTK( itk::Object* object );
 
     private:
       // Purposely not implemented
@@ -51,14 +45,15 @@ namespace cpPlugins
       Self& operator=( const Self& );
 
     protected:
-      itk::ProcessObject::Pointer m_Image2VTKImageData;
-      vtkImageData* m_VTKImageData;
+      itk::ProcessObject::Pointer m_ITKvVTKConnection;
     };
 
   } // ecapseman
 
 } // ecapseman
 
+#include <cpPlugins/Interface/Image.hxx>
+
 #endif // __CPPLUGINS__INTERFACE__IMAGE__H__
 
 // eof - $RCSfile$