2 #include <cpPlugins/Interface/PolyData.h>
4 // -------------------------------------------------------------------------
5 std::string cpPlugins::Interface::PolyData::
8 return( "cpPlugins::Interface::PolyData" );
11 // -------------------------------------------------------------------------
12 void cpPlugins::Interface::PolyData::
13 SetRealDataObject( itk::DataObject* dobj )
15 // Nothing to be done here
18 // -------------------------------------------------------------------------
19 void cpPlugins::Interface::PolyData::
20 SetRealDataObject( vtkDataObject* dobj )
22 this->m_Data = dynamic_cast< vtkPolyData* >( dobj );
23 if( this->m_Data == NULL )
25 this->m_Mapper->SetInputData( this->m_Data );
26 this->m_Actor->SetMapper( this->m_Mapper );
29 // -------------------------------------------------------------------------
30 vtkPolyData* cpPlugins::Interface::PolyData::
33 return( this->m_Data );
36 // -------------------------------------------------------------------------
37 vtkPolyDataMapper* cpPlugins::Interface::PolyData::
40 return( this->m_Mapper );
43 // -------------------------------------------------------------------------
44 vtkActor* cpPlugins::Interface::PolyData::
47 return( this->m_Actor );
50 // -------------------------------------------------------------------------
51 cpPlugins::Interface::PolyData::
55 this->m_Mapper = vtkSmartPointer< vtkPolyDataMapper >::New( );
56 this->m_Actor = vtkSmartPointer< vtkActor >::New( );
59 // -------------------------------------------------------------------------
60 cpPlugins::Interface::PolyData::