Medical Imaging Interaction Toolkit  2026.06.00
Medical Imaging Interaction Toolkit
mitkDrawPaintbrushTool.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 mitkDrawPaintbrushTool_h
14 #define mitkDrawPaintbrushTool_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  DrawPaintbrushTool(); // purposely hidden
61  ~DrawPaintbrushTool() override;
62 
64  void OnInvertLogic(StateMachineAction* action, InteractionEvent* event) override;
65  };
66 
67 } // namespace
68 
69 #endif
#define MITKSEGMENTATION_EXPORT
Paintbrush drawing tool for interactive segmentation.
void OnInvertLogic(StateMachineAction *action, InteractionEvent *event) override
Toggle between draw and erase mode and swap the cursor icon accordingly.
us::ModuleResource GetCursorIconResource() const override
Return the cursor icon resource for this tool.
mitkClassMacro(DrawPaintbrushTool, PaintbrushTool)
~DrawPaintbrushTool() override
const char * GetName() const override
Return the human-readable name of this tool ("Paint").
us::ModuleResource GetIconResource() const override
Return the toolbar icon resource for this tool.
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.