]> Creatis software - cpPlugins.git/blobdiff - lib/cpPlugins/Extensions/Visualization/MPRWithDifferentWindows.cxx
vtkPolyData support added
[cpPlugins.git] / lib / cpPlugins / Extensions / Visualization / MPRWithDifferentWindows.cxx
index f8f86c60d141a4468ed0923f3559c78d4aaa8743..103d32136cb226aac62108a01c21b108c17612d6 100644 (file)
@@ -89,23 +89,6 @@ SetImage( vtkImageData* image )
   this->RenderAll( );
 }
 
-// -------------------------------------------------------------------------
-void cpPlugins::Extensions::Visualization::MPRWithDifferentWindows::
-SetSegmentation( vtkImageData* image )
-{
-  this->m_MPRActors->SetSegmentationData( image );
-  this->m_MPRActors->PushDataInto(
-    this->m_Renderers[ 0 ],
-    this->m_Renderers[ 1 ],
-    this->m_Renderers[ 2 ],
-    this->m_Renderers[ 3 ]
-    );
-
-  this->Render( 0 );
-  this->Render( 1 );
-  this->Render( 2 );
-}
-
 // -------------------------------------------------------------------------
 void cpPlugins::Extensions::Visualization::MPRWithDifferentWindows::
 SetModeToNavigation( )
@@ -166,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$