From: Leonardo Florez-Valencia Date: Wed, 4 Feb 2015 23:05:12 +0000 (-0500) Subject: MPR updated X-Git-Tag: v0.1~416 X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=25520c5f606e3a3c1a1c71faddbf28ae511d025f;p=cpPlugins.git MPR updated --- diff --git a/lib/cpPlugins/Extensions/Visualization/MPRWithDifferentWindows.cxx b/lib/cpPlugins/Extensions/Visualization/MPRWithDifferentWindows.cxx index e271631..f8f86c6 100644 --- a/lib/cpPlugins/Extensions/Visualization/MPRWithDifferentWindows.cxx +++ b/lib/cpPlugins/Extensions/Visualization/MPRWithDifferentWindows.cxx @@ -106,6 +106,30 @@ SetSegmentation( vtkImageData* image ) this->Render( 2 ); } +// ------------------------------------------------------------------------- +void cpPlugins::Extensions::Visualization::MPRWithDifferentWindows:: +SetModeToNavigation( ) +{ + for( unsigned int i = 0; i < 3; ++i ) + { + if( this->m_Styles[ i ].GetPointer( ) != NULL ) + this->m_Styles[ i ]->SetModeToNavigation( ); + + } // rof +} + +// ------------------------------------------------------------------------- +void cpPlugins::Extensions::Visualization::MPRWithDifferentWindows:: +SetModeToDeformation( ) +{ + for( unsigned int i = 0; i < 3; ++i ) + { + if( this->m_Styles[ i ].GetPointer( ) != NULL ) + this->m_Styles[ i ]->SetModeToDeformation( ); + + } // rof +} + // ------------------------------------------------------------------------- void cpPlugins::Extensions::Visualization::MPRWithDifferentWindows:: ResetCamera( const int& id ) diff --git a/lib/cpPlugins/Extensions/Visualization/MPRWithDifferentWindows.h b/lib/cpPlugins/Extensions/Visualization/MPRWithDifferentWindows.h index ceff1eb..495e6bb 100644 --- a/lib/cpPlugins/Extensions/Visualization/MPRWithDifferentWindows.h +++ b/lib/cpPlugins/Extensions/Visualization/MPRWithDifferentWindows.h @@ -61,9 +61,10 @@ namespace cpPlugins ); virtual ~MPRWithDifferentWindows( ); - void SetImage( vtkImageData* image ); void SetSegmentation( vtkImageData* image ); + void SetModeToNavigation( ); + void SetModeToDeformation( ); void ResetCamera( const int& id ); void ResetCameras( );