]> Creatis software - bbtkGEditor.git/blobdiff - lib/EditorGraphicBBS/bbsKernelEditorGraphic/GObjectModel.h
Implemented deleting of boxes from the scene....
[bbtkGEditor.git] / lib / EditorGraphicBBS / bbsKernelEditorGraphic / GObjectModel.h
index 9f7a265a50629e3a177fc5120b43518b43614d5a..a6300386d4986ac813f46198ed41624775a82abb 100644 (file)
@@ -45,16 +45,20 @@ Version:   $Revision$
 
 //Includes same project
 #include "GlobalConstants.h"
+#include "Observable.h"
 
 //Includes creaMaracasVisu
 
 //Includes std
 #include <iostream>
 
+//Includes bbtk
+#include <bbtkBlackBoxDescriptor.h>
+
 namespace bbtk
 {
 
-       class GObjectModel 
+       class GObjectModel : public Observable
        {
 
        public: 
@@ -67,9 +71,29 @@ namespace bbtk
                
                void getInicPoint(double& x, double& y, double& z);
                void getFinalPoint(double& x, double& y, double& z);
-               void setInicPoint(double& x, double& y, double& z);
-               void setFinalPoint(double& x, double& y, double& z);
+               void getCenter(double& x, double& y, double& z);
+               virtual void setInicPoint(double& x, double& y, double& z);
+               virtual void setFinalPoint(double& x, double& y, double& z);
+               
+               virtual void move(double xx,double yy,double zz);
+
+               virtual bool isPointInside(double x,double y, double z);
+               virtual void updateBlackBox(BlackBoxDescriptor::Pointer descriptor);
+
+               int getGObjectType();
+               void setGObjectType(int obtype);
+
+               std::string getBBTKType();
+               void setBBTKType(std::string obtype);
+               
+               std::string getBBTKName();
+               void setBBTKName(std::string obname);
 
+               int getObjectId();
+               void setObjectId(int id);
+
+               virtual std::string getStatusText();
+               
        private:
 
                //Private Attributes
@@ -87,8 +111,14 @@ namespace bbtk
                double _yFin;
                double _zFin;
 
-               //Protected methods
+               int  _gObjectType;
+               int _objectId;
 
+               std::string _bbtkType;
+               std::string _bbtkName;
+
+               //Protected methods
+               
        };