]> Creatis software - cpPlugins.git/blob - lib/cpPlugins/Interface/Image.h
Widget integration (step 3/6). WARNING: IT DOES NOT COMPILE YET
[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
31     public:
32       template< class I >
33         inline void SetITK( itk::Object* object );
34
35       virtual void SetVTK( vtkObject* image );
36
37     protected:
38       Image( );
39       virtual ~Image( );
40
41       template< class P, unsigned int D >
42         inline void _ITK_2_VTK( itk::Object* object );
43
44     private:
45       // Purposely not implemented
46       Image( const Self& );
47       Self& operator=( const Self& );
48
49     protected:
50       itk::ProcessObject::Pointer m_ITKvVTKConnection;
51     };
52
53   } // ecapseman
54
55 } // ecapseman
56
57 #include <cpPlugins/Interface/Image.hxx>
58
59 #endif // __CPPLUGINS__INTERFACE__IMAGE__H__
60
61 // eof - $RCSfile$