13 #ifndef mitknnInteractiveInteractor_h
14 #define mitknnInteractiveInteractor_h
22 class InteractionEvent;
248 std::unique_ptr<Impl> m_Impl;
#define MITKPYTHONSEGMENTATION_EXPORT
Data management class that handles 'was created by' relations.
Base class for all nnInteractive interactors.
ToolManager * GetToolManager() const
Returns the ToolManager associated with this interactor.
std::string GetIcon() const
Retrieves the SVG icon as a string from module resources.
virtual void OnReset()=0
Called when the interactor is reset.
DataStorage * GetDataStorage() const
Convenience method for accessing the DataStorage.
void Reset()
Resets the interactor to its initial state.
Interactor(InteractionType type, InteractionMode mode=InteractionMode::Default)
Constructs an interactor with a given type and mode.
virtual void OnDisable()=0
Called when the interactor is disabled.
PromptType GetCurrentPromptType() const
Returns the currently active prompt type.
void Enable(PromptType promptType)
Enables the interactor for the given prompt type.
void SetToolManager(ToolManager *toolManager)
Sets the ToolManager for this interactor.
Message1< bool > UpdatePreviewEvent
Event triggered after an interaction has occurred.
void HandleEvent(InteractionEvent *event)
Handles an interaction event.
virtual void OnHandleEvent(InteractionEvent *)
Called when an interaction event for a tool is received.
void Disable()
Disables the interactor.
virtual bool HasInteractions() const =0
Checks whether any interactions have occurred.
std::string GetCursor(PromptType promptType) const
Retrieves the SVG cursor as a string from module resources based on PromptType.
virtual void OnEnable()=0
Called when the interactor is enabled.
bool IsEnabled() const
Checks whether the interactor is currently enabled.
virtual void OnSetToolManager()
Called when a ToolManager is assigned.
InteractionType GetType() const
Returns the interaction type associated with this interactor.
InteractionMode
Specifies the interaction modes for interactors.
InteractionType
Specifies the types of interactions available.
PromptType
Specifies the types of prompts used in nnInteractive.
Find image slices visible on a given plane.