X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=lib%2FcpPlugins%2FPath.hxx;fp=lib%2FcpPlugins%2FPath.hxx;h=0000000000000000000000000000000000000000;hb=aa77db36cc1d87ba014c982a235239c3c87224f3;hp=b6fb093ca68f5acd7633e223ffd0460b03a4fa61;hpb=733108d258a27799df875ceda2d84c3cafea64d3;p=cpPlugins.git diff --git a/lib/cpPlugins/Path.hxx b/lib/cpPlugins/Path.hxx deleted file mode 100644 index b6fb093..0000000 --- a/lib/cpPlugins/Path.hxx +++ /dev/null @@ -1,44 +0,0 @@ -#ifndef __CPPLUGINS__PATH__HXX__ -#define __CPPLUGINS__PATH__HXX__ - -#include - -// ------------------------------------------------------------------------- -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$