]> Creatis software - cpPlugins.git/blobdiff - lib/cpPlugins/Interface/DataObject.h
Widget integration (step 3/6). WARNING: IT DOES NOT COMPILE YET
[cpPlugins.git] / lib / cpPlugins / Interface / DataObject.h
index aad997708c5a8df08947efb2065d76f2e1be2e06..3347b64d1ad4312784056b01bb1b838a5239f10e 100644 (file)
@@ -1,14 +1,13 @@
 #ifndef __CPPLUGINS__INTERFACE__DATAOBJECT__H__
 #define __CPPLUGINS__INTERFACE__DATAOBJECT__H__
 
-#include <map>
-#include <string>
-#include <vtkObject.h>
-#include <vtkSmartPointer.h>
 #include <cpPlugins/Interface/cpPlugins_Interface_Export.h>
 #include <cpPlugins/Interface/Object.h>
 
-#include <itkDataObject.h>
+#include <itkObject.h>
+
+#include <vtkSmartPointer.h>
+#include <vtkObject.h>
 
 namespace cpPlugins
 {
@@ -35,6 +34,18 @@ namespace cpPlugins
 
       void DisconnectPipeline( );
 
+      template< class T >
+        inline T* GetITK( );
+
+      template< class T >
+        inline const T* GetITK( ) const;
+
+      template< class T >
+        inline T* GetVTK( );
+
+      template< class T >
+        inline const T* GetVTK( ) const;
+
     protected:
       DataObject( );
       virtual ~DataObject( );
@@ -45,7 +56,7 @@ namespace cpPlugins
       Self& operator=( const Self& );
 
     protected:
-      itk::DataObject::Pointer     m_ITKObject;
+      itk::Object::Pointer         m_ITKObject;
       vtkSmartPointer< vtkObject > m_VTKObject;
       Object::Pointer              m_Source;
     };
@@ -54,6 +65,8 @@ namespace cpPlugins
 
 } // ecapseman
 
+#include <cpPlugins/Interface/DataObject.hxx>
+
 #endif // __CPPLUGINS__INTERFACE__DATAOBJECT__H__
 
 // eof - $RCSfile$