]> Creatis software - cpPlugins.git/blobdiff - lib/cpPlugins/Interface/DataObject.h
Widget integration (step 5/6): generic widget controller finished and tested on linux...
[cpPlugins.git] / lib / cpPlugins / Interface / DataObject.h
index aad997708c5a8df08947efb2065d76f2e1be2e06..841f3a2514366b9af2d01bf5e943fd2145904795 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
 {
@@ -27,6 +26,9 @@ namespace cpPlugins
 
     public:
       itkTypeMacro( DataObject, Object );
+      cpPlugins_Id_Macro(
+        cpPlugins::Interface::DataObject, "BasicObject"
+        );
 
     public:
       Object* GetSource( );
@@ -35,6 +37,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 +59,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 +68,8 @@ namespace cpPlugins
 
 } // ecapseman
 
+#include <cpPlugins/Interface/DataObject.hxx>
+
 #endif // __CPPLUGINS__INTERFACE__DATAOBJECT__H__
 
 // eof - $RCSfile$