X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=lib%2FcpPlugins%2FPipeline%2FObject.cxx;fp=lib%2FcpPlugins%2FPipeline%2FObject.cxx;h=0000000000000000000000000000000000000000;hb=2e142df11d6f312a2a2b5097b8da73571ed523e8;hp=abcac9c57ad32b2950d71323e461acca4bc02247;hpb=61b3659afe961ed248f30e26f9ca8f28fcfafddc;p=cpPlugins.git diff --git a/lib/cpPlugins/Pipeline/Object.cxx b/lib/cpPlugins/Pipeline/Object.cxx deleted file mode 100644 index abcac9c..0000000 --- a/lib/cpPlugins/Pipeline/Object.cxx +++ /dev/null @@ -1,98 +0,0 @@ -#include - -#include -#include - -// ------------------------------------------------------------------------- -const float& cpPlugins::Pipeline::Object:: -GetViewX( ) const -{ - return( this->m_ViewX ); -} - -// ------------------------------------------------------------------------- -const float& cpPlugins::Pipeline::Object:: -GetViewY( ) const -{ - return( this->m_ViewY ); -} - -// ------------------------------------------------------------------------- -void cpPlugins::Pipeline::Object:: -SetViewCoords( float x, float y ) -{ - this->m_ViewX = x; - this->m_ViewY = y; - // WARNING: do not call "this->Modified( )" -> It could lead to - // re-execution of all pipeline -} - -// ------------------------------------------------------------------------- -void cpPlugins::Pipeline::Object:: -Modified( ) const -{ - const itk::Object* i = - dynamic_cast< const itk::Object* >( this->m_ITK.GetPointer( ) ); - vtkObject* v = dynamic_cast< vtkObject* >( this->m_VTK.GetPointer( ) ); - if( i != NULL ) i->Modified( ); - if( v != NULL ) v->Modified( ); - this->Superclass::Modified( ); -} - -// ------------------------------------------------------------------------- -void cpPlugins::Pipeline::Object:: -SetITK( itk::LightObject* o ) -{ - if( this->m_ITK.GetPointer( ) != o ) - { - this->m_ITK = o; - this->Modified( ); - - } // fi -} - -// ------------------------------------------------------------------------- -void cpPlugins::Pipeline::Object:: -SetVTK( vtkObjectBase* o ) -{ - if( this->m_VTK.GetPointer( ) != o ) - { - this->m_VTK = o; - this->Modified( ); - - } // fi -} - -// ------------------------------------------------------------------------- -cpPlugins::Pipeline::Object:: -Object( ) - : m_ITK( NULL ), - m_VTK( NULL ), - m_ViewX( float( 0 ) ), - m_ViewY( float( 0 ) ) -{ -} - -// ------------------------------------------------------------------------- -cpPlugins::Pipeline::Object:: -~Object( ) -{ -} - -// ------------------------------------------------------------------------- -void cpPlugins::Pipeline::Object:: -_UpdateITK( ) const -{ - // WARNING: do nothing since this is supposed to be defined by DataObjects - // with ITK-VTK conversion strategies. -} - -// ------------------------------------------------------------------------- -void cpPlugins::Pipeline::Object:: -_UpdateVTK( ) const -{ - // WARNING: do nothing since this is supposed to be defined by DataObjects - // with ITK-VTK conversion strategies. -} - -// eof - $RCSfile$