Medical Imaging Interaction Toolkit
2016.11.0
Medical Imaging Interaction Toolkit
|
Observer that adds interaction with a segmentation session to the default display interaction. More...
#include <mitkSegmentationInteractor.h>
Public Member Functions | |
mitkClassMacro (SegmentationInteractor, DisplayInteractor) static Pointer New() | |
Public Member Functions inherited from mitk::DisplayInteractor | |
virtual std::vector< std::string > | GetClassHierarchy () const override |
virtual const char * | GetClassName () const |
Pointer | Clone () const |
virtual void | Notify (InteractionEvent *interactionEvent, bool isHandled) override |
Public Member Functions inherited from mitk::EventStateMachine | |
bool | LoadStateMachine (const std::string &filename, const us::Module *module=nullptr) |
Loads XML resource. More... | |
bool | HandleEvent (InteractionEvent *event, DataNode *dataNode) |
void | EnableUndo (bool enable) |
Enables or disabled Undo. More... | |
void | EnableInteraction (bool enable) |
Enables/disables the state machine. In un-enabled state it won't react to any events. More... | |
Public Member Functions inherited from mitk::InteractionEventHandler | |
bool | SetEventConfig (const std::string &filename, const us::Module *module=nullptr) |
Loads a configuration from an XML resource. More... | |
bool | SetEventConfig (const EventConfig &config) |
Loads a configuration from an EventConfig object. More... | |
EventConfig | GetEventConfig () const |
Returns the current configuration. More... | |
bool | AddEventConfig (const std::string &filename, const us::Module *module=nullptr) |
This method extends the configuration. More... | |
bool | AddEventConfig (const EventConfig &config) |
This method extends the configuration. The configuration from the EventConfig object is loaded and only the ones conflicting are replaced by the new one. This way several configurations can be combined. More... | |
Public Member Functions inherited from mitk::InteractionEventObserver | |
InteractionEventObserver () | |
virtual | ~InteractionEventObserver () |
void | Disable () |
void | Enable () |
bool | IsEnabled () const |
Protected Member Functions | |
SegmentationInteractor () | |
virtual | ~SegmentationInteractor () |
virtual void | ConnectActionsAndFunctions () |
bool | ChangeActiveLabel (StateMachineAction *, InteractionEvent *) |
Protected Member Functions inherited from mitk::DisplayInteractor | |
DisplayInteractor () | |
virtual | ~DisplayInteractor () |
virtual void | ConfigurationChanged () override |
virtual bool | FilterEvents (InteractionEvent *interactionEvent, DataNode *dataNode) override |
virtual bool | CheckPositionEvent (const InteractionEvent *interactionEvent) |
virtual bool | CheckRotationPossible (const InteractionEvent *interactionEvent) |
virtual bool | CheckSwivelPossible (const InteractionEvent *interactionEvent) |
virtual void | Init (StateMachineAction *, InteractionEvent *) |
Initializes an interaction, saves the pointers start position for further reference. More... | |
virtual void | Move (StateMachineAction *, InteractionEvent *) |
Performs panning of the data set in the render window. More... | |
virtual void | SetCrosshair (StateMachineAction *, InteractionEvent *) |
Sets crosshair at clicked position*. More... | |
virtual void | Zoom (StateMachineAction *, InteractionEvent *) |
Performs zooming relative to mouse/pointer movement. More... | |
virtual void | Scroll (StateMachineAction *, InteractionEvent *) |
Performs scrolling relative to mouse/pointer movement. More... | |
virtual void | ScrollOneDown (StateMachineAction *, InteractionEvent *) |
Scrolls one layer up. More... | |
virtual void | ScrollOneUp (StateMachineAction *, InteractionEvent *) |
Scrolls one layer down. More... | |
virtual void | AdjustLevelWindow (StateMachineAction *, InteractionEvent *) |
Adjusts the level windows relative to mouse/pointer movement. More... | |
virtual void | StartRotation (StateMachineAction *, InteractionEvent *) |
Starts crosshair rotation. More... | |
virtual void | EndRotation (StateMachineAction *, InteractionEvent *) |
Ends crosshair rotation. More... | |
virtual void | Rotate (StateMachineAction *, InteractionEvent *event) |
virtual void | Swivel (StateMachineAction *, InteractionEvent *event) |
virtual void | UpdateStatusbar (StateMachineAction *, InteractionEvent *event) |
Updates the Statusbar information with the information about the clicked position. More... | |
bool | GetBoolProperty (mitk::PropertyList::Pointer propertyList, const char *propertyName, bool defaultValue) |
Method to retrieve bool-value for given property from string-property in given propertylist. More... | |
Protected Member Functions inherited from mitk::EventStateMachine | |
EventStateMachine () | |
virtual | ~EventStateMachine () |
void | AddActionFunction (const std::string &action, TActionFunctor *functor) |
void | AddActionFunction (const std::string &action, const ActionFunctionDelegate &delegate) |
void | AddConditionFunction (const std::string &condition, const ConditionFunctionDelegate &delegate) |
StateMachineState * | GetCurrentState () const |
void | ResetToStartState () |
ResetToStartState Reset state machine to it initial starting state. More... | |
virtual bool | CheckCondition (const StateMachineCondition &condition, const InteractionEvent *interactionEvent) |
virtual void | ExecuteAction (StateMachineAction *action, InteractionEvent *interactionEvent) |
void | SetMouseCursor (const char *xpm[], int hotspotX, int hotspotY) |
Sets the specified mouse cursor. More... | |
void | ResetMouseCursor () |
Resets the mouse cursor (if modified by the SlicesCoordinator) to its original state. More... | |
StateMachineTransition * | GetExecutableTransition (InteractionEvent *event) |
Returns the executable transition for the given event. More... | |
Protected Member Functions inherited from mitk::InteractionEventHandler | |
InteractionEventHandler () | |
virtual | ~InteractionEventHandler () |
PropertyList::Pointer | GetAttributes () const |
std::string | MapToEventVariant (InteractionEvent *interactionEvent) |
Observer that adds interaction with a segmentation session to the default display interaction.
At the moment, this includes changing the active label.
Definition at line 34 of file mitkSegmentationInteractor.h.
|
inlineprotected |
Definition at line 39 of file mitkSegmentationInteractor.h.
|
inlineprotectedvirtual |
Definition at line 40 of file mitkSegmentationInteractor.h.
|
protected |
Changes the active label.
Definition at line 32 of file mitkSegmentationInteractor.cpp.
References mitk::LabelSetImage::GetActiveLabelSet(), mitk::ToolManagerProvider::GetInstance(), mitk::Image::GetPixelValueByWorldCoordinate(), mitk::InteractionPositionEvent::GetPositionInWorld(), mitk::InteractionEvent::GetSender(), mitk::BaseRenderer::GetTimeStep(), mitk::ToolManagerProvider::GetToolManager(), mitk::ToolManager::GetWorkingData(), and mitk::LabelSet::SetActiveLabel().
|
protectedvirtual |
Derived function. Connects the action names used in the state machine pattern with functions implemented within this InteractionEventObserver. This is only necessary here because the events are processed by the state machine.
Reimplemented from mitk::DisplayInteractor.
Definition at line 25 of file mitkSegmentationInteractor.cpp.
References mitk::EventStateMachine::ConnectActionsAndFunctions().
mitk::SegmentationInteractor::mitkClassMacro | ( | SegmentationInteractor | , |
DisplayInteractor | |||
) |