+++ /dev/null
-#ifndef __CPPLUGINS__PATH__HXX__
-#define __CPPLUGINS__PATH__HXX__
-
-#include <cpPlugins_Instances/Paths.h>
-
-// -------------------------------------------------------------------------
-template< unsigned int _NDim >
-bool cpPlugins::Path::
-_ITK_2_VTK( itk::LightObject* o )
-{
- typedef
- cpExtensions::DataStructures::PolyLineParametricPath< _NDim >
- _TPath;
- typedef
- cpExtensions::Visualization::PolyLineParametricPathToPolyData< _TPath >
- _TFilter;
-
- auto path = dynamic_cast< _TPath* >( o );
- if( path != NULL )
- {
- _TFilter* f = dynamic_cast< _TFilter* >( this->m_ITKvVTK.GetPointer( ) );
- if( f == NULL )
- {
- vtkSmartPointer< _TFilter > nf = _TFilter::New( );
- this->m_ITKvVTK = nf.GetPointer( );
- f = nf.GetPointer( );
-
- } // fi
- f->SetInput( path );
- f->SetReferenceImage( path->GetReferenceImage( ) );
- f->Update( );
-
- // Keep object track
- this->m_ITKObject = o;
- this->m_VTKObject = f->GetOutput( );
- return( true );
- }
- else
- return( false );
-}
-
-#endif // __CPPLUGINS__PATH__HXX__
-
-// eof - $RCSfile$