operation, that changes the stateMachine and sets a state according to a transition to an other state. More...
#include <mitkStateTransitionOperation.h>
Public Member Functions | |
StateTransitionOperation (OperationType operationType, State *state, unsigned int time=0) | |
default constructor | |
~StateTransitionOperation () | |
default constructor | |
State * | GetState () |
Return the state. | |
unsigned int | GetTime () |
Return the time. |
operation, that changes the stateMachine and sets a state according to a transition to an other state.
Definition at line 32 of file mitkStateTransitionOperation.h.
mitk::StateTransitionOperation::StateTransitionOperation | ( | OperationType | operationType, |
State * | state, | ||
unsigned int | time = 0 |
||
) |
default constructor
[in] | operationType | The type of the operation |
[in] | state | The state to be stored |
[in] | time | The time according to the state; obligatory when there is only one timestep. |
Definition at line 21 of file mitkStateTransitionOperation.cpp.
: mitk::Operation(operationType), m_State(state), m_Time(time) {}
mitk::StateTransitionOperation::~StateTransitionOperation | ( | ) |
default constructor
Definition at line 25 of file mitkStateTransitionOperation.cpp.
{ m_State = NULL; }
mitk::State * mitk::StateTransitionOperation::GetState | ( | ) |
Return the state.
Definition at line 31 of file mitkStateTransitionOperation.cpp.
Referenced by mitk::StateMachine::ExecuteOperation().
{
return m_State.GetPointer();
}
unsigned int mitk::StateTransitionOperation::GetTime | ( | ) |
Return the time.
Definition at line 36 of file mitkStateTransitionOperation.cpp.
Referenced by mitk::StateMachine::ExecuteOperation().
{
return m_Time;
}