]> Creatis software - cpPlugins.git/blobdiff - lib/cpPlugins/Extensions/Visualization/MPRWithDifferentWindows.cxx
...
[cpPlugins.git] / lib / cpPlugins / Extensions / Visualization / MPRWithDifferentWindows.cxx
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( );