Marks active states during simulation process. More...
Public Member Functions | |
SimulationMarker (const QPainterPath &path, Shape s, QWidget *p=0) | |
bool | moveByStep () |
float | pos () |
void | setMoveStep (float step) |
void | setPath (const QPainterPath &path) |
void | setPos (float pos) |
Static Public Attributes | |
static const float | height = 10.0f |
static const float | width = 10.0f |
Protected Member Functions | |
void | paintEvent (QPaintEvent *) |
void | updatePosition () |
Protected Attributes | |
QPointF | m_center |
float | m_moveStep |
QPainterPath | m_path |
float | m_pos |
Marks active states during simulation process.
One marker for each active state.
Definition at line 39 of file automataWorkSimulator.cpp.
SimulationMarker::SimulationMarker | ( | const QPainterPath & | path, | |
Shape | s, | |||
QWidget * | p = 0 | |||
) | [inline] |
Definition at line 42 of file automataWorkSimulator.cpp.
References updatePosition().
bool SimulationMarker::moveByStep | ( | ) | [inline] |
Definition at line 64 of file automataWorkSimulator.cpp.
References m_moveStep, m_pos, and updatePosition().
void SimulationMarker::paintEvent | ( | QPaintEvent * | ) | [inline, protected] |
Definition at line 91 of file automataWorkSimulator.cpp.
float SimulationMarker::pos | ( | ) | [inline] |
Definition at line 54 of file automataWorkSimulator.cpp.
References m_pos.
void SimulationMarker::setMoveStep | ( | float | step | ) | [inline] |
Definition at line 59 of file automataWorkSimulator.cpp.
References m_moveStep.
void SimulationMarker::setPath | ( | const QPainterPath & | path | ) | [inline] |
Definition at line 74 of file automataWorkSimulator.cpp.
References m_path.
void SimulationMarker::setPos | ( | float | pos | ) | [inline] |
Definition at line 48 of file automataWorkSimulator.cpp.
References m_pos, and updatePosition().
void SimulationMarker::updatePosition | ( | ) | [inline, protected] |
Definition at line 85 of file automataWorkSimulator.cpp.
References height, m_path, m_pos, and width.
Referenced by moveByStep(), setPos(), and SimulationMarker().
const float SimulationMarker::height = 10.0f [static] |
Definition at line 82 of file automataWorkSimulator.cpp.
Referenced by paintEvent(), and updatePosition().
QPointF SimulationMarker::m_center [protected] |
Definition at line 105 of file automataWorkSimulator.cpp.
float SimulationMarker::m_moveStep [protected] |
Definition at line 108 of file automataWorkSimulator.cpp.
Referenced by moveByStep(), and setMoveStep().
QPainterPath SimulationMarker::m_path [protected] |
Definition at line 107 of file automataWorkSimulator.cpp.
Referenced by setPath(), and updatePosition().
float SimulationMarker::m_pos [protected] |
Definition at line 106 of file automataWorkSimulator.cpp.
Referenced by moveByStep(), pos(), setPos(), and updatePosition().
const float SimulationMarker::width = 10.0f [static] |
Definition at line 81 of file automataWorkSimulator.cpp.
Referenced by paintEvent(), and updatePosition().