#include <Draw.h>
Inheritance diagram for Draw::
Public Methods | |
Draw (QObject *, Options *) | |
Constructor. More... | |
void | drawStates (Machine *, QPainter *, int, int, double) |
Draws all states. More... | |
void | drawState (Machine *m, GState *, QPainter *, int, int, double, bool drawxor=TRUE) |
Draws a single state. More... | |
void | drawTransitions (Machine *, QPainter *, int, int, double) |
Draws all transitions in machine. More... | |
void | drawTransition (Machine *, GTransition *, QPainter *, int, int, double, bool drawxor=TRUE, bool dotted=TRUE, bool control_lines=FALSE, bool first=FALSE) |
Draws a single transition. More... | |
void | drawArrow (GTransition *, QPainter *, QPen, int) |
Draws the arrowhead for a transition. More... | |
void | drawArrow (GITransition *, QPainter *, QPen, int) |
Draws the arrowhead for the initial transition. More... | |
void | drawCondition (Machine *m, GTransition *, QPainter *, int, int, double) |
Draws a condition for a given transition. More... | |
void | drawInitialTransition (Machine *m, GITransition *, QPainter *, int, int, double, bool drawxor=FALSE, bool first=FALSE, bool transptext=FALSE) |
Draws the initial transition with the text 'start'. More... | |
void | drawGrid (Grid *, QPainter *, int, int, double) |
Draws the grid. More... | |
void | calcArrow (GTransition *, double &, double &, double &, double &) |
Calculates the 2 coordinates for the arrow of a transition. More... | |
void | calcArrow (GITransition *, double &, double &, double &, double &) |
Calculates the 2 coordinates for the arrow of the initial transition. More... | |
void | calcArrow (double, double, double, double, double &, double &, double &, double &) |
Calculates arrowhead coordinates. More... | |
void | drawHeadline (Machine *, QPainter *, double) |
Draws the Headline for a Machine. More... | |
Private Attributes | |
Options * | options |
Pointer to the application options. |
|
Constructor. Initialises the Draw object.
|
|
Calculates arrowhead coordinates. Calculates from 2 coordinates of the end of the transition the 2 coordinates to draw an arrow.
|
|
Calculates the 2 coordinates for the arrow of the initial transition.
|
|
Calculates the 2 coordinates for the arrow of a transition.
|
|
Draws the arrowhead for the initial transition.
|
|
Draws the arrowhead for a transition.
|
|
Draws a condition for a given transition.
|
|
Draws the grid.
|
|
Draws the Headline for a Machine.
|
|
Draws the initial transition with the text 'start'.
|
|
Draws a single state.
|
|
Draws all states.
|
|
Draws a single transition.
|
|
Draws all transitions in machine.
|