tuchulcha  0.10.1
Graphical Workflow Configuration Editor
ConnectionLine Class Reference

Line that connects two slots of two different nodes. More...

#include <ConnectionLine.h>

Inheritance diagram for ConnectionLine:

Public Member Functions

 ConnectionLine ()
 Default constructor.
 
QRectF boundingRect () const
 bounding Rect, always 0 to be not selectable
 
NodePropertygetEndProp () const
 get property at end of line More...
 
NodePropertygetStartProp () 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
 

Detailed Description

Definition at line 35 of file ConnectionLine.h.

Member Function Documentation

NodeProperty * ConnectionLine::getEndProp ( ) const
Returns
property at end of line

Definition at line 95 of file ConnectionLine.cpp.

References _endProp.

NodeProperty * ConnectionLine::getStartProp ( ) const
Returns
property at start of line

Definition at line 99 of file ConnectionLine.cpp.

References _startProp.

void ConnectionLine::moveEndPoint ( qreal  dx,
qreal  dy 
)
Parameters
dxx coordinate of movement vector
dyy coordinate of movement vector

Definition at line 115 of file ConnectionLine.cpp.

References _endPoint.

void ConnectionLine::moveStartPoint ( qreal  dx,
qreal  dy 
)
Parameters
dxx coordinate of movement vector
dyy coordinate of movement vector

Definition at line 111 of file ConnectionLine.cpp.

References _startPoint.

void ConnectionLine::setEndPoint ( int  x,
int  y 
)
Parameters
xx coordinate of end point
yy coordinate of end point

Definition at line 45 of file ConnectionLine.cpp.

References _endPoint.

void ConnectionLine::setEndPoint ( QPointF  pos)
Parameters
posend point

Definition at line 64 of file ConnectionLine.cpp.

References _endPoint.

void ConnectionLine::setEndProp ( NodeProperty endProp)
Parameters
endPropproperty at end of line

Definition at line 103 of file ConnectionLine.cpp.

References _endProp.

void ConnectionLine::setStartEndProp ( NodeProperty start,
NodeProperty end 
)
Parameters
startstart property
endend property

Definition at line 55 of file ConnectionLine.cpp.

References _endProp, and _startProp.

void ConnectionLine::setStartPoint ( int  x,
int  y 
)
Parameters
xx coordinate of start point
yy coordinate of start point

Definition at line 50 of file ConnectionLine.cpp.

References _startPoint.

void ConnectionLine::setStartPoint ( QPointF  pos)
Parameters
posstart point

Definition at line 60 of file ConnectionLine.cpp.

References _startPoint.

void ConnectionLine::setStartProp ( NodeProperty startProp)
Parameters
startPropproperty at start of line

Definition at line 107 of file ConnectionLine.cpp.

References _startProp.


The documentation for this class was generated from the following files: