]> Creatis software - cpPlugins.git/blob - lib/cpPlugins/Interface/Image.h
Widget integration (step 5/6): generic widget controller finished and tested on linux...
[cpPlugins.git] / lib / cpPlugins / Interface / Image.h
1 #ifndef __CPPLUGINS__INTERFACE__IMAGE__H__
2 #define __CPPLUGINS__INTERFACE__IMAGE__H__
3
4 #include <cpPlugins/Interface/cpPlugins_Interface_Export.h>
5 #include <cpPlugins/Interface/DataObject.h>
6
7 #include <itkProcessObject.h>
8
9 class vtkImageData;
10
11 // -------------------------------------------------------------------------
12 namespace cpPlugins
13 {
14   namespace Interface
15   {
16     /**
17      */
18     class cpPlugins_Interface_EXPORT Image
19       : public DataObject
20     {
21     public:
22       typedef Image                           Self;
23       typedef DataObject                      Superclass;
24       typedef itk::SmartPointer< Self >       Pointer;
25       typedef itk::SmartPointer< const Self > ConstPointer;
26
27     public:
28       itkNewMacro( Self );
29       itkTypeMacro( Image, DataObject );
30       cpPlugins_Id_Macro(
31         cpPlugins::Interface::Image, "DataObject"
32         );
33
34     public:
35       template< class I >
36         inline void SetITK( itk::Object* object );
37
38       virtual void SetVTK( vtkObject* image );
39
40     protected:
41       Image( );
42       virtual ~Image( );
43
44       template< class P, unsigned int D >
45         inline void _ITK_2_VTK( itk::Object* object );
46
47     private:
48       // Purposely not implemented
49       Image( const Self& );
50       Self& operator=( const Self& );
51
52     protected:
53       itk::ProcessObject::Pointer m_ITKvVTKConnection;
54     };
55
56   } // ecapseman
57
58 } // ecapseman
59
60 #include <cpPlugins/Interface/Image.hxx>
61
62 #endif // __CPPLUGINS__INTERFACE__IMAGE__H__
63
64 // eof - $RCSfile$