1 #ifndef __CPPLUGINS__INTERFACE__POLYDATA__H__
2 #define __CPPLUGINS__INTERFACE__POLYDATA__H__
4 #include <cpPlugins/Interface/cpPlugins_Interface_Export.h>
5 #include <cpPlugins/Interface/DataObject.h>
8 #include <vtkPolyData.h>
9 #include <vtkPolyDataMapper.h>
10 #include <vtkSmartPointer.h>
18 class cpPlugins_Interface_EXPORT PolyData
22 typedef PolyData Self;
23 typedef DataObject Superclass;
24 typedef itk::SmartPointer< Self > Pointer;
25 typedef itk::SmartPointer< const Self > ConstPointer;
29 itkTypeMacro( PolyData, DataObject );
32 virtual std::string GetClassName( ) const;
33 virtual void SetRealDataObject( itk::DataObject* dobj );
34 virtual void SetRealDataObject( vtkDataObject* dobj );
36 vtkPolyData* GetData( ) const;
37 vtkPolyDataMapper* GetMapper( ) const;
38 vtkActor* GetActor( ) const;
45 // Purposely not implemented
46 PolyData( const Self& );
47 Self& operator=( const Self& );
50 vtkSmartPointer< vtkPolyData > m_Data;
51 vtkSmartPointer< vtkPolyDataMapper > m_Mapper;
52 vtkSmartPointer< vtkActor > m_Actor;
59 #endif // __CPPLUGINS__INTERFACE__POLYDATA__H__