]> Creatis software - cpPlugins.git/blob - lib/cpPlugins/Interface/Image.h
...
[cpPlugins.git] / lib / cpPlugins / Interface / Image.h
1 #ifndef __CPPLUGINS__INTERFACE__IMAGE__H__
2 #define __CPPLUGINS__INTERFACE__IMAGE__H__
3
4 #include <cpPlugins/Interface/DataObject.h>
5
6 #include <itkProcessObject.h>
7
8 // Some forward declarations
9 class vtkObject;
10
11 namespace cpPlugins
12 {
13   namespace Interface
14   {
15     /**
16      */
17     class cpPlugins_Interface_EXPORT Image
18       : public DataObject
19     {
20     public:
21       typedef Image                           Self;
22       typedef DataObject                      Superclass;
23       typedef itk::SmartPointer< Self >       Pointer;
24       typedef itk::SmartPointer< const Self > ConstPointer;
25
26     public:
27       itkNewMacro( Self );
28       itkTypeMacro( Image, DataObject );
29       cpPlugins_Id_Macro( 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$