50 #ifndef VSI_CONNECTION_HH 51 #define VSI_CONNECTION_HH 54 #include <QGraphicsLineItem> 62 class ConnectionPoint;
72 class Connection :
public QObject,
public QGraphicsPathItem
95 const QPolygonF &
way ()
const;
105 void mouseMoveEvent (QGraphicsSceneMouseEvent *_event);
106 void mousePressEvent (QGraphicsSceneMouseEvent *_event);
107 void mouseReleaseEvent (QGraphicsSceneMouseEvent *_event);
119 QGraphicsItem *elementArea_;
const QPolygonF & way() const
way of the connection
void invalidate()
invalidate way
Connection(ConnectionPoint *_start, QGraphicsScene *_scene)
Constructor.
void updatePositions()
called to update position on element movement
ElementInput * input()
Input of this connection.
ElementOutput * output()
Output of this connection.