Public Member Functions

NaiveDrawAlgorithm Class Reference

Trivial algorithm only for put automaton on scene. More...

#include <drawAlgorithm.h>

Inheritance diagram for NaiveDrawAlgorithm:
Collaboration diagram for NaiveDrawAlgorithm:

List of all members.

Public Member Functions

QList< State * > drawAutomaton (Editor *editor, const QSharedPointer< IAutomaton > &automaton)
QString getName () const

Detailed Description

Trivial algorithm only for put automaton on scene.

Used mainly for testing automaton algorithms correctness.

Definition at line 59 of file drawAlgorithm.h.


Member Function Documentation

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

Parameters:
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.

Here is the call graph for this function:

QString NaiveDrawAlgorithm::getName (  )  const [inline, virtual]

Implements IDrawAlgorithm.

Definition at line 64 of file drawAlgorithm.h.


The documentation for this class was generated from the following files: