Medical Imaging Interaction Toolkit  2026.06.00
Medical Imaging Interaction Toolkit
mitkSinglePointDataInteractor.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 mitkSinglePointDataInteractor_h
14 #define mitkSinglePointDataInteractor_h
15 
16 #include <itkObject.h>
17 #include <itkObjectFactory.h>
18 #include <itkSmartPointer.h>
19 #include <mitkCommon.h>
21 #include <MitkCoreExports.h>
22 #include <mitkPointSet.h>
23 
24 namespace mitk
25 {
37  {
38  public:
40  itkFactorylessNewMacro(Self);
41  itkCloneMacro(Self);
42 
45 
52  void AddPoint(StateMachineAction *, InteractionEvent *event) override;
53 
59  virtual void SetMaxPoints(unsigned int maxNumber = 0);
60 
66  void DataNodeChanged() override;
67  };
68 }
69 #endif
#define MITKCORE_EXPORT
Base class for all interaction events in MITK.
Implementation of the PointSetInteractor.
Implementation of the single point interaction.
mitkClassMacro(SinglePointDataInteractor, PointSetDataInteractor)
virtual void SetMaxPoints(unsigned int maxNumber=0)
Overridden to enforce a maximum of one point.
void DataNodeChanged() override
Called when the data node changes.
void AddPoint(StateMachineAction *, InteractionEvent *event) override
Add or move the single point at the given coordinates.
Represents an action that is executed after a certain event in the state machine mechanism.
Find image slices visible on a given plane.