Medical Imaging Interaction Toolkit  2025.12.02
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 {
46  {
47  public:
49  itkFactorylessNewMacro(Self);
50  itkCloneMacro(Self);
51 
52  const char **GetXPM() const override;
55 
56  const char *GetName() const override;
57 
58  protected:
59  AddContourTool(); // purposely hidden
60  ~AddContourTool() override;
61 
62  void OnInvertLogic(StateMachineAction* action, InteractionEvent* event) override;
63  };
64 
65 } // namespace
66 
67 #endif
#define MITKSEGMENTATION_EXPORT
Fill the inside of a contour with 1.
~AddContourTool() override
mitkClassMacro(AddContourTool, ContourTool)
us::ModuleResource GetCursorIconResource() const override
Returns the path of a cursor icon.
void OnInvertLogic(StateMachineAction *action, InteractionEvent *event) override
const char ** GetXPM() const override
Returns an icon in the XPM format.
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!
Simple contour filling tool.
Represents an action, that is executed after a certain event (in statemachine-mechanism) TODO: implem...
Find image slices visible on a given plane.