Medical Imaging Interaction Toolkit  2025.08.99-f7084adb
Medical Imaging Interaction Toolkit
mitk::nnInteractive::BoxInteractor Class Reference

nnInteractive interactor for drawing rectangular boxes. More...

#include <mitknnInteractiveBoxInteractor.h>

Inheritance diagram for mitk::nnInteractive::BoxInteractor:
Collaboration diagram for mitk::nnInteractive::BoxInteractor:

Public Member Functions

 BoxInteractor ()
 
 ~BoxInteractor () override
 
bool HasInteractions () const override
 Checks whether any interactions have occurred. More...
 
const PlanarFigureGetLastBox () const
 
- Public Member Functions inherited from mitk::nnInteractive::Interactor
virtual ~Interactor ()
 
InteractionType GetType () const
 Returns the interaction type associated with this interactor. More...
 
void SetToolManager (ToolManager *toolManager)
 Sets the ToolManager for this interactor. More...
 
void HandleEvent (InteractionEvent *event)
 Handles an interaction event. More...
 
void Enable (PromptType promptType)
 Enables the interactor for the given prompt type. More...
 
void Disable ()
 Disables the interactor. More...
 
bool IsEnabled () const
 Checks whether the interactor is currently enabled. More...
 
void Reset ()
 Resets the interactor to its initial state. More...
 
std::string GetIcon () const
 Retrieves the SVG icon as a string from module resources. More...
 
std::string GetCursor (PromptType promptType) const
 Retrieves the SVG cursor as a string from module resources based on PromptType. More...
 

Additional Inherited Members

- Public Attributes inherited from mitk::nnInteractive::Interactor
Message1< bool > UpdatePreviewEvent
 Event triggered after an interaction has occurred. More...
 
- Protected Member Functions inherited from mitk::nnInteractive::Interactor
 Interactor (InteractionType type, InteractionMode mode=InteractionMode::Default)
 Constructs an interactor with a given type and mode. More...
 
virtual void OnSetToolManager ()
 Called when a ToolManager is assigned. More...
 
virtual void OnHandleEvent (InteractionEvent *)
 Called when an interaction event for a tool is received. More...
 
ToolManagerGetToolManager () const
 Returns the ToolManager associated with this interactor. More...
 
DataStorageGetDataStorage () const
 Convenience method for accessing the DataStorage. More...
 
PromptType GetCurrentPromptType () const
 Returns the currently active prompt type. More...
 

Detailed Description

nnInteractive interactor for drawing rectangular boxes.

Boxes are managed as a list of PlanarRectangle data nodes, organized by PromptType. The currently drawn PlanarRectangle is stored in a separate data node until it is completed.

Interaction is handled through the PlanarFigureInteractor.

Definition at line 33 of file mitknnInteractiveBoxInteractor.h.

Constructor & Destructor Documentation

◆ BoxInteractor()

mitk::nnInteractive::BoxInteractor::BoxInteractor ( )

◆ ~BoxInteractor()

mitk::nnInteractive::BoxInteractor::~BoxInteractor ( )
override

Member Function Documentation

◆ GetLastBox()

const PlanarFigure* mitk::nnInteractive::BoxInteractor::GetLastBox ( ) const

◆ HasInteractions()

bool mitk::nnInteractive::BoxInteractor::HasInteractions ( ) const
overridevirtual

Checks whether any interactions have occurred.

Derived classes must implement this method to determine whether the interactor has processed any interactions.

Implements mitk::nnInteractive::Interactor.


The documentation for this class was generated from the following file: