Medical Imaging Interaction Toolkit  2024.12.99-0da743f6
Medical Imaging Interaction Toolkit
mitkPickingTool.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 mitkPickingTool_h
14 #define mitkPickingTool_h
15 
16 #include "mitkSegWithPreviewTool.h"
17 #include "mitkPointSet.h"
18 
20 
21 namespace us
22 {
23  class ModuleResource;
24 }
25 
26 namespace mitk
27 {
41  {
42  public:
44  itkFactorylessNewMacro(Self);
45  itkCloneMacro(Self);
46 
47  const char **GetXPM() const override;
48  const char *GetName() const override;
49  us::ModuleResource GetIconResource() const override;
50 
51  void Activated() override;
52  void Deactivated() override;
53 
55  void ClearPicks();
56 
57  bool HasPicks() const;
58 
59  protected:
60  PickingTool(); // purposely hidden
61  ~PickingTool() override;
62 
63  void ConnectActionsAndFunctions() override;
64 
66  virtual void OnAddPoint(StateMachineAction*, InteractionEvent* interactionEvent);
67 
69  virtual void OnDelete(StateMachineAction*, InteractionEvent* interactionEvent);
70 
72  void ClearSeeds();
73 
74  void DoUpdatePreview(const Image* inputAtTimeStep, const Image* oldSegAtTimeStep, LabelSetImage* previewImage, TimeStepType timeStep) override;
75 
76  // seed point
79  };
80 
81 } // namespace
82 
83 #endif
mitk::SegWithPreviewTool
Base class for any auto segmentation tool that provides a preview of the new segmentation.
Definition: mitkSegWithPreviewTool.h:38
mitk::PickingTool::m_PointSet
PointSet::Pointer m_PointSet
Definition: mitkPickingTool.h:77
mitk::InteractionEvent
Definition: mitkInteractionEvent.h:26
us
Definition: mitkAbstractFileReader.h:29
mitkSegWithPreviewTool.h
mitk::Image
Image class for storing images.
Definition: mitkImage.h:69
itk::SmartPointer< Self >
mitkPointSet.h
mitk
Find image slices visible on a given plane.
Definition: RenderingTests.dox:1
mitk::EventStateMachine
‍**
Definition: mitkEventStateMachine.h:111
mitk::PickingTool
Extracts a single region from a segmentation image and creates a new image with same geometry of the ...
Definition: mitkPickingTool.h:40
MITKSEGMENTATION_EXPORT
#define MITKSEGMENTATION_EXPORT
Definition: MitkSegmentationExports.h:15
us::ModuleResource
Definition: usModuleResource.h:55
mitk::TimeStepType
std::size_t TimeStepType
Definition: mitkTimeGeometry.h:27
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
mitk::PickingTool::m_PointSetNode
DataNode::Pointer m_PointSetNode
Definition: mitkPickingTool.h:78
mitk::LabelSetImage
LabelSetImage class for handling labels and layers in a segmentation session.
Definition: mitkLabelSetImage.h:43