]> Creatis software - cpPlugins.git/blobdiff - lib/cpExtensions/Visualization/ImageSliceActors.cxx
Widget integration (step 4/6)... Testing on windows.
[cpPlugins.git] / lib / cpExtensions / Visualization / ImageSliceActors.cxx
index f945bd397eb6c6b885f61f5e234c2bdb44182c7e..469f270f6b7df5886232ed7601f339c857579110 100644 (file)
@@ -399,6 +399,9 @@ SetSliceNumber( const int& slice )
 
   } // rof
 
+  if( this->m_UpdateCommand != NULL )
+    this->m_UpdateCommand( this->m_UpdateData );
+
   // Update text
   this->UpdateText( );
 }
@@ -455,7 +458,9 @@ UpdateText( const double& w, const double& l )
 cpExtensions::Visualization::ImageSliceActors::
 ImageSliceActors( )
   : Superclass( ),
-    Interpolate( false )
+    Interpolate( false ),
+    m_UpdateCommand( NULL ),
+    m_UpdateData( NULL )
 {
   this->Clear( );
 }