- // Prepare renderers
- for( int i = 0; i < 3; ++i )
- {
- // Check prerrequisites
- if( this->m_Windows[ i ] == NULL || this->m_Renderers[ i ] == NULL )
- {
- this->m_Styles[ i ] = NULL;
- continue;
-
- } // fi
-
- ImageSliceActors* actors = this->m_MPRActors->GetSliceActors( i );
- if( actors == NULL )
- {
- this->m_Styles[ i ] = NULL;
- continue;
-
- } // fi
-
- this->m_Styles[ i ] = vtkSmartPointer< TStyle >::New( );
- this->m_Styles[ i ]->Configure( actors, this->m_MPRActors );
- this->m_Styles[ i ]->
- SetInteractor( this->m_Windows[ i ]->GetInteractor( ), i );
- this->m_Styles[ i ]->SetModeToNavigation( );
-
- } // rof
-
- // Synch 2D and 3D renderers
- for( int i = 0; i < 3; ++i )
- {
- for( int j = 0; j < 3; ++j )
- {
- if(
- this->m_Windows[ i ] != NULL &&
- this->m_Windows[ j ] != NULL &&
- i != j
- )
- this->m_Styles[ i ]->
- AssociateInteractor( this->m_Windows[ j ]->GetInteractor( ) );
-
- } // rof
- if( this->m_Windows[ 3 ] != NULL )
- this->m_Styles[ i ]->
- AssociateInteractor( this->m_Windows[ 3 ]->GetInteractor( ) );
-
- } // rof
-
- // Finish interactor linking
- this->m_MPRActors->LinkInteractors( );
-
- // Restart rendering