Medical Imaging Interaction Toolkit  2025.12.02
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  const char *GetName() const override;
49  const char **GetXPM() const override;
50 
51  protected:
53  ~LassoTool() override;
54 
55  void ConnectActionsAndFunctions() override;
56  void FinishTool() override;
57 
58  private:
59  mitk::ContourModelInteractor::Pointer m_ContourInteractor;
60  };
61 }
62 
63 #endif
#define MITKSEGMENTATION_EXPORT
A 2D segmentation tool to draw polygon structures.
Definition: mitkLassoTool.h:41
void ConnectActionsAndFunctions() override
const char ** GetXPM() const override
Returns an icon in the XPM format.
void FinishTool() override
Finish contour interaction.
~LassoTool() override
us::ModuleResource GetIconResource() const override
Returns the tool button icon of the tool wrapped by a usModuleResource.
us::ModuleResource GetCursorIconResource() const override
Returns the path of a cursor icon.
mitkClassMacro(LassoTool, SegTool2D)
const char * GetName() const override
Returns the name of this tool. Make it short!
Abstract base class for segmentation tools.
Definition: mitkSegTool2D.h:57
Find image slices visible on a given plane.