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

nnInteractive interactor for drawing contours. More...

#include <mitknnInteractiveLassoInteractor.h>

Inheritance diagram for mitk::nnInteractive::LassoInteractor:
Collaboration diagram for mitk::nnInteractive::LassoInteractor:

Public Member Functions

 LassoInteractor ()
 
 ~LassoInteractor () override
 
bool HasInteractions () const override
 Checks whether any interactions have occurred. More...
 
const ImageGetLastLassoMask () 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...
 
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 contours.

Contours are managed as a list of ContourModel data nodes, organized by PromptType. The most recently drawn contour is also available as a binary image mask.

Interaction is handled through the AddContourTool.

Definition at line 33 of file mitknnInteractiveLassoInteractor.h.

Constructor & Destructor Documentation

◆ LassoInteractor()

mitk::nnInteractive::LassoInteractor::LassoInteractor ( )

◆ ~LassoInteractor()

mitk::nnInteractive::LassoInteractor::~LassoInteractor ( )
override

Member Function Documentation

◆ GetLastLassoMask()

const Image* mitk::nnInteractive::LassoInteractor::GetLastLassoMask ( ) const

◆ HasInteractions()

bool mitk::nnInteractive::LassoInteractor::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: