]> Creatis software - cpPlugins.git/blob - lib/cpPlugins/Interface/DataObject.h
Widget integration (step 2/6). WARNING: IT DOES NOT COMPILE YETgit shortlog !
[cpPlugins.git] / lib / cpPlugins / Interface / DataObject.h
1 #ifndef __CPPLUGINS__INTERFACE__DATAOBJECT__H__
2 #define __CPPLUGINS__INTERFACE__DATAOBJECT__H__
3
4 #include <map>
5 #include <string>
6 #include <vtkObject.h>
7 #include <vtkSmartPointer.h>
8 #include <cpPlugins/Interface/cpPlugins_Interface_Export.h>
9 #include <cpPlugins/Interface/Object.h>
10
11 #include <itkDataObject.h>
12
13 namespace cpPlugins
14 {
15   namespace Interface
16   {
17     /**
18      */
19     class cpPlugins_Interface_EXPORT DataObject
20       : public Object
21     {
22     public:
23       typedef DataObject                      Self;
24       typedef Object                          Superclass;
25       typedef itk::SmartPointer< Self >       Pointer;
26       typedef itk::SmartPointer< const Self > ConstPointer;
27
28     public:
29       itkTypeMacro( DataObject, Object );
30
31     public:
32       Object* GetSource( );
33       const Object* GetSource( ) const;
34       void SetSource( Object* src );
35
36       void DisconnectPipeline( );
37
38     protected:
39       DataObject( );
40       virtual ~DataObject( );
41
42     private:
43       // Purposely not implemented
44       DataObject( const Self& );
45       Self& operator=( const Self& );
46
47     protected:
48       itk::DataObject::Pointer     m_ITKObject;
49       vtkSmartPointer< vtkObject > m_VTKObject;
50       Object::Pointer              m_Source;
51     };
52
53   } // ecapseman
54
55 } // ecapseman
56
57 #endif // __CPPLUGINS__INTERFACE__DATAOBJECT__H__
58
59 // eof - $RCSfile$