|
| ToolKeyPressStateMachine (ToolKeyPressResponder *responder) |
| Purposely hidden, protected constructor, so class is instantiated via static ::New() macro, where we pass in the state machine pattern name, and also the object to pass the data onto. More...
|
|
virtual | ~ToolKeyPressStateMachine () |
| Purposely hidden, destructor. More...
|
|
virtual void | ConnectActionsAndFunctions () override |
| Connects state machine actions to functions. More...
|
|
virtual bool | FilterEvents (mitk::InteractionEvent *event, mitk::DataNode *dataNode) override |
| Tells if this tool can handle the given event. More...
|
|
bool | SelectSeedTool (mitk::StateMachineAction *action, mitk::InteractionEvent *event) |
|
bool | SelectDrawTool (mitk::StateMachineAction *action, mitk::InteractionEvent *event) |
|
bool | UnselectTools (mitk::StateMachineAction *action, mitk::InteractionEvent *event) |
|
bool | SelectPolyTool (mitk::StateMachineAction *action, mitk::InteractionEvent *event) |
|
bool | SelectViewMode (mitk::StateMachineAction *action, mitk::InteractionEvent *event) |
|
bool | CleanSlice (mitk::StateMachineAction *action, mitk::InteractionEvent *event) |
|
virtual float | CanHandle (const mitk::StateEvent *stateEvent) const |
|
virtual bool | CanHandle (mitk::InteractionEvent *event) |
|
Purposely hidden, protected constructor, so class is instantiated via static ::New() macro, where we pass in the state machine pattern name, and also the object to pass the data onto.
niftk::ToolKeyPressStateMachine::~ToolKeyPressStateMachine |
( |
| ) |
|
|
protectedvirtual |
Purposely hidden, destructor.
bool niftk::ToolKeyPressStateMachine::CleanSlice |
( |
mitk::StateMachineAction * |
action, |
|
|
mitk::InteractionEvent * |
event |
|
) |
| |
|
protected |
void niftk::ToolKeyPressStateMachine::ConnectActionsAndFunctions |
( |
| ) |
|
|
overrideprotectedvirtual |
Connects state machine actions to functions.
bool niftk::ToolKeyPressStateMachine::FilterEvents |
( |
mitk::InteractionEvent * |
event, |
|
|
mitk::DataNode * |
dataNode |
|
) |
| |
|
overrideprotectedvirtual |
Tells if this tool can handle the given event.
This implementation delegates the call to FilteringStateMachine::CanHandleEvent(), that checks if the event is filtered by one of the installed event filters and if not, calls CanHandle() and returns with its result.
Note that this function is purposefully not virtual. Eventual subclasses should override the CanHandle function.
void niftk::ToolKeyPressStateMachine::Notify |
( |
mitk::InteractionEvent * |
interactionEvent, |
|
|
bool |
isHandled |
|
) |
| |
|
overridevirtual |
By this function the Observer gets notified about new events. Here it is adapted to pass the events to the state machine in order to use its infrastructure. It also checks if event is to be accepted when it already has been processed by a DataInteractor.
bool niftk::ToolKeyPressStateMachine::SelectDrawTool |
( |
mitk::StateMachineAction * |
action, |
|
|
mitk::InteractionEvent * |
event |
|
) |
| |
|
protected |
bool niftk::ToolKeyPressStateMachine::SelectPolyTool |
( |
mitk::StateMachineAction * |
action, |
|
|
mitk::InteractionEvent * |
event |
|
) |
| |
|
protected |
bool niftk::ToolKeyPressStateMachine::SelectSeedTool |
( |
mitk::StateMachineAction * |
action, |
|
|
mitk::InteractionEvent * |
event |
|
) |
| |
|
protected |
bool niftk::ToolKeyPressStateMachine::SelectViewMode |
( |
mitk::StateMachineAction * |
action, |
|
|
mitk::InteractionEvent * |
event |
|
) |
| |
|
protected |
bool niftk::ToolKeyPressStateMachine::UnselectTools |
( |
mitk::StateMachineAction * |
action, |
|
|
mitk::InteractionEvent * |
event |
|
) |
| |
|
protected |
The documentation for this class was generated from the following files: