]> Creatis software - cpPlugins.git/blob - lib/cpPlugins/Interface/Object.cxx
...
[cpPlugins.git] / lib / cpPlugins / Interface / Object.cxx
1 #include <cpPlugins/Interface/Object.h>
2
3 #include <itkObject.h>
4 #include <vtkObject.h>
5
6 // -------------------------------------------------------------------------
7 void cpPlugins::Interface::Object::
8 Modified( ) const
9 {
10   const itk::Object* i = this->GetITK< itk::Object >( );
11   vtkObject* v = const_cast< vtkObject* >( this->GetVTK< vtkObject >( ) );
12   if( i != NULL ) i->Modified( );
13   if( v != NULL ) v->Modified( );
14   this->Superclass::Modified( );
15 }
16
17 // -------------------------------------------------------------------------
18 void cpPlugins::Interface::Object::
19 SetViewCoords( float x, float y )
20 {
21   this->SetViewX( x );
22   this->SetViewY( y );
23 }
24
25 // -------------------------------------------------------------------------
26 cpPlugins::Interface::Object::
27 Object( )
28   : Superclass( ),
29     m_ITKObject( NULL ),
30     m_VTKObject( NULL ),
31     m_Name( "" ),
32     m_ViewX( float( 0 ) ),
33     m_ViewY( float( 0 ) )
34 {
35 }
36
37 // -------------------------------------------------------------------------
38 cpPlugins::Interface::Object::
39 ~Object( )
40 {
41 }
42
43 // eof - $RCSfile$