Medical Imaging Interaction Toolkit  2025.12.02
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 {
43  {
44  public:
46  itkFactorylessNewMacro(Self);
47  itkCloneMacro(Self);
48 
49  const char **GetXPM() const override;
52 
53  const char *GetName() const override;
54 
55  protected:
56  ErasePaintbrushTool(); // purposely hidden
58 
59  void OnInvertLogic(StateMachineAction* action, InteractionEvent* event) override;
60  };
61 
62 } // namespace
63 
64 #endif
#define MITKSEGMENTATION_EXPORT
Paintbrush tool for InteractiveSegmentation.
us::ModuleResource GetCursorIconResource() const override
Returns the path of a cursor icon.
us::ModuleResource GetIconResource() const override
Returns the tool button icon of the tool wrapped by a usModuleResource.
const char * GetName() const override
Returns the name of this tool. Make it short!
mitkClassMacro(ErasePaintbrushTool, PaintbrushTool)
const char ** GetXPM() const override
Returns an icon in the XPM format.
void OnInvertLogic(StateMachineAction *action, InteractionEvent *event) override
Paintbrush tool for InteractiveSegmentation.
Represents an action, that is executed after a certain event (in statemachine-mechanism) TODO: implem...
Find image slices visible on a given plane.