]> Creatis software - cpPlugins.git/blob - lib/cpPlugins/Interface/PolyData.h
...
[cpPlugins.git] / lib / cpPlugins / Interface / PolyData.h
1 #ifndef __CPPLUGINS__INTERFACE__POLYDATA__H__
2 #define __CPPLUGINS__INTERFACE__POLYDATA__H__
3
4 #include <cpPlugins/Interface/cpPlugins_Interface_Export.h>
5 #include <cpPlugins/Interface/DataObject.h>
6
7 #include <vtkActor.h>
8 #include <vtkPolyData.h>
9 #include <vtkPolyDataMapper.h>
10 #include <vtkSmartPointer.h>
11
12 namespace cpPlugins
13 {
14   namespace Interface
15   {
16     /**
17      */
18     class cpPlugins_Interface_EXPORT PolyData
19       : public DataObject
20     {
21     public:
22       typedef PolyData                        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( PolyData, DataObject );
30
31     public:
32       virtual std::string GetClassName( ) const;
33       virtual void SetRealDataObject( itk::DataObject* dobj );
34       virtual void SetRealDataObject( vtkDataObject* dobj );
35
36       vtkPolyData* GetData( ) const;
37       vtkPolyDataMapper* GetMapper( ) const;
38       vtkActor* GetActor( ) const;
39
40     protected:
41       PolyData( );
42       virtual ~PolyData( );
43
44     private:
45       // Purposely not implemented
46       PolyData( const Self& );
47       Self& operator=( const Self& );
48
49     protected:
50       vtkSmartPointer< vtkPolyData >       m_Data;
51       vtkSmartPointer< vtkPolyDataMapper > m_Mapper;
52       vtkSmartPointer< vtkActor >          m_Actor;
53     };
54
55   } // ecapseman
56
57 } // ecapseman
58
59 #endif // __CPPLUGINS__INTERFACE__POLYDATA__H__
60
61 // eof - $RCSfile$