X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=lib%2FcpPlugins%2FInterface%2FObject.cxx;h=583f59adba97c10cbbca3dc51c43c02561daebfa;hb=273699a71c538630c162de031f0c95014319311d;hp=4ca6286c25c8b1049d8f01922e296fe906b76026;hpb=52c253c75593e9df913be4b216916396b11dfaaa;p=cpPlugins.git diff --git a/lib/cpPlugins/Interface/Object.cxx b/lib/cpPlugins/Interface/Object.cxx index 4ca6286..583f59a 100644 --- a/lib/cpPlugins/Interface/Object.cxx +++ b/lib/cpPlugins/Interface/Object.cxx @@ -1,9 +1,36 @@ #include +#include +#include + +// ------------------------------------------------------------------------- +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( ); +} + +// ------------------------------------------------------------------------- +float cpPlugins::Interface::Object:: +SetViewCoords( float x, float y ) +{ + this->SetViewX( x ); + this->SetViewY( y ); +} + // ------------------------------------------------------------------------- cpPlugins::Interface::Object:: Object( ) - : Superclass( ) + : Superclass( ), + m_ITKObject( NULL ), + m_VTKObject( NULL ), + m_Name( "" ), + m_ViewX( float( 0 ) ), + m_ViewY( float( 0 ) ) { } @@ -13,7 +40,4 @@ cpPlugins::Interface::Object:: { } -// ------------------------------------------------------------------------- -CPPLUGINS_PROVIDER_SOURCE( cpPlugins::Interface::Object, 1, 1 ); - // eof - $RCSfile$