Medical Imaging Interaction Toolkit  2026.06.00
Medical Imaging Interaction Toolkit
mitkLassoTool.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 mitkLassoTool_h
14 #define mitkLassoTool_h
15 
17 #include <mitkContourTool.h>
19 
20 namespace mitk
21 {
41  {
42  public:
44  itkFactorylessNewMacro(Self);
45 
48 
51 
53  const char *GetName() const override;
54 
55  protected:
57  ~LassoTool() override;
58 
60  void ConnectActionsAndFunctions() override;
61 
63  void FinishTool() override;
64 
65  private:
66  mitk::ContourModelInteractor::Pointer m_ContourInteractor;
67  };
68 }
69 
70 #endif
#define MITKSEGMENTATION_EXPORT
Base class for lasso-like tools that draw closed contours with multiple anchor points.
A 2D segmentation tool to draw polygon structures.
Definition: mitkLassoTool.h:41
void ConnectActionsAndFunctions() override
Wire state machine actions to the corresponding member functions.
void FinishTool() override
Finalize the contour and write it back as a segmentation result.
~LassoTool() override
us::ModuleResource GetIconResource() const override
Return the toolbar icon resource for this tool.
us::ModuleResource GetCursorIconResource() const override
Return the cursor icon resource for this tool.
mitkClassMacro(LassoTool, SegTool2D)
const char * GetName() const override
Return the human-readable name of this tool ("Lasso").
Abstract base class for segmentation tools.
Definition: mitkSegTool2D.h:57
Represents a resource (text file, image, etc.) embedded in a CppMicroServices module.
Find image slices visible on a given plane.