1 #ifndef __CPPLUGINS__IMAGEINDEXESCONTAINER__HXX__
2 #define __CPPLUGINS__IMAGEINDEXESCONTAINER__HXX__
4 #include <cpPlugins_Instances/Paths.h>
6 // -------------------------------------------------------------------------
7 template< unsigned int _NDim >
8 bool cpPlugins::ImageIndexesContainer::
9 _ITK_2_VTK( itk::LightObject* o )
12 cpExtensions::DataStructures::ImageIndexesContainer< _NDim >
13 _TImageIndexesContainer;
15 cpExtensions::Visualization::ImageIndexesContainerToPolyData< _TImageIndexesContainer >
18 auto cont = dynamic_cast< _TImageIndexesContainer* >( o );
21 _TFilter* f = dynamic_cast< _TFilter* >( this->m_ITKvVTK.GetPointer( ) );
24 vtkSmartPointer< _TFilter > nf = _TFilter::New( );
25 this->m_ITKvVTK = nf.GetPointer( );
30 f->SetReferenceImage( cont->GetReferenceImage( ) );
34 this->m_ITKObject = o;
35 this->m_VTKObject = f->GetOutput( );
42 #endif // __CPPLUGINS__IMAGEINDEXESCONTAINER__HXX__