]> Creatis software - cpPlugins.git/blobdiff - lib/cpPlugins/Extensions/Visualization/MPRWithDifferentWindows.cxx
Some bugs
[cpPlugins.git] / lib / cpPlugins / Extensions / Visualization / MPRWithDifferentWindows.cxx
index f66c258f47d0292772374429de7cc5441565de44..e2716318d0aa63ed64a822c8a48de9426079e1f6 100644 (file)
@@ -89,6 +89,23 @@ 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::
 ResetCamera( const int& id )