Medical Imaging Interaction Toolkit  2025.12.02
Medical Imaging Interaction Toolkit
mitkFillRegionTool.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 mitkFillRegionTool_h
14 #define mitkFillRegionTool_h
15 
16 #include "mitkFillRegionBaseTool.h"
18 
19 namespace us
20 {
21  class ModuleResource;
22 }
23 
24 namespace mitk
25 {
41  {
42  public:
44  itkFactorylessNewMacro(Self);
45  itkCloneMacro(Self);
46 
47  const char **GetXPM() const override;
50 
51  const char *GetName() const override;
52 
53  protected:
54  void PrepareFilling(const Image* workingSlice, Point3D seedPoint) override;
55 
56  FillRegionTool() = default; // purposely hidden
57  ~FillRegionTool() = default;
58  };
59 
60 } // namespace
61 
62 #endif
#define MITKSEGMENTATION_EXPORT
Base class for tools that fill a connected region of a 2D slice.
Fill the inside of a contour with the foreground pixel value.
us::ModuleResource GetCursorIconResource() const override
Returns the path of a cursor icon.
~FillRegionTool()=default
us::ModuleResource GetIconResource() const override
Returns the tool button icon of the tool wrapped by a usModuleResource.
mitkClassMacro(FillRegionTool, FillRegionBaseTool)
FillRegionTool()=default
void PrepareFilling(const Image *workingSlice, Point3D seedPoint) override
const char * GetName() const override
Returns the name of this tool. Make it short!
const char ** GetXPM() const override
Returns an icon in the XPM format.
Image class for storing images.
Definition: mitkImage.h:70
Find image slices visible on a given plane.