#include <GTransition.h>
Inheritance diagram for GTransition::
Public Methods | |
GTransition () | |
Standard constructor. | |
GTransition (State *, State *, TransitionInfo *, double, double, double, double, QString, bool str=TRUE) | |
Constructor. More... | |
GTransition (State *, State *, TransitionInfo *, double, double, double, double, double, double, double, double, QString, bool str=TRUE) | |
Contructor. More... | |
void | setStartPos (double, double) |
Sets the start position of the transition. More... | |
void | setEndPos (double x, double y) |
Sets the end point of the transition. More... | |
void | setEndPosX (double x) |
Sets the x coordinate of the position of the end point. | |
void | setEndPosY (double y) |
Sets the y coordinate of the position of the end point. | |
void | getEndPos (double &x, double &y) |
Returns the end position (arrowhead) of the transition. | |
void | setCPoint1 (double x, double y) |
Sets the position of the first control point. | |
void | setCPoint1X (double x) |
Sets the x coordinate of the position of the first control point. | |
void | setCPoint1Y (double y) |
Sets the y coordinate of the position of the first control point. | |
void | getCPoint1 (double &x, double &y) |
Returns the position of the first control point. | |
void | setCPoint2 (double x, double y) |
Sets the position of the second control point. | |
void | setCPoint2X (double x) |
Sets the x coordinate of the position of the second control point. | |
void | setCPoint2Y (double y) |
Sets the y coordinate of the position of the second control point. | |
void | getCPoint2 (double &x, double &y) |
Returns the position of the first control point. | |
bool | isStraight () |
Returns TRUE if the transition is straight otherwise FALSE. | |
void | setStraight (bool s=TRUE) |
If s is TRUE declares the transition as straight otherwise declare it as not straight. | |
void | move (double, double) |
Moves the transition with all its points by x rightwards and y downwards. | |
void | moveStart (double, double, bool move_cont_rel=TRUE, bool move_cont=FALSE, bool move_cont_both=TRUE) |
Moves the start point of the transition. More... | |
void | moveEnd (double, double, bool move_cont_rel=TRUE, bool move_cont=FALSE, bool move_cont_both=TRUE) |
Moves the end point of the transition. More... | |
void | moveCPoint1 (double, double) |
Moves the first control point. | |
void | moveCPoint2 (double, double) |
Moves the second control point. | |
bool | contains (double, double) |
Returns TRUE if the point with the coordinates x and y lies on the transition. | |
void | bezierCurve (double, double &, double &) |
Bezier curve function. More... | |
int | onControlPoint (double, double, double) |
Returns the number of the control point which lies on x, y at the specified scale scale. More... | |
void | straighten () |
Straightens the transition. More... | |
QString | getToolTipInfo () |
Returns the tooltip string for this object. | |
QRect | getToolTipRect (const QPoint &) |
Returns the tooltip rectangle (if the mouse leaves this rectangle the TT is closed). | |
QString | getDescription () |
Returns the description of the transition. | |
void | setDescription (QString d) |
Sets the descriptionn of the transition. | |
Private Attributes | |
double | control1x |
X coordinate of the first control point. | |
double | control1y |
Y coordinate of the first control point. | |
double | control2x |
X coordinate of the second control point. | |
double | control2y |
Y coordinate of the second control point. | |
double | endx |
X coordinate of the end point. | |
double | endy |
Y coordinate of the end point. | |
bool | straight |
If TRUE the transition will be drawn as straight line (not as bezier curve). | |
QString | description |
Description. |
|
Constructor. Initialises a new transition object setting the control points between start and end point.
|
|
Contructor. Initialises a new transition object.
|
|
Bezier curve function.
|
|
Moves the end point of the transition.
|
|
Moves the start point of the transition.
|
|
Returns the number of the control point which lies on x, y at the specified scale scale. 1: start point 2: first control point 3: second control point 4: end point |
|
Sets the end point of the transition. If the transition is straight the control points are set accordingly. |
|
Sets the start position of the transition. If the transition is straight the control points are set accordingly. |
|
Straightens the transition. If start and end state are the same a loop is generated. |