]> Creatis software - cpPlugins.git/blob - lib/cpPlugins/Interface/Image.h
Garbage collector added
[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       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       virtual std::string GetClassName( ) const;
33       virtual void SetRealDataObject( itk::DataObject* dobj );
34
35       vtkImageData* GetVTKImageData( ) const;
36       void UpdateVTKImageData( );
37
38     protected:
39       Image( );
40       virtual ~Image( );
41
42       template< unsigned int D >
43         void _VTK_0( );
44
45       template< class P, unsigned int D >
46         void _VTK_1( );
47
48     private:
49       // Purposely not implemented
50       Image( const Self& );
51       Self& operator=( const Self& );
52
53     protected:
54       itk::ProcessObject::Pointer m_Image2VTKImageData;
55       vtkImageData* m_VTKImageData;
56     };
57
58   } // ecapseman
59
60 } // ecapseman
61
62 #endif // __CPPLUGINS__INTERFACE__IMAGE__H__
63
64 // eof - $RCSfile$