Medical Imaging Interaction Toolkit
2024.12.00
Medical Imaging Interaction Toolkit
|
#include <mitkContourModelInteractor.h>
Public Member Functions | |
mitkClassMacro (ContourModelInteractor, DataInteractor) | |
Pointer | Clone () const |
void | ConnectActionsAndFunctions () override |
void | SetRestrictedArea (mitk::ContourModel *restrictedArea) |
![]() | |
virtual std::vector< std::string > | GetClassHierarchy () const override |
virtual const char * | GetClassName () const |
Pointer | Clone () const |
DataNode * | GetDataNode () const |
virtual void | SetDataNode (DataNode *dataNode) |
int | GetLayer () const |
ProcessEventMode | GetMode () const |
![]() | |
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... | |
![]() | |
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... | |
Static Public Member Functions | |
static Pointer | New () |
![]() | |
static const char * | GetStaticNameOfClass () |
static Pointer | New () |
![]() | |
static const char * | GetStaticNameOfClass () |
![]() | |
static const char * | GetStaticNameOfClass () |
Protected Member Functions | |
ContourModelInteractor () | |
~ContourModelInteractor () override | |
virtual bool | OnCheckPointClick (const InteractionEvent *interactionEvent) |
virtual bool | IsHovering (const InteractionEvent *interactionEvent) |
virtual void | OnAddPoint (StateMachineAction *, InteractionEvent *interactionEvent) |
virtual void | OnDeletePoint (StateMachineAction *, InteractionEvent *interactionEvent) |
virtual void | OnMovePoint (StateMachineAction *, InteractionEvent *interactionEvent) |
virtual void | OnMoveContour (StateMachineAction *, InteractionEvent *interactionEvent) |
virtual void | OnFinishEditing (StateMachineAction *, InteractionEvent *interactionEvent) |
![]() | |
DataInteractor () | |
~DataInteractor () override | |
virtual void | DataNodeChanged () |
Is called when a DataNode is initially set or changed To be implemented by sub-classes for initialization code which require a DataNode. More... | |
virtual void | NotifyStart () |
Sends StartInteraction event via the mitk::DataNode. More... | |
virtual void | NotifyResultReady () |
NotifyResultReady Sends ResultReady event via the mitk::DataNode. More... | |
![]() | |
EventStateMachine () | |
~EventStateMachine () override | |
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) |
virtual bool | FilterEvents (InteractionEvent *interactionEvent, DataNode *dataNode) |
void | SetMouseCursor (const char *xpm[], int hotspotX, int hotspotY) |
Sets the specified mouse cursor. More... | |
void | ResetMouseCursor () |
Resets the mouse cursor to its original state. More... | |
StateMachineTransition * | GetExecutableTransition (InteractionEvent *event) |
Returns the executable transition for the given event. More... | |
![]() | |
InteractionEventHandler () | |
~InteractionEventHandler () override | |
PropertyList::Pointer | GetAttributes () const |
std::string | MapToEventVariant (InteractionEvent *interactionEvent) |
virtual void | ConfigurationChanged () |
Protected Attributes | |
const float | eps |
mitk::Point3D | m_lastMousePosition |
mitk::ContourModel::Pointer | m_RestrictedArea |
![]() | |
bool | m_IsActive |
UndoController * | m_UndoController |
bool | m_UndoEnabled |
Definition at line 34 of file mitkContourModelInteractor.h.
|
protected |
|
overrideprotected |
Pointer mitk::ContourModelInteractor::Clone | ( | ) | const |
|
overridevirtual |
Here actions strings from the loaded state machine pattern are mapped to functions of the DataInteractor. These functions are called when an action from the state machine pattern is executed.
Reimplemented from mitk::DataInteractor.
Reimplemented in mitk::ContourModelLiveWireInteractor.
|
protectedvirtual |
mitk::ContourModelInteractor::mitkClassMacro | ( | ContourModelInteractor | , |
DataInteractor | |||
) |
|
static |
|
protectedvirtual |
Reimplemented in mitk::ContourModelLiveWireInteractor.
|
protectedvirtual |
Reimplemented in mitk::ContourModelLiveWireInteractor.
|
protectedvirtual |
Reimplemented in mitk::ContourModelLiveWireInteractor.
|
protectedvirtual |
Reimplemented in mitk::ContourModelLiveWireInteractor.
|
protectedvirtual |
|
protectedvirtual |
Reimplemented in mitk::ContourModelLiveWireInteractor.
void mitk::ContourModelInteractor::SetRestrictedArea | ( | mitk::ContourModel * | restrictedArea | ) |
|
protected |
Definition at line 62 of file mitkContourModelInteractor.h.
|
protected |
Definition at line 63 of file mitkContourModelInteractor.h.
|
protected |
Definition at line 64 of file mitkContourModelInteractor.h.