1 #include <cpPlugins/DataObjects/Simple3DCurve.h>
2 #include <cpExtensions/DataStructures/Simple3DCurve.h>
3 #include <cpExtensions/Visualization/Simple3DCurveToPolyData.h>
5 #include <cpPlugins/DataObjects/Simple3DCurve_Demanglers.h>
7 // -------------------------------------------------------------------------
8 void cpPlugins::DataObjects::Simple3DCurve::
9 SetITK( itk::LightObject* o )
11 cpPlugins_Demangle_Simple3DCurve_All_1( o, _ITK_2_VTK )
14 this->m_ITKvVTK = NULL;
18 // -------------------------------------------------------------------------
19 void cpPlugins::DataObjects::Simple3DCurve::
20 SetVTK( vtkObjectBase* o )
25 this->m_ITKvVTK = NULL;
28 // -------------------------------------------------------------------------
29 cpPlugins::DataObjects::Simple3DCurve::
35 // -------------------------------------------------------------------------
36 cpPlugins::DataObjects::Simple3DCurve::
41 // -------------------------------------------------------------------------
42 template< class _TSimple3DCurve >
43 void cpPlugins::DataObjects::Simple3DCurve::
44 _ITK_2_VTK( _TSimple3DCurve* curve )
47 cpExtensions::Visualization::Simple3DCurveToPolyData< _TSimple3DCurve >
49 _TFilter* f = dynamic_cast< _TFilter* >( this->m_ITKvVTK.GetPointer( ) );
52 _TFilter* nf = _TFilter::New( );
62 this->m_VTK = f->GetOutput( );