* ------------------------------------------------------------------------ */
-
-/**
-* \file
-* \brief Class bbtk::GConnectorModel : abstract black-box interface.
-*/
-
-/**
-* \class bbtk::GConnectorModel
-* \brief
-*/
+/****
+* Design and Developpement of BBTK GEditor
+* Ricardo A Corredor J <ra.corredor67@uniandes.edu.co>
+* RaC - 2010
+****/
#ifndef __GConnectorModel_h__
#define __GConnectorModel_h__
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
};