Medical Imaging Interaction Toolkit  2026.06.00
Medical Imaging Interaction Toolkit
mitknnInteractiveBoxInteractor.h
Go to the documentation of this file.
1 /*============================================================================
2 
3 The Medical Imaging Interaction Toolkit (MITK)
4 
5 Copyright (c) German Cancer Research Center (DKFZ)
6 All rights reserved.
7 
8 Use of this source code is governed by a 3-clause BSD license that can be
9 found in the LICENSE file.
10 
11 ============================================================================*/
12 
13 #ifndef mitknnInteractiveBoxInteractor_h
14 #define mitknnInteractiveBoxInteractor_h
15 
17 
18 namespace mitk
19 {
20  class PlanarFigure;
21 }
22 
23 namespace mitk::nnInteractive
24 {
38  {
39  public:
43 
46  ~BoxInteractor() override;
47 
53  bool HasInteractions() const override;
54 
63  const PlanarFigure* GetLastBox() const;
64 
73  void RemoveLastInteraction(PromptType promptType) override;
74 
75  private:
76  void OnEnable() override;
77  void OnDisable() override;
78  void OnReset() override;
79 
80  class Impl;
81  std::unique_ptr<Impl> m_Impl;
82  };
83 }
84 
85 #endif
#define MITKPYTHONSEGMENTATION_EXPORT
Base-class for geometric planar (2D) figures, such as lines, circles, rectangles, polygons,...
nnInteractive interactor for drawing rectangular boxes.
BoxInteractor()
Constructs a BoxInteractor with InteractionType::Box.
void RemoveLastInteraction(PromptType promptType) override
Removes the most recently completed box for the given prompt type.
~BoxInteractor() override
Destructor. Calls OnReset() to clean up data nodes.
bool HasInteractions() const override
Checks whether any boxes have been drawn.
const PlanarFigure * GetLastBox() const
Returns the most recently completed box for the current prompt type.
Base class for all nnInteractive interactors.
PromptType
Specifies the types of prompts used in nnInteractive.
Find image slices visible on a given plane.