]> Creatis software - cpPlugins.git/blobdiff - lib/cpPlugins/Interface/Image.h
MPR finished
[cpPlugins.git] / lib / cpPlugins / Interface / Image.h
index e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..30bfbf549cb1b725d32cc86063ae46b09d47649a 100644 (file)
@@ -0,0 +1,59 @@
+#ifndef __CPPLUGINS__INTERFACE__IMAGE__H__
+#define __CPPLUGINS__INTERFACE__IMAGE__H__
+
+#include <cpPlugins/Interface/DataObject.h>
+
+#include <itkProcessObject.h>
+
+// -------------------------------------------------------------------------
+namespace cpPlugins
+{
+  namespace Interface
+  {
+    /**
+     */
+    class cpPlugins_Interface_EXPORT Image
+      : public DataObject
+    {
+    public:
+      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( Image, "DataObject" );
+
+    public:
+      template< class I >
+        inline void SetITK( itk::Object* object );
+
+      virtual void SetVTK( vtkObject* image );
+
+    protected:
+      Image( );
+      virtual ~Image( );
+
+      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$