From: Leonardo Florez-Valencia Date: Tue, 15 Sep 2015 21:04:04 +0000 (+0200) Subject: ... X-Git-Tag: v0.1~381 X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=39e23fa6b246988c84fd504107348b5f50792f08;p=cpPlugins.git ... --- diff --git a/lib/cpPlugins/Extensions/Visualization/ImageInteractorStyle.cxx b/lib/cpPlugins/Extensions/Visualization/ImageInteractorStyle.cxx index d69d1e3..ee8ee26 100644 --- a/lib/cpPlugins/Extensions/Visualization/ImageInteractorStyle.cxx +++ b/lib/cpPlugins/Extensions/Visualization/ImageInteractorStyle.cxx @@ -280,6 +280,7 @@ OnRightButtonDown( ) else { this->StartDolly( ); + } // fi } diff --git a/lib/cpPlugins/Extensions/Visualization/MPRWithDifferentWindows.cxx b/lib/cpPlugins/Extensions/Visualization/MPRWithDifferentWindows.cxx index 1bf8ea9..115de09 100644 --- a/lib/cpPlugins/Extensions/Visualization/MPRWithDifferentWindows.cxx +++ b/lib/cpPlugins/Extensions/Visualization/MPRWithDifferentWindows.cxx @@ -22,8 +22,12 @@ MPRWithDifferentWindows( for( int i = 0; i < 4; ++i ) { if( this->m_Windows[ i ] == NULL ) + { + this->m_Renderers[ i ] = NULL; continue; + } // fi + // Renderers this->m_Renderers[ i ] = vtkSmartPointer< vtkRenderer >::New( ); this->m_Renderers[ i ]->SetBackground( 0.1, 0.3, 0.8 ); @@ -86,10 +90,12 @@ SetImage( vtkImageData* image ) ); // Correct cameras positions - vtkCamera* zCam = this->m_Renderers[ 2 ]->GetActiveCamera( ); - zCam->SetViewUp( 0, -1, 0 ); - zCam->SetPosition( 0, 0, -1 ); - zCam->SetFocalPoint( 0, 0, 0 ); + /* TODO + vtkCamera* zCam = this->m_Renderers[ 2 ]->GetActiveCamera( ); + zCam->SetViewUp( 0, -1, 0 ); + zCam->SetPosition( 0, 0, -1 ); + zCam->SetFocalPoint( 0, 0, 0 ); + */ // First rendering this->ResetCameras( );