Medical Imaging Interaction Toolkit  2026.06.00
Medical Imaging Interaction Toolkit
mitkAddContourTool.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 mitkAddContourTool_h
14 #define mitkAddContourTool_h
15 
16 #include <mitkContourTool.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  AddContourTool(); // purposely hidden
61  ~AddContourTool() override;
62 
64  void OnInvertLogic(StateMachineAction* action, InteractionEvent* event) override;
65  };
66 
67 } // namespace
68 
69 #endif
#define MITKSEGMENTATION_EXPORT
Fill the inside of a contour with the foreground pixel value.
~AddContourTool() override
mitkClassMacro(AddContourTool, ContourTool)
us::ModuleResource GetCursorIconResource() const override
Return the cursor icon resource for this tool.
void OnInvertLogic(StateMachineAction *action, InteractionEvent *event) override
Toggle painting pixel value and swap cursor icon when CTRL is pressed.
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 ("Add").
Simple contour filling tool.
Base class for all interaction events in MITK.
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.