Medical Imaging Interaction Toolkit  2025.12.02
Medical Imaging Interaction Toolkit
mitknnInteractiveScribbleInteractor.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 mitknnInteractiveScribbleInteractor_h
14 #define mitknnInteractiveScribbleInteractor_h
15 
17 
18 namespace mitk
19 {
20  class Image;
21 }
22 
23 namespace mitk::nnInteractive
24 {
33  {
34  public:
36  ~ScribbleInteractor() override;
37 
38  bool HasInteractions() const override;
39 
40  const Image* GetLastScribbleMask() const;
41 
42  private:
43  void OnSetToolManager() override;
44  void OnHandleEvent(InteractionEvent* event) override;
45  void OnEnable() override;
46  void OnDisable() override;
47  void OnReset() override;
48 
49  class Impl;
50  std::unique_ptr<Impl> m_Impl;
51  };
52 }
53 
54 #endif
#define MITKPYTHONSEGMENTATION_EXPORT
Image class for storing images.
Definition: mitkImage.h:70
Base class for all nnInteractive interactors.
nnInteractive interactor for freehand brushstrokes.
bool HasInteractions() const override
Checks whether any interactions have occurred.
const Image * GetLastScribbleMask() const
class ITK_EXPORT Image
Find image slices visible on a given plane.