Medical Imaging Interaction Toolkit  2024.06.99-60d9b802
Medical Imaging Interaction Toolkit
mitkFillRegionBaseTool.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 mitkFillRegionBaseTool_h
14 #define mitkFillRegionBaseTool_h
15 
16 #include "mitkCommon.h"
17 #include "mitkContourModelUtils.h"
18 #include "mitkContourUtils.h" //TODO remove legacy support
19 #include "mitkImage.h"
20 #include "mitkSegTool2D.h"
22 
23 #include "mitkDataNode.h"
24 
25 #include "mitkImageCast.h"
26 
27 namespace mitk
28 {
42  {
43  public:
45 
46  protected:
47  FillRegionBaseTool(); // purposely hidden
48  ~FillRegionBaseTool() override;
49 
50  void ConnectActionsAndFunctions() override;
51 
53  virtual void OnClick(StateMachineAction*, InteractionEvent* interactionEvent);
54 
68  virtual Image::Pointer GenerateFillImage(const Image* workingSlice, Point3D seedPoint, mitk::Label::PixelType& seedLabelValue) const;
69 
72  virtual void PrepareFilling(const Image* workingSlice, Point3D seedPoint) = 0;
73 
74  Label::PixelType m_FillLabelValue = 0;
75  Label::PixelType m_SeedLabelValue = 0;
76 
78  private:
79  };
80 
81 } // namespace
82 
83 #endif
mitk::FillRegionBaseTool
Base class for tools that fill a connected region of a 2D slice.
Definition: mitkFillRegionBaseTool.h:41
mitk::InteractionEvent
Definition: mitkInteractionEvent.h:26
mitkImage.h
mitkImageCast.h
mitk::Image
Image class for storing images.
Definition: mitkImage.h:69
itk::SmartPointer< Self >
mitk::Label::PixelType
unsigned short PixelType
Definition: mitkLabel.h:34
mitk
Find image slices visible on a given plane.
Definition: RenderingTests.dox:1
mitk::SegTool2D
Abstract base class for segmentation tools.
Definition: mitkSegTool2D.h:56
mitk::MultiLabelSegmentation::MergeStyle::Replace
@ Replace
mitk::Point< ScalarType, 3 >
mitk::MultiLabelSegmentation::MergeStyle
MergeStyle
Definition: mitkLabelSetImage.h:605
mitkCommon.h
MITKSEGMENTATION_EXPORT
#define MITKSEGMENTATION_EXPORT
Definition: MitkSegmentationExports.h:15
mitkSegTool2D.h
mitkDataNode.h
mitkContourModelUtils.h
mitk::StateMachineAction
Represents an action, that is executed after a certain event (in statemachine-mechanism) TODO: implem...
Definition: mitkStateMachineAction.h:30
mitkClassMacro
#define mitkClassMacro(className, SuperClassName)
Definition: mitkCommon.h:36
MitkSegmentationExports.h
mitkContourUtils.h