![]() |
tuchulcha
0.10.1
Graphical Workflow Configuration Editor
|
Line that connects two slots of two different nodes. More...
#include <ConnectionLine.h>

Public Member Functions | |
| ConnectionLine () | |
| Default constructor. | |
| QRectF | boundingRect () const |
| bounding Rect, always 0 to be not selectable | |
| NodeProperty * | getEndProp () const |
| get property at end of line More... | |
| NodeProperty * | getStartProp () const |
| get property at start of line More... | |
| QColor | lineColor () const |
| return line color | |
| void | moveEndPoint (qreal dx, qreal dy) |
| moves end point More... | |
| void | moveStartPoint (qreal dx, qreal dy) |
| moves start point More... | |
| void | paint (QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget=0) |
| paints the line | |
| void | setEndPoint (int x, int y) |
| sets end point (for drawing) More... | |
| void | setEndPoint (QPointF pos) |
| sets end point More... | |
| void | setEndProp (NodeProperty *endProp) |
| sets end property More... | |
| void | setLineColor (const QColor &newColor) |
| set color connected line | |
| void | setStartEndProp (NodeProperty *start, NodeProperty *end) |
| sets start and end property More... | |
| void | setStartPoint (int x, int y) |
| sets start point (for drawing) More... | |
| void | setStartPoint (QPointF pos) |
| sets start point More... | |
| void | setStartProp (NodeProperty *startProp) |
| sets start property More... | |
Properties | |
| QColor | lineColor |
| create color property for read and write color | |
Private Attributes | |
| QPointF | _endPoint |
| point where line ends | |
| NodeProperty * | _endProp |
| property where line ends | |
| QColor | _lColor |
| store color | |
| QPointF | _startPoint |
| point where line starts | |
| NodeProperty * | _startProp |
| property where line starts | |
Definition at line 35 of file ConnectionLine.h.
| NodeProperty * ConnectionLine::getEndProp | ( | ) | const |
Definition at line 95 of file ConnectionLine.cpp.
References _endProp.
| NodeProperty * ConnectionLine::getStartProp | ( | ) | const |
Definition at line 99 of file ConnectionLine.cpp.
References _startProp.
| void ConnectionLine::moveEndPoint | ( | qreal | dx, |
| qreal | dy | ||
| ) |
| dx | x coordinate of movement vector |
| dy | y coordinate of movement vector |
Definition at line 115 of file ConnectionLine.cpp.
References _endPoint.
| void ConnectionLine::moveStartPoint | ( | qreal | dx, |
| qreal | dy | ||
| ) |
| dx | x coordinate of movement vector |
| dy | y coordinate of movement vector |
Definition at line 111 of file ConnectionLine.cpp.
References _startPoint.
| void ConnectionLine::setEndPoint | ( | int | x, |
| int | y | ||
| ) |
| x | x coordinate of end point |
| y | y coordinate of end point |
Definition at line 45 of file ConnectionLine.cpp.
References _endPoint.
| void ConnectionLine::setEndPoint | ( | QPointF | pos | ) |
| void ConnectionLine::setEndProp | ( | NodeProperty * | endProp | ) |
| endProp | property at end of line |
Definition at line 103 of file ConnectionLine.cpp.
References _endProp.
| void ConnectionLine::setStartEndProp | ( | NodeProperty * | start, |
| NodeProperty * | end | ||
| ) |
| start | start property |
| end | end property |
Definition at line 55 of file ConnectionLine.cpp.
References _endProp, and _startProp.
| void ConnectionLine::setStartPoint | ( | int | x, |
| int | y | ||
| ) |
| x | x coordinate of start point |
| y | y coordinate of start point |
Definition at line 50 of file ConnectionLine.cpp.
References _startPoint.
| void ConnectionLine::setStartPoint | ( | QPointF | pos | ) |
| void ConnectionLine::setStartProp | ( | NodeProperty * | startProp | ) |
| startProp | property at start of line |
Definition at line 107 of file ConnectionLine.cpp.
References _startProp.