X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=lib%2FcpPluginsExtensions%2FSkeleton.cxx;fp=lib%2FcpPluginsExtensions%2FSkeleton.cxx;h=0000000000000000000000000000000000000000;hb=410a1d0bf36fb01148880c034973308e4600ffda;hp=a7981ca415d8e6395616490d7e943244f6e09eba;hpb=f1747c7248d5eead5ea9d7e57bda0b081bcef065;p=cpPlugins.git diff --git a/lib/cpPluginsExtensions/Skeleton.cxx b/lib/cpPluginsExtensions/Skeleton.cxx deleted file mode 100644 index a7981ca..0000000 --- a/lib/cpPluginsExtensions/Skeleton.cxx +++ /dev/null @@ -1,63 +0,0 @@ -#include -#include -#include - -// ------------------------------------------------------------------------- -void cpPluginsExtensions::Skeleton:: -SetITK( itk::LightObject* o ) -{ - cpPlugins_Demangle_Skeleton_All_1( o, _ITK_2_VTK ) - { - this->m_VTK = NULL; - this->m_ITKvVTK = NULL; - } -} - -// ------------------------------------------------------------------------- -void cpPluginsExtensions::Skeleton:: -SetVTK( vtkObjectBase* o ) -{ - // Do nothing - this->m_ITK = NULL; - this->m_VTK = NULL; - this->m_ITKvVTK = NULL; -} - -// ------------------------------------------------------------------------- -cpPluginsExtensions::Skeleton:: -Skeleton( ) - : Superclass( ) -{ -} - -// ------------------------------------------------------------------------- -cpPluginsExtensions::Skeleton:: -~Skeleton( ) -{ -} - -// ------------------------------------------------------------------------- -template< class _TSkeleton > -void cpPluginsExtensions::Skeleton:: -_ITK_2_VTK( _TSkeleton* sk ) -{ - typedef - cpExtensions::Visualization::SkeletonToPolyData< _TSkeleton > - _TFilter; - _TFilter* f = dynamic_cast< _TFilter* >( this->m_ITKvVTK.GetPointer( ) ); - if( f == NULL ) - { - _TFilter* nf = _TFilter::New( ); - this->m_ITKvVTK = nf; - f = nf; - - } // fi - f->SetInput( sk ); - f->Update( ); - - // Keep object track - this->m_ITK = sk; - this->m_VTK = f->GetOutput( ); -} - -// eof - $RCSfile$