X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;ds=sidebyside;f=appli%2FImageMPR%2FImageMPR.cxx;h=0100a138a5faadb54c3841b5c0fb0baa299c5435;hb=a4bc3b8e36e91e45f37a3b7eecb5789c635aa5c0;hp=7fffc2732df90c2864acef0691e53db90bc2e463;hpb=4f6c47b5d9994cd1bbb601bfe8bc087a0a619e72;p=cpPlugins.git diff --git a/appli/ImageMPR/ImageMPR.cxx b/appli/ImageMPR/ImageMPR.cxx index 7fffc27..0100a13 100644 --- a/appli/ImageMPR/ImageMPR.cxx +++ b/appli/ImageMPR/ImageMPR.cxx @@ -194,7 +194,8 @@ _ConfigureMeshActors( ) { if( this->m_Mesh.IsNull( ) ) return( "Valid mesh not found." ); - + + this->m_Mesh->CreateVTKActor( ); vtkActor* vtk_actor = this->m_Mesh->GetVTKActor( ); if( vtk_actor != NULL ) { @@ -216,8 +217,9 @@ _ConfigureMeshActors( ) std::string lerr = this->m_Cutters[ i ]->Update( ); if( lerr == "" ) { + this->m_Cutters[ i ]->GetOutput< TPluginMesh >( 0 )->CreateVTKActor( ); vtkActor* actor = this->m_Cutters[ i ]->GetOutput< TPluginMesh >( 0 )->GetVTKActor( ); - mprActors->GetSliceActors( i )->AddActor( this->m_Cutters[ i ]->GetVTKAlgorithm( ), actor ); + mprActors->GetSliceActors( i )->AddActor( this->m_Cutters[ i ]->GetVTK< vtkAlgorithm >( ), actor ); if( i == 0 ) this->m_MPRObjects->GetXRenderer( )->AddActor( actor ); else if( i == 1 ) @@ -263,7 +265,7 @@ _triggered_actionOpenInputImage( ) std::string err = this->_LoadImage( this->m_Image ); if( err == "" ) { - vtkImageData* vtk_id = this->m_Image->GetVTKImageData( ); + vtkImageData* vtk_id = this->m_Image->GetVTK< vtkImageData >( ); if( vtk_id != NULL ) { this->m_MPRObjects->SetImage( vtk_id ); @@ -305,7 +307,7 @@ _triggered_actionOpenSegmentation( ) std::string err = this->_LoadImage( this->m_Segmentation ); if( err == "" ) { - vtkImageData* vtk_id = this->m_Segmentation->GetVTKImageData( ); + vtkImageData* vtk_id = this->m_Segmentation->GetVTK< vtkImageData >( ); if( vtk_id != NULL ) { this->m_MPRObjects->AddAuxiliaryImage( vtk_id ); @@ -413,7 +415,9 @@ _triggered_actionImageToImage( ) result->DisconnectPipeline( ); this->m_Image = result; if( this->m_Image.IsNotNull( ) ) - this->m_MPRObjects->SetImage( this->m_Image->GetVTKImageData( ) ); + this->m_MPRObjects->SetImage( + this->m_Image->GetVTK< vtkImageData >( ) + ); } else QMessageBox::critical(