#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( );
}
// -------------------------------------------------------------------------
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", "" );
}
// -------------------------------------------------------------------------