X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=lib%2FcpPlugins%2FInterface%2FMesh.cxx;h=94adb2bb163ae5f47da17ff9e62abb41d22d74c4;hb=1b600247da314fe62d007ca8a0ce24d0006931f4;hp=c052e6a5a245a2a56993bbec01194632ad628cc1;hpb=9015cf98c60cf4ab304a639990004ee783a8bec0;p=cpPlugins.git diff --git a/lib/cpPlugins/Interface/Mesh.cxx b/lib/cpPlugins/Interface/Mesh.cxx index c052e6a..94adb2b 100644 --- a/lib/cpPlugins/Interface/Mesh.cxx +++ b/lib/cpPlugins/Interface/Mesh.cxx @@ -4,50 +4,19 @@ // ------------------------------------------------------------------------- void cpPlugins::Interface::Mesh:: -SetITKDataObject( itk::DataObject* o ) +SetVTK( vtkObject* mesh ) { - // TODO: conversion!!! - std::cout << "Mesh: SetITKDataObject " << std::endl; - std::exit( 1 ); -} - -// ------------------------------------------------------------------------- -void cpPlugins::Interface::Mesh:: -SetVTKDataObject( vtkDataObject* o ) -{ - if( dynamic_cast< vtkPolyData* >( o ) != NULL ) - { - this->m_VTKObject = o; - - // TODO: conversion!!! - } + if( dynamic_cast< vtkPolyData* >( mesh ) != NULL ) + this->m_VTKObject = mesh; else this->m_VTKObject = NULL; + this->Modified( ); } - -// ------------------------------------------------------------------------- -vtkPolyData* cpPlugins::Interface::Mesh:: -GetVTKPolyData( ) -{ - return( dynamic_cast< vtkPolyData* >( this->m_VTKObject.GetPointer( ) ) ); -} - -// ------------------------------------------------------------------------- -const vtkPolyData* cpPlugins::Interface::Mesh:: -GetVTKPolyData( ) const -{ - return( - dynamic_cast< const vtkPolyData* >( this->m_VTKObject.GetPointer( ) ) - ); -} - // ------------------------------------------------------------------------- cpPlugins::Interface::Mesh:: Mesh( ) : Superclass( ) { - this->m_ClassName = "cpPlugins::Interface::Mesh"; - this->m_ClassCategory = "BasicObject"; } // ------------------------------------------------------------------------- @@ -56,32 +25,4 @@ cpPlugins::Interface::Mesh:: { } -// ------------------------------------------------------------------------- -template< unsigned int D > -void cpPlugins::Interface::Mesh:: -_ITK_2_VTK_0( itk::DataObject* o ) -{ -} - -// ------------------------------------------------------------------------- -template< class P, unsigned int D > -void cpPlugins::Interface::Mesh:: -_ITK_2_VTK_1( itk::DataObject* o ) -{ -} - -// ------------------------------------------------------------------------- -template< unsigned int D > -void cpPlugins::Interface::Mesh:: -_VTK_2_ITK_0( itk::DataObject* o ) -{ -} - -// ------------------------------------------------------------------------- -template< class P, unsigned int D > -void cpPlugins::Interface::Mesh:: -_VTK_2_ITK_1( itk::DataObject* o ) -{ -} - // eof - $RCSfile$