]> Creatis software - cpPlugins.git/blobdiff - lib/cpPlugins/Extensions/Visualization/MPRWithDifferentWindows.cxx
YPbPr color model added
[cpPlugins.git] / lib / cpPlugins / Extensions / Visualization / MPRWithDifferentWindows.cxx
index f66c258f47d0292772374429de7cc5441565de44..103d32136cb226aac62108a01c21b108c17612d6 100644 (file)
@@ -89,6 +89,30 @@ SetImage( vtkImageData* image )
   this->RenderAll( );
 }
 
+// -------------------------------------------------------------------------
+void cpPlugins::Extensions::Visualization::MPRWithDifferentWindows::
+SetModeToNavigation( )
+{
+  for( unsigned int i = 0; i < 3; ++i )
+  {
+    if( this->m_Styles[ i ].GetPointer( ) != NULL )
+      this->m_Styles[ i ]->SetModeToNavigation( );
+    
+  } // rof
+}
+
+// -------------------------------------------------------------------------
+void cpPlugins::Extensions::Visualization::MPRWithDifferentWindows::
+SetModeToDeformation( )
+{
+  for( unsigned int i = 0; i < 3; ++i )
+  {
+    if( this->m_Styles[ i ].GetPointer( ) != NULL )
+      this->m_Styles[ i ]->SetModeToDeformation( );
+    
+  } // rof
+}
+
 // -------------------------------------------------------------------------
 void cpPlugins::Extensions::Visualization::MPRWithDifferentWindows::
 ResetCamera( const int& id )
@@ -125,4 +149,17 @@ RenderAll( )
       this->m_Windows[ i ]->Render( );
 }
 
+// -------------------------------------------------------------------------
+void cpPlugins::Extensions::Visualization::MPRWithDifferentWindows::
+Add3DActor( vtkProp3D* prop )
+{
+  if( this->m_Renderers[ 3 ] != NULL )
+  {
+    this->m_Renderers[ 3 ]->AddActor( prop );
+    this->ResetCamera( 3 );
+    this->Render( 3 );
+
+  } // fi
+}
+
 // eof - $RCSfile$