Developer Documentation
|
#include <Plugin-VSI/scene/connection.hh>
Public Member Functions | |
Connection (ConnectionPoint *_start, QGraphicsScene *_scene) | |
Constructor. | |
Connection (ConnectionPoint *_start, ConnectionPoint *_end, QGraphicsScene *_scene) | |
Constructor. | |
~Connection () | |
Destructor. | |
void | updatePositions () |
called to update position on element movement | |
ElementInput * | input () |
Input of this connection. | |
ElementOutput * | output () |
Output of this connection. | |
const QPolygonF & | way () const |
way of the connection | |
void | invalidate () |
invalidate way | |
Protected Member Functions | |
void | mouseMoveEvent (QGraphicsSceneMouseEvent *_event) |
void | mousePressEvent (QGraphicsSceneMouseEvent *_event) |
void | mouseReleaseEvent (QGraphicsSceneMouseEvent *_event) |
Private Member Functions | |
ConnectionPoint * | cPointAt (QPointF _pnt) |
void | updateLine () |
Private Attributes | |
QGraphicsItem * | elementArea_ |
GraphicsScene * | scene_ |
ConnectionPoint * | p1_ |
ConnectionPoint * | p2_ |
ConnectionPoint * | old_ |
QPolygonF | way_ |
Friends | |
class | GraphicsScene |
Represents a connection between input and output
Definition at line 72 of file connection.hh.