]> Creatis software - cpPlugins.git/blobdiff - lib/cpPlugins/Interface/BaseMPRWidget.cxx
Merge branch 'master' of ssh://git.creatis.insa-lyon.fr/cpPlugins
[cpPlugins.git] / lib / cpPlugins / Interface / BaseMPRWidget.cxx
index fece6b83b15688d26bfb8fdc83bedcd94ba85d3c..2017b177f7e75617a79e8f96a4d0d132977dd923 100644 (file)
@@ -84,6 +84,18 @@ ShowImage(
   const double& r, const double& g, const double& b
   )
 {
+  // Update tree view
+  QTreeWidgetItem* new_item = this->_UpdateItem( name, parent );
+  if( new_item == NULL )
+    return( false );
+
+  // Associate new data
+  this->m_Images[ name ] = image;
+  this->m_Tree[ name ] = parent;
+
+  // Show image and return
+  this->m_MPRObjects->AddImage( image );
+  return( true );
 }
 
 // -------------------------------------------------------------------------
@@ -118,6 +130,7 @@ ShowMesh(
   const double& r, const double& g, const double& b
   )
 {
+  return false;
 }
 
 // -------------------------------------------------------------------------