Public Member Functions

mitk::StateTransitionOperation Class Reference
[Undo Classes]

operation, that changes the stateMachine and sets a state according to a transition to an other state. More...

#include <mitkStateTransitionOperation.h>

Inheritance diagram for mitk::StateTransitionOperation:
Inheritance graph
[legend]
Collaboration diagram for mitk::StateTransitionOperation:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 StateTransitionOperation (OperationType operationType, State *state, unsigned int time=0)
 default constructor
 ~StateTransitionOperation ()
 default constructor
StateGetState ()
 Return the state.
unsigned int GetTime ()
 Return the time.

Detailed Description

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.


Constructor & Destructor Documentation

mitk::StateTransitionOperation::StateTransitionOperation ( OperationType  operationType,
State state,
unsigned int  time = 0 
)

default constructor

Parameters:
[in]operationTypeThe type of the operation
[in]stateThe state to be stored
[in]timeThe 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;
}

Member Function Documentation

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;
}

The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines