Trivial algorithm only for put automaton on scene. More...
#include <drawAlgorithm.h>
Public Member Functions | |
QList< State * > | drawAutomaton (Editor *editor, const QSharedPointer< IAutomaton > &automaton) |
QString | getName () const |
Trivial algorithm only for put automaton on scene.
Used mainly for testing automaton algorithms correctness.
Definition at line 59 of file drawAlgorithm.h.
QList< State * > NaiveDrawAlgorithm::drawAutomaton | ( | Editor * | editor, | |
const QSharedPointer< IAutomaton > & | automaton | |||
) | [virtual] |
Returns list of currently created states with transitions assigned, just use ItemsAddCommand on it
startPos | is left-top corner of result automaton |
Implements IDrawAlgorithm.
Definition at line 411 of file drawAlgorithm.cpp.
References Transition::adjust(), Transition::assign(), TransitionManager::createOneStateTransition(), StateManager::createState(), TransitionManager::createTwoStatesTransition(), BaseDrawAlgorithm::getBFSSortedStates(), TransitionManager::getInstance(), StateManager::getInstance(), State::getName(), Editor::getStateByName(), GRID_STEP, NORTH, State::setDoubleBorder(), and WEST.
QString NaiveDrawAlgorithm::getName | ( | ) | const [inline, virtual] |
Implements IDrawAlgorithm.
Definition at line 64 of file drawAlgorithm.h.