#include <cpPlugins/Extensions/Visualization/MPRWithDifferentWindows.h>
+#include <vtkCamera.h>
// -------------------------------------------------------------------------
cpPlugins::Extensions::Visualization::MPRWithDifferentWindows::
this->m_Renderers[ 3 ]
);
+ // 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 );
+
// First rendering
this->ResetCameras( );
this->RenderAll( );
this->m_Windows[ i ]->Render( );
}
+// -------------------------------------------------------------------------
+vtkRenderer* cpPlugins::Extensions::Visualization::MPRWithDifferentWindows::
+GetRenderer( const int& id ) const
+{
+ if( id < 4 )
+ return( this->m_Renderers[ id ] );
+ else
+ return( NULL );
+}
+
// -------------------------------------------------------------------------
void cpPlugins::Extensions::Visualization::MPRWithDifferentWindows::
Add3DActor( vtkProp3D* prop )