Medical Imaging Interaction Toolkit  2025.12.02
Medical Imaging Interaction Toolkit
mitkSubtractContourTool.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 mitkSubtractContourTool_h
14 #define mitkSubtractContourTool_h
15 
16 #include "mitkContourTool.h"
18 
19 namespace us
20 {
21  class ModuleResource;
22 }
23 
24 namespace mitk
25 {
47  {
48  public:
50  itkFactorylessNewMacro(Self);
51  itkCloneMacro(Self);
52 
53  const char **GetXPM() const override;
56 
57  const char *GetName() const override;
58 
59  protected:
60  SubtractContourTool(); // purposely hidden
62 
63  void OnInvertLogic(StateMachineAction* action, InteractionEvent* event) override;
64  };
65 
66 } // namespace
67 
68 #endif
#define MITKSEGMENTATION_EXPORT
Simple contour filling tool.
Represents an action, that is executed after a certain event (in statemachine-mechanism) TODO: implem...
Fill the inside of a contour with 1.
const char * GetName() const override
Returns the name of this tool. Make it short!
us::ModuleResource GetIconResource() const override
Returns the tool button icon of the tool wrapped by a usModuleResource.
void OnInvertLogic(StateMachineAction *action, InteractionEvent *event) override
const char ** GetXPM() const override
Returns an icon in the XPM format.
us::ModuleResource GetCursorIconResource() const override
Returns the path of a cursor icon.
mitkClassMacro(SubtractContourTool, ContourTool)
Find image slices visible on a given plane.