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_;
Connection(ConnectionPoint *_start, QGraphicsScene *_scene)
Constructor.
ElementInput * input()
Input of this connection.
const QPolygonF & way() const
way of the connection
ElementOutput * output()
Output of this connection.
void updatePositions()
called to update position on element movement
void invalidate()
invalidate way