X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;ds=sidebyside;f=lib%2FEditorGraphicBBS%2FbbsKernelEditorGraphic%2FGConnectorModel.h;h=9a79ad4fcc39e3d3710b81876e612ea66fa03b33;hb=de7c0454ab8fc1b0b97dcd7112dfdb4a55ac0215;hp=9e7d7f71d878200a96068083b0b67778d95296fe;hpb=cdf8d2065f4edd9b9d3deff19ffdb9ee79ded63a;p=bbtkGEditor.git diff --git a/lib/EditorGraphicBBS/bbsKernelEditorGraphic/GConnectorModel.h b/lib/EditorGraphicBBS/bbsKernelEditorGraphic/GConnectorModel.h index 9e7d7f7..9a79ad4 100644 --- a/lib/EditorGraphicBBS/bbsKernelEditorGraphic/GConnectorModel.h +++ b/lib/EditorGraphicBBS/bbsKernelEditorGraphic/GConnectorModel.h @@ -29,16 +29,11 @@ Version: $Revision$ * ------------------------------------------------------------------------ */ - -/** -* \file -* \brief Class bbtk::GConnectorModel : abstract black-box interface. -*/ - -/** -* \class bbtk::GConnectorModel -* \brief -*/ +/**** +* Design and Developpement of BBTK GEditor +* Ricardo A Corredor J +* RaC - 2010 +****/ #ifndef __GConnectorModel_h__ #define __GConnectorModel_h__ @@ -67,28 +62,44 @@ namespace bbtk GConnectorModel(); ~GConnectorModel(); - //Public methods + //Public methods + + // Sets the start port of the connection that will be used in the manualContourModel void setStartPort(GPortModel* startPort); + + // Sets the end port in the BBTKGEditor connector model and also in the contour model void setEndPort(GPortModel* endPort); + + // Assigns the creaMaracasVisu model void setManualContourModel(manualContourModel* model); + manualContourModel* getManualContourModel(); GPortModel* getStartPort(); GPortModel* getEndPort(); - manualContourModel* getManualContourModel(); + + // Refresh the position of the contourModel first and last points with the data of the connector model void updateStartEndPoints(); + + // Set the ports as NO connected void disconnectConnection(); - virtual bool isPointInside(double x,double y, double z); + + virtual void save(std::string &content); private: - //Attributes + //Private Attributes + GPortModel* _startPort; GPortModel* _endPort; + manualContourModel* _model; //Private Methods protected: + + //Protected Attributes + //Protected methods };