13 #ifndef mitkStateMachineTransition_h
14 #define mitkStateMachineTransition_h
20 #include <itkLightObject.h>
27 class StateMachineState;
46 friend class StateMachineFactory;
99 const std::string &eventClass,
100 const std::string &eventVariant);
113 void AddAction(
const StateMachineAction::Pointer &action);
124 std::string m_NextStateName;
126 InteractionEvent::Pointer m_TransitionEvent;
131 std::vector<StateMachineAction::Pointer> m_Actions;
Represents a condition, that has to be fulfilled in order to execute a state machine transition after...
Parses XML state machine descriptions and builds the state machine structure.
Connects two states, and holds references to corresponding actions and conditions.
mitkNewMacro3Param(Self, const std::string &, const std::string &, const std::string &)
StateMachineTransition(const std::string &nextStateName, const std::string &eventClass, const std::string &eventVariant)
std::string GetNextStateName() const
Return the name of the next state that this transition leads to.
void SetNextState(const SpStateMachineState &nextState)
Set the next state of this transition.
std::string m_EventVariant
bool operator==(const StateMachineTransition &transition) const
Check for equality with another transition.
mitkClassMacroItkParent(StateMachineTransition, itk::LightObject)
const ConditionVectorType & GetConditions() const
Return the list of conditions associated with this transition.
SpStateMachineState GetNextState() const
Return the next state that this transition leads to.
~StateMachineTransition() override
ActionVectorType GetActions() const
Return the list of actions associated with this transition.
Find image slices visible on a given plane.
std::vector< mitk::StateMachineAction::Pointer > ActionVectorType
itk::SmartPointer< StateMachineState > SpStateMachineState
std::vector< StateMachineCondition > ConditionVectorType