44 #ifndef VSI_CONNECTION_HH 45 #define VSI_CONNECTION_HH 48 #include <QGraphicsLineItem> 56 class ConnectionPoint;
66 class Connection :
public QObject,
public QGraphicsPathItem
89 const QPolygonF &
way ()
const;
99 void mouseMoveEvent (QGraphicsSceneMouseEvent *_event);
100 void mousePressEvent (QGraphicsSceneMouseEvent *_event);
101 void mouseReleaseEvent (QGraphicsSceneMouseEvent *_event);
113 QGraphicsItem *elementArea_;
ElementOutput * output()
Output of this connection.
void updatePositions()
called to update position on element movement
void invalidate()
invalidate way
ElementInput * input()
Input of this connection.
const QPolygonF & way() const
way of the connection
Connection(ConnectionPoint *_start, QGraphicsScene *_scene)
Constructor.