X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=lib%2FEditorGraphicBBS%2FbbsKernelEditorGraphic%2FGConnectorModel.h;h=9a79ad4fcc39e3d3710b81876e612ea66fa03b33;hb=108bfeda96a8850e469fa80add666a5c1dbf1c1f;hp=b6495c3270eb8acb3b296346581f323bee556f7d;hpb=4339183c287d12a0b68265ec017cb51e6b24e89a;p=bbtkGEditor.git diff --git a/lib/EditorGraphicBBS/bbsKernelEditorGraphic/GConnectorModel.h b/lib/EditorGraphicBBS/bbsKernelEditorGraphic/GConnectorModel.h index b6495c3..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,25 +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 void save(std::string &content); private: - //Attributes + //Private Attributes + GPortModel* _startPort; GPortModel* _endPort; + manualContourModel* _model; //Private Methods protected: + + //Protected Attributes + //Protected methods };