]> Creatis software - cpPlugins.git/commitdiff
...
authorLeonardo Florez-Valencia <florez-l@javeriana.edu.co>
Tue, 15 Sep 2015 21:04:04 +0000 (23:04 +0200)
committerLeonardo Florez-Valencia <florez-l@javeriana.edu.co>
Tue, 15 Sep 2015 21:04:04 +0000 (23:04 +0200)
lib/cpPlugins/Extensions/Visualization/ImageInteractorStyle.cxx
lib/cpPlugins/Extensions/Visualization/MPRWithDifferentWindows.cxx

index d69d1e3958a57dda651cf69a66dfdd06cb577096..ee8ee26c8fdaa3bd944d7958e46784195d7337d7 100644 (file)
@@ -280,6 +280,7 @@ OnRightButtonDown( )
   else
   {
     this->StartDolly( );
+
   } // fi
 }
 
index 1bf8ea9446a127d9b65370dd36b7515b3bc30374..115de09c2db8eb1e438341c23aad2e803e9aceac 100644 (file)
@@ -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( );