]> Creatis software - cpPlugins.git/blobdiff - lib/cpPlugins/Interface/Object.h
More on graph editor
[cpPlugins.git] / lib / cpPlugins / Interface / Object.h
index 03eb2ae1f912047a88153ad96031f91a7bb4e480..345be7f9cb8a9733bb2eb40636e9643e16c1b99c 100644 (file)
@@ -25,10 +25,22 @@ namespace cpPlugins
     public:
       itkNewMacro( Self );
       itkTypeMacro( Object, itkObject );
-      cpPlugins_Id_Macro( Object, "BaseObject" );
+      cpPlugins_Id_Macro( Object, BaseObject );
 
       itkGetStringMacro( Name );
+      itkGetConstMacro( ViewX, float );
+      itkGetConstMacro( ViewY, float );
+
       itkSetStringMacro( Name );
+      itkSetMacro( ViewX, float );
+      itkSetMacro( ViewY, float );
+
+    public:
+      inline float SetViewCoords( float x, float y )
+        {
+          this->SetViewX( x );
+          this->SetViewY( y );
+        }
 
     protected:
       Object( );
@@ -41,6 +53,7 @@ namespace cpPlugins
 
     protected:
       std::string m_Name;
+      float m_ViewX, m_ViewY;
     };
 
   } // ecapseman