#include <GState.h>
Inheritance diagram for GState::

Public Methods | |
| GState (Machine *m, const QString, QString, int, double, double, int, QPen, bool end) | |
| Constructor. More... | |
| GState (Machine *m) | |
| Constructor. More... | |
| GState () | |
| Constructor. | |
| QPen & | getPen () |
| Returns pen to draw the state. | |
| void | setPen (const QPen &p) |
| Sets the pen to draw the state. | |
| QBrush & | getBrush () |
| Returns the brush to draw the state. | |
| void | setBrush (const QBrush &b) |
| Sets the brush to draw the state. | |
| int | getRadius () |
| Returns the radius. | |
| void | setRadius (const int r) |
| Sets the radius. | |
| int | getLineWidth () |
| Returns the linewidth. | |
| void | setLineWidth (const int l) |
| Sets the line width. | |
| QColor | getColor () |
| Returns the color of the state. | |
| void | setColor (QColor c) |
| Sets the color of the state. | |
| void | copyTransitions (GState *, bool=FALSE) |
| Makes a deep copy of the transitions of a state. More... | |
| void | copyTransitionAttributes (GState *, QList< GTransition > *) |
| Copys the attributes of transitions. More... | |
| void | copyAttributes (GState *) |
| Copys attributes of the state s. | |
| void | debugTransitions () |
| Used for debugging. | |
| void | addTransition (Project *, GState *, TransitionInfo *, double, double, double, double, double, double, double, double, QString, bool straight=TRUE, bool withundo=TRUE) |
| Adds a new transition in this state. More... | |
| void | addTransition (Project *, GTransition *t, bool withundo=TRUE) |
| Adds a transition to the state. More... | |
| void | move (double, double, ScrollView *, Machine *m, bool redraw=TRUE, bool firstRedraw=FALSE) |
| Moves the state. More... | |
| void | removeTransition (GTransition *) |
| Removes the transition trem from the list of this state. | |
| void | removeTransitionEnd (GTransition *) |
| Removes the transition trem which ends at this state from the list. | |
| DRect | getMaxRect () |
| Returns the bounding rectangle of this state. | |
| int | countTransitions () |
| Returns the number of all (non-deleted) transitions which start at this state. | |
| int | countRefTransitions () |
| Returns the number of all (non-deleted) transitions which end at this state. | |
| void | setTransitionsToRadius (Machine *, int) |
| Sets transitions to the boundary of this state. 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). | |
| GState * | next (IOInfo *in) |
| Returns the following state assuming inputs in are input to the machine. | |
Static Public Methods | |
| void | circleEdge (double, double, int, double, double, double &, double &, double addphi=0) |
| Calculates a point at the edge of the state relative to the position (mousex, mousey). More... | |
| void | calcLoop (double, double, int, double, double, double &, double &, double &, double &) |
| Calculates a loop. More... | |
Public Attributes | |
| QList< GTransition > | tlist |
| List of transitions starting from that state (this state is responsible for deleting these). | |
| QList< GTransition > | reflist |
| List of transitions ending in this state (this state must not delete these). | |
Private Attributes | |
| QPen | pen |
| Pen used to draw the circle and the line in the middle. | |
| QBrush | brush |
| Brush used for the background color. | |
| int | radius |
| Radius of the circle. | |
A state is drawn as a circle with its name and its code in it.
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Constructor.
|
|
|
Constructor. Initialises a standard GState |
|
||||||||||||||||||||||
|
Adds a transition to the state.
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Adds a new transition in this state.
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Calculates a loop. Calculates the position of the control points in order to get a loop.
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Calculates a point at the edge of the state relative to the position (mousex, mousey).
|
|
|||||||||||||||
|
Copys the attributes of transitions. The attributes of the transitions in the list @clist are copied into the transitions in of the state s.
|
|
|||||||||||||||
|
Makes a deep copy of the transitions of a state. A deep copy is also made of the transitions ending at this state.
|
|
|||||||||||||||||||||||||||||||||||||||||||
|
Moves the state.
|
|
|||||||||||||||
|
Sets transitions to the boundary of this state. Sets all transitions which start and end at this state to the boundary of the circle of this state.
|
1.2.9.1 written by Dimitri van Heesch,
© 1997-2001