![]() |
Computer Assited Medical Intervention Tool Kit
|
#include <ActionState.h>
Inheritance diagram for ActionState:Public Member Functions | |
| ActionState (QState *parent, QString name, QString description, QTextStream *logStream=NULL) | |
| ActionTransition * | addActionTransition (QString buttonText, QAbstractState *nextState, bool applyAction=true, QVector< Action::ApplyStatus > disableConditions=QVector< Action::ApplyStatus >()) |
| Adds a possible transition from this action. | |
| virtual Action::ApplyStatus | applyAction () |
| QString | getDescription () |
| Returns the description of the action state (may be different from the description of the actual action) | |
| QString | getName () |
| Returns the name of the action state (may be different from the name of the actual action) | |
| ActionStateWidget * | getWidget () |
| void | setAction (Action *action, QMap< QString, QVariant > parameters, QMap< QString, QString > inputComponentNames, QMap< QString, QString > outputComponentNames) |
| void | setAleternativeDesc (QString altDescText, QVector< Action::ApplyStatus > statusList) |
| May change its description according to the previous action result. | |
| void | setFinal () |
| void | setPreviousActionStatus (Action::ApplyStatus status) |
Protected Member Functions | |
| virtual void | onEntry (QEvent *event) |
| Reimplemented from QState. | |
| virtual void | onExit (QEvent *event) |
Protected Attributes | |
| QMap< Action::ApplyStatus, QVector< QPushButton * > > | conditionalButtons |
| Buttons that should be disabled if the previous aciton state did not happen correctly. | |
| QMap< Action::ApplyStatus, QString > | conditionalDescriptions |
| QString | description |
| Description of the state action may not be the same as the action's description but complementary. | |
| QMap< QString, QString > | inputComponentNames |
| QTextStream * | logStream |
| Log stream to write report on logFile. | |
| Action * | myAction |
| Actual CamiTK action. | |
| ActionStateWidget * | myStateWidget |
| Widget containing: | |
| QString | name |
| Name of the state action (may not be the same as the action's name) | |
| QMap< QString, QString > | outputComponentNames |
| QTime * | startTime |
| Keep track of time... | |
| ActionState::ActionState | ( | QState * | parent, |
| QString | name, | ||
| QString | description, | ||
| QTextStream * | logStream = NULL |
||
| ) |
References description, logStream, myAction, myStateWidget, and name.
| ActionTransition * ActionState::addActionTransition | ( | QString | buttonText, |
| QAbstractState * | nextState, | ||
| bool | applyAction = true, |
||
| QVector< Action::ApplyStatus > | disableConditions = QVector<Action::ApplyStatus>() |
||
| ) |
Adds a possible transition from this action.
References ActionStateWidget::addTransitionButton(), conditionalButtons, logStream, and myStateWidget.
Referenced by ActionStateMachine::createTransitions().
|
virtual |
Reimplemented in SaveActionState.
References camitk::Action::applyInPipeline(), camitk::Action::getName(), camitk::Action::getOutputComponents(), inputComponentNames, logStream, myAction, camitk::Action::name, outputComponentNames, and camitk::Action::setInputComponents().
Referenced by ActionTransition::onTransition().
| QString ActionState::getDescription | ( | ) |
Returns the description of the action state (may be different from the description of the actual action)
References description.
Referenced by ActionStateWidget::ActionStateWidget().
| QString ActionState::getName | ( | ) |
Returns the name of the action state (may be different from the name of the actual action)
References name.
Referenced by ActionStateWidget::ActionStateWidget().
| ActionStateWidget * ActionState::getWidget | ( | ) |
References myStateWidget.
Referenced by SaveActionState::applyAction(), and ActionStateViewer::setState().
|
protectedvirtual |
| void ActionState::setAction | ( | Action * | action, |
| QMap< QString, QVariant > | parameters, | ||
| QMap< QString, QString > | inputComponentNames, | ||
| QMap< QString, QString > | outputComponentNames | ||
| ) |
| void ActionState::setAleternativeDesc | ( | QString | altDescText, |
| QVector< Action::ApplyStatus > | statusList | ||
| ) |
May change its description according to the previous action result.
References conditionalDescriptions.
Referenced by ActionStateMachine::createAllActionStates().
| void ActionState::setFinal | ( | ) |
| void ActionState::setPreviousActionStatus | ( | Action::ApplyStatus | status | ) |
References conditionalButtons, conditionalDescriptions, description, myStateWidget, and ActionStateWidget::setDescription().
Referenced by ActionTransition::onTransition().
|
protected |
Buttons that should be disabled if the previous aciton state did not happen correctly.
Referenced by addActionTransition(), and setPreviousActionStatus().
|
protected |
Referenced by setAleternativeDesc(), and setPreviousActionStatus().
|
protected |
Description of the state action may not be the same as the action's description but complementary.
Referenced by ActionState(), getDescription(), and setPreviousActionStatus().
|
protected |
Referenced by applyAction(), and setAction().
|
protected |
Log stream to write report on logFile.
Referenced by ActionState(), addActionTransition(), SaveActionState::applyAction(), applyAction(), onEntry(), and onExit().
|
protected |
Actual CamiTK action.
Referenced by ActionState(), SaveActionState::applyAction(), applyAction(), SaveActionState::SaveActionState(), and setAction().
|
protected |
Widget containing:
Referenced by ActionState(), addActionTransition(), getWidget(), setAction(), and setPreviousActionStatus().
|
protected |
Name of the state action (may not be the same as the action's name)
Referenced by ActionState(), getName(), and onEntry().
|
protected |
Referenced by applyAction(), and setAction().
|
protected |
1.8.1.2