#include <cpPlugins/Interface/Object.h>
+#include <itkObject.h>
+#include <vtkObject.h>
+
// -------------------------------------------------------------------------
-cpPlugins::Interface::Object::
-Object( )
+void cpPlugins::Interface::Object::
+Modified( ) const
{
+ const itk::Object* i = this->GetITK< itk::Object >( );
+ vtkObject* v = const_cast< vtkObject* >( this->GetVTK< vtkObject >( ) );
+ if( i != NULL ) i->Modified( );
+ if( v != NULL ) v->Modified( );
+ this->Superclass::Modified( );
}
// -------------------------------------------------------------------------
-cpPlugins::Interface::Object::
-~Object( )
+void cpPlugins::Interface::Object::
+SetViewCoords( float x, float y )
{
+ this->SetViewX( x );
+ this->SetViewY( y );
}
// -------------------------------------------------------------------------
-std::string cpPlugins::Interface::Object::
-GetClassName( ) const
+void cpPlugins::Interface::Object::
+SetITK( itk::LightObject* o )
{
- return( "cpPlugins::Interface::Object" );
+ if( this->m_ITKObject.GetPointer( ) != o )
+ {
+ this->m_ITKObject = o;
+ this->Modified( );
+
+ } // fi
+}
+
+// -------------------------------------------------------------------------
+void cpPlugins::Interface::Object::
+SetVTK( vtkObjectBase* o )
+{
+ if( this->m_VTKObject.GetPointer( ) != o )
+ {
+ this->m_VTKObject = o;
+ this->Modified( );
+
+ } // fi
}
// -------------------------------------------------------------------------
-PLUMA_PROVIDER_SOURCE( cpPlugins::Interface::Object, 1, 1 );
+cpPlugins::Interface::Object::
+Object( )
+ : Superclass( ),
+ m_ITKObject( NULL ),
+ m_VTKObject( NULL ),
+ m_Name( "" ),
+ m_ViewX( float( 0 ) ),
+ m_ViewY( float( 0 ) )
+{
+}
+
+// -------------------------------------------------------------------------
+cpPlugins::Interface::Object::
+~Object( )
+{
+}
// eof - $RCSfile$