Medical Imaging Interaction Toolkit  2026.06.00
Medical Imaging Interaction Toolkit
mitkErasePaintbrushTool.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 mitkErasePaintbrushTool_h
14 #define mitkErasePaintbrushTool_h
15 
16 #include <mitkPaintbrushTool.h>
18 
19 namespace us
20 {
21  class ModuleResource;
22 }
23 
24 namespace mitk
25 {
44  {
45  public:
47  itkFactorylessNewMacro(Self);
48  itkCloneMacro(Self);
49 
52 
55 
57  const char *GetName() const override;
58 
59  protected:
60  ErasePaintbrushTool(); // purposely hidden
62 
64  void OnInvertLogic(StateMachineAction* action, InteractionEvent* event) override;
65  };
66 
67 } // namespace
68 
69 #endif
#define MITKSEGMENTATION_EXPORT
Paintbrush erasing tool for interactive segmentation.
us::ModuleResource GetCursorIconResource() const override
Return the cursor icon resource for this tool.
us::ModuleResource GetIconResource() const override
Return the toolbar icon resource for this tool.
const char * GetName() const override
Return the human-readable name of this tool ("Wipe").
mitkClassMacro(ErasePaintbrushTool, PaintbrushTool)
void OnInvertLogic(StateMachineAction *action, InteractionEvent *event) override
Toggle between erase and draw mode and swap the cursor icon accordingly.
Base class for all interaction events in MITK.
Paintbrush tool for InteractiveSegmentation.
Represents an action that is executed after a certain event in the state machine mechanism.
Represents a resource (text file, image, etc.) embedded in a CppMicroServices module.
Find image slices visible on a given plane.