]> Creatis software - cpPlugins.git/blobdiff - lib/cpPlugins/BaseObjects/Widget.cxx
Cast image filter added. ROI filter modified.
[cpPlugins.git] / lib / cpPlugins / BaseObjects / Widget.cxx
index 93bf1b93b9757957d35aacf41ddcb6638d24141d..1bc3639ca7e0f98636819c5cc6317a62fb2f4e37 100644 (file)
@@ -1,12 +1,11 @@
 #include <cpPlugins/BaseObjects/Widget.h>
 
 // -------------------------------------------------------------------------
-itk::ModifiedTimeType cpPlugins::BaseObjects::Widget::
-GetMTime( ) const
+void cpPlugins::BaseObjects::Widget::
+AddInteractor( vtkRenderWindowInteractor* i )
 {
-  // Let time only be managed by itk -> synch issues when data is
-  // represented by vtk
-  return( this->itk::Object::GetMTime( ) );
+  if( this->m_Interactors.insert( i ).second )
+    this->Modified( );
 }
 
 // -------------------------------------------------------------------------
@@ -35,8 +34,7 @@ cpPlugins::BaseObjects::Widget::
 Widget( )
   : Superclass( )
 {
-  this->m_Parameters.ConfigureAsString( "Text" );
-  this->m_Parameters.SetString( "Text", "" );
+  this->m_Parameters.ConfigureAsString( "Text", "" );
 }
 
 // -------------------------------------------------------------------------