Developer Documentation
|
#include <Plugin-VSI/scene/connection.hh>
Public Member Functions | |
Connection (ConnectionPoint *_start, QGraphicsScene *_scene) | |
Constructor. More... | |
Connection (ConnectionPoint *_start, ConnectionPoint *_end, QGraphicsScene *_scene) | |
Constructor. More... | |
~Connection () | |
Destructor. More... | |
void | updatePositions () |
called to update position on element movement More... | |
ElementInput * | input () |
Input of this connection. More... | |
ElementOutput * | output () |
Output of this connection. More... | |
const QPolygonF & | way () const |
way of the connection More... | |
void | invalidate () |
invalidate way More... | |
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 66 of file connection.hh.
VSI::Connection::Connection | ( | ConnectionPoint * | _start, |
QGraphicsScene * | _scene | ||
) |
Constructor.
Definition at line 67 of file connection.cc.
VSI::Connection::Connection | ( | ConnectionPoint * | _start, |
ConnectionPoint * | _end, | ||
QGraphicsScene * | _scene | ||
) |
Constructor.
Definition at line 90 of file connection.cc.
VSI::Connection::~Connection | ( | ) |
Destructor.
Definition at line 125 of file connection.cc.
|
private |
Definition at line 213 of file connection.cc.
ElementInput * VSI::Connection::input | ( | ) |
Input of this connection.
Definition at line 239 of file connection.cc.
void VSI::Connection::invalidate | ( | ) |
invalidate way
Definition at line 263 of file connection.cc.
|
protected |
Definition at line 134 of file connection.cc.
|
protected |
Definition at line 155 of file connection.cc.
|
protected |
Definition at line 178 of file connection.cc.
ElementOutput * VSI::Connection::output | ( | ) |
Output of this connection.
Definition at line 248 of file connection.cc.
|
private |
Definition at line 270 of file connection.cc.
void VSI::Connection::updatePositions | ( | ) |
called to update position on element movement
Definition at line 232 of file connection.cc.
const QPolygonF & VSI::Connection::way | ( | ) | const |
way of the connection
Definition at line 257 of file connection.cc.
|
friend |
Definition at line 96 of file connection.hh.
|
private |
Definition at line 113 of file connection.hh.
|
private |
Definition at line 119 of file connection.hh.
|
private |
Definition at line 116 of file connection.hh.
|
private |
Definition at line 117 of file connection.hh.
|
private |
Definition at line 114 of file connection.hh.
|
private |
Definition at line 121 of file connection.hh.