X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=lib%2FEditorGraphicBBS%2FbbsKernelEditorGraphic%2FGObjectModel.h;h=a6300386d4986ac813f46198ed41624775a82abb;hb=a6d479881eeb637cd06afa3b2177e430fa05571e;hp=9f7a265a50629e3a177fc5120b43518b43614d5a;hpb=64fc9f949ff91d6e9d448ca0567e6205ee4d5be4;p=bbtkGEditor.git diff --git a/lib/EditorGraphicBBS/bbsKernelEditorGraphic/GObjectModel.h b/lib/EditorGraphicBBS/bbsKernelEditorGraphic/GObjectModel.h index 9f7a265..a630038 100644 --- a/lib/EditorGraphicBBS/bbsKernelEditorGraphic/GObjectModel.h +++ b/lib/EditorGraphicBBS/bbsKernelEditorGraphic/GObjectModel.h @@ -45,16 +45,20 @@ Version: $Revision$ //Includes same project #include "GlobalConstants.h" +#include "Observable.h" //Includes creaMaracasVisu //Includes std #include +//Includes bbtk +#include + 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 + };