]> Creatis software - cpPlugins.git/blobdiff - lib/cpPlugins/Path.hxx
...
[cpPlugins.git] / lib / cpPlugins / Path.hxx
diff --git a/lib/cpPlugins/Path.hxx b/lib/cpPlugins/Path.hxx
deleted file mode 100644 (file)
index 04047d1..0000000
+++ /dev/null
@@ -1,44 +0,0 @@
-#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$