X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=lib%2FcpExtensions%2FVisualization%2FMPRObjects.cxx;h=0e522491b933349501a6286a1fd75682f8799e45;hb=a4bc3b8e36e91e45f37a3b7eecb5789c635aa5c0;hp=a32824c455926d3f674f3f6d310afa629668af2c;hpb=4f6c47b5d9994cd1bbb601bfe8bc087a0a619e72;p=cpPlugins.git diff --git a/lib/cpExtensions/Visualization/MPRObjects.cxx b/lib/cpExtensions/Visualization/MPRObjects.cxx index a32824c..0e52249 100644 --- a/lib/cpExtensions/Visualization/MPRObjects.cxx +++ b/lib/cpExtensions/Visualization/MPRObjects.cxx @@ -51,11 +51,11 @@ void cpExtensions::Visualization::MPRObjects:: SetImage( vtkImageData* image ) { this->m_MPRActors->AddInputData( image ); - this->m_MPRActors->PushDataInto( - this->m_Renderers[ 0 ], - this->m_Renderers[ 1 ], - this->m_Renderers[ 2 ], - this->m_Renderers[ 3 ] + this->m_MPRActors->PushActorsInto( + this->m_Windows[ 0 ], + this->m_Windows[ 1 ], + this->m_Windows[ 2 ], + this->m_Windows[ 3 ] ); // First rendering @@ -74,11 +74,11 @@ AddAuxiliaryImage( vtkImageData* image ) return; // Push everything on renderers - this->m_MPRActors->PushDataInto( - this->m_Renderers[ 0 ], - this->m_Renderers[ 1 ], - this->m_Renderers[ 2 ], - this->m_Renderers[ 3 ] + this->m_MPRActors->PushActorsInto( + this->m_Windows[ 0 ], + this->m_Windows[ 1 ], + this->m_Windows[ 2 ], + this->m_Windows[ 3 ] ); // Rendering @@ -95,7 +95,7 @@ ActivateInteractors( ) // Check prerrequisites if( this->m_Windows[ i ] == NULL || this->m_Renderers[ i ] == NULL ) { - this->m_Styles[ i ] = NULL; + // TODO: this->m_Styles[ i ] = NULL; continue; } // fi @@ -103,16 +103,18 @@ ActivateInteractors( ) ImageSliceActors* actors = this->m_MPRActors->GetSliceActors( i ); if( actors == NULL ) { - this->m_Styles[ i ] = NULL; + // TODO: 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( ); + /* TODO + 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 @@ -121,23 +123,27 @@ ActivateInteractors( ) { 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( ) ); + /* TODO + 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( ) ); + /* TODO + if( this->m_Windows[ 3 ] != NULL ) + this->m_Styles[ i ]-> + AssociateInteractor( this->m_Windows[ 3 ]->GetInteractor( ) ); + */ } // rof // Finish interactor linking - this->m_MPRActors->LinkInteractors( ); + // TODO: this->m_MPRActors->LinkInteractors( ); // Restart rendering this->ResetCameras( );