]> Creatis software - cpPlugins.git/blob - lib/cpPlugins/Interface/Image.h
e6b2b7762708360c5781af9651fe1f6ffc91212d
[cpPlugins.git] / lib / cpPlugins / Interface / Image.h
1 #ifndef __CPPLUGINS__INTERFACE__IMAGE__H__
2 #define __CPPLUGINS__INTERFACE__IMAGE__H__
3
4 #include <map>
5 #include <string>
6 #include <itkProcessObject.h>
7 #include <cpPlugins/Interface/cpPlugins_Interface_Export.h>
8 #include <cpPlugins/Interface/DataObject.h>
9
10 class vtkImageData;
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
25     public:
26       Image( );
27       virtual ~Image( );
28
29       virtual std::string GetClassName( ) const;
30       virtual void SetDataObject( itk::DataObject* dobj );
31
32       vtkImageData* GetVTKImageData( ) const;
33
34     protected:
35       template< unsigned int D >
36       void _ConnectToVTK_0( );
37
38       template< class P, unsigned int D >
39       void _ConnectToVTK_1( );
40
41     protected:
42       itk::ProcessObject::Pointer m_Image2VTKImageData;
43       vtkImageData* m_VTKImageData;
44     };
45
46   } // ecapseman
47
48 } // ecapseman
49
50 #endif // __CPPLUGINS__INTERFACE__IMAGE__H__
51
52 // eof - $RCSfile$