From 25520c5f606e3a3c1a1c71faddbf28ae511d025f Mon Sep 17 00:00:00 2001 From: Leonardo Florez-Valencia Date: Wed, 4 Feb 2015 18:05:12 -0500 Subject: [PATCH] MPR updated --- .../Visualization/MPRWithDifferentWindows.cxx | 24 +++++++++++++++++++ .../Visualization/MPRWithDifferentWindows.h | 3 ++- 2 files changed, 26 insertions(+), 1 deletion(-) 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( ); -- 2.45.1