]> 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 35bf57aaaab421b76b89f6a7619408f844abe812..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( );
 }
 
 // -------------------------------------------------------------------------
@@ -16,13 +15,26 @@ IsInteractive( )
   return( true );
 }
 
+// -------------------------------------------------------------------------
+void cpPlugins::BaseObjects::Widget::
+EnabledOn( )
+{
+  this->SetEnabled( true );
+}
+
+// -------------------------------------------------------------------------
+void cpPlugins::BaseObjects::Widget::
+EnabledOff( )
+{
+  this->SetEnabled( false );
+}
+
 // -------------------------------------------------------------------------
 cpPlugins::BaseObjects::Widget::
 Widget( )
   : Superclass( )
 {
-  this->m_Parameters.ConfigureAsString( "Text" );
-  this->m_Parameters.SetString( "Text", "" );
+  this->m_Parameters.ConfigureAsString( "Text", "" );
 }
 
 // -------------------------------------------------------------------------