]> Creatis software - cpPlugins.git/blobdiff - lib/cpExtensions/QT/SimpleMPRWidget.cxx
...
[cpPlugins.git] / lib / cpExtensions / QT / SimpleMPRWidget.cxx
index 73f3b76feb8584cba21d46915e7ab5ad6b47bc2e..0cede9d8e5f167a3207e92f922efe738561faea5 100644 (file)
@@ -149,6 +149,17 @@ GetInteractor( unsigned int i )
     return( NULL );
 }
 
+// -------------------------------------------------------------------------
+vtkActor* cpExtensions::QT::SimpleMPRWidget::
+GetActor( vtkPolyData* mesh )
+{
+  auto i = this->m_PolyDatas.find( mesh );
+  if( i != this->m_PolyDatas.end( ) )
+    return( i->second.Actor.GetPointer( ) );
+  else
+    return( NULL );
+}
+
 // -------------------------------------------------------------------------
 void cpExtensions::QT::SimpleMPRWidget::
 _SyncBottom( int a, int b )