using namespace std;
using namespace Qt;
-/* NOTES :
+/*! \brief ConnectionItem class
- A connection item represent a graphical link between two interface items.
+ A ConnectionItem represents a graphical link between two interface items.
Even if it links two in/out interfaces, it is always oriented.
The orientation depends on the type and direction of linked interfaces :
void setSelected(bool selected);
void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget = 0);
- void setPathes();
+
+ /*!
+ * \brief setPath
+ * setPath() allows to compute the graphical shape of the ConnectionItem
+ * taking into account the position/direction of from and to interface items.
+ * Depending on their vlaue, it calls on of the dedicated methods.
+ *
+ * CAUTION: this method calls prepareGeometryChange() so that the scene
+ * can automatically updates and redraw the ConnectionItem. Thus, there is
+ * no need to call update() after the termination of this method.
+ *
+ */
+ void setPath();
void addInterPoint(QPointF point);
static int counter;