|
Computer Assited Medical Intervention Tool Kit
version 5.0
|
|
Go to the documentation of this file.
32 #include <QTextStream>
69 void setAlternativeDesc(QString altDescText, QVector<camitk::Action::ApplyStatus> statusList);
76 bool applyAction =
true, QVector<camitk::Action::ApplyStatus> disableConditions = QVector<camitk::Action::ApplyStatus>());
99 void onEntry(QEvent* event)
override;
101 void onExit(QEvent* event)
override;
146 #endif // ACTIONSTATE_H
void setPreviousActionStatus(camitk::Action::ApplyStatus status)
Definition: ActionState.cpp:171
void setAction(camitk::Action *action, QMap< QString, QVariant > parameters, QMap< QString, QString > inputComponentNames, QMap< QString, QString > outputComponentNames)
Definition: ActionState.cpp:53
ActionStateWidget * getWidget()
Definition: ActionState.cpp:76
virtual camitk::Action::ApplyStatus applyAction()
apply the action encapsulated by this action state
Definition: ActionState.cpp:107
ApplyStatus
Definition: Action.h:247
The state (in a state machine point of view) corresponding to the current processed action.
Definition: ActionState.h:48
void onEntry(QEvent *event) override
Reimplemented from QState.
Definition: ActionState.cpp:205
void setAutoUpdateProperties(bool)
are the properties to be udpated every time the user makes a change in the widget (default is false)?
Definition: Action.cpp:426
QString name
Name of the state action (may not be the same as the action's name)
Definition: ActionState.h:128
virtual void setModified(bool modified=true)
set the modified flag
Definition: sdk/libraries/core/component/Component.h:943
ActionState(QState *parent, QString name, QString description, QTextStream *logStream=nullptr)
Definition: ActionState.cpp:43
QString getName() const
get the name of the action
Definition: Action.h:338
ActionStateWidget * myStateWidget
Widget containing:
Definition: ActionState.h:160
ApplyStatus applyInPipeline()
This method encapsulates the apply() method.
Definition: Action.cpp:285
void setInputComponents(ComponentList inputs)
Specify the input Component(s) Only applyInPipeline() should be called with this method (maybe apply)...
Definition: Action.cpp:307
void onExit(QEvent *event) override
Definition: ActionState.cpp:321
Action class is an abstract class that enables you to build a action (generally on a component)....
Definition: Action.h:231
ActionTransition * addActionTransition(QString transitionName, QAbstractState *nextState, bool applyAction=true, QVector< camitk::Action::ApplyStatus > disableConditions=QVector< camitk::Action::ApplyStatus >())
Adds a possible transition from this action.
Definition: ActionState.cpp:81
QMap< QString, QString > inputComponentNames
names of all the input compenent, this is a map <name, type>
Definition: ActionState.h:139
const QMap< QString, QString > & getInputComponents()
get the names and type of all input components
Definition: ActionState.cpp:332
QTime * startTime
Keep track of time...
Definition: ActionState.h:166
QString getName()
Returns the name of the action state (may be different from the name of the actual action)
Definition: ActionState.cpp:66
QMap< QString, QVariant > parameters
name and value of preset parameters
Definition: ActionState.h:145
QTextStream * logStream
Log stream to write report on logFile.
Definition: ActionState.h:163
const char * description
Definition: applications/cepgenerator/main.cpp:38
void autoNextEntry()
programmatically call the onEntry() method (used during autonext)
Definition: ActionState.cpp:200
void autoNextExit()
programmatically call the onExit() method (used during autonext)
Definition: ActionState.cpp:316
QList< Component * > ComponentList
A list of Component.
Definition: CamiTKAPI.h:127
This class handle a transition between two states (including previous/next buttons)....
Definition: ActionTransition.h:59
QString name
the name of the action
Definition: Action.h:489
ComponentList getOutputComponents()
Returns the output Component(s)
Definition: Action.cpp:332
QString getDescription()
Returns the description of the action state (may be different from the description of the actual acti...
Definition: ActionState.cpp:71
camitk::Action * myAction
Actual CamiTK action.
Definition: ActionState.h:136
QMap< camitk::Action::ApplyStatus, QString > conditionalDescriptions
Descriptions that should be displaied if the previous action state did not happen correctly.
Definition: ActionState.h:151
QString description
Description of the state action may not be the same as the action's description but complementary.
Definition: ActionState.h:133
const QMap< QString, QString > & getOutputComponents()
get the names and type of all output components
Definition: ActionState.cpp:337
virtual QWidget * getWidget()
This method has to be redefined in your Action only if:
Definition: Action.cpp:185
void refresh()
refresh the display
void setAlternativeDesc(QString altDescText, QVector< camitk::Action::ApplyStatus > statusList)
May change its description according to the previous action result.
Definition: ActionState.cpp:161
QMap< camitk::Action::ApplyStatus, QVector< QPushButton * > > conditionalButtons
Buttons that should be disabled if the previous aciton state did not happen correctly.
Definition: ActionState.h:148
A Component represents something that could be included in the explorer view, the interactive 3D view...
Definition: sdk/libraries/core/component/Component.h:302
QMap< QString, QString > outputComponentNames
names of all the output compenent, this is a map <name, type>
Definition: ActionState.h:142
Definition: Action.cpp:35