]> Creatis software - cpPlugins.git/blobdiff - lib/cpPlugins/Interface/Object.cxx
...
[cpPlugins.git] / lib / cpPlugins / Interface / Object.cxx
index 474e031f04565b552b84f2c86d1d32312d4d88e8..583f59adba97c10cbbca3dc51c43c02561daebfa 100644 (file)
@@ -1,9 +1,36 @@
 #include <cpPlugins/Interface/Object.h>
 
+#include <itkObject.h>
+#include <vtkObject.h>
+
+// -------------------------------------------------------------------------
+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 ) )
 {
 }