Medical Imaging Interaction Toolkit  2018.4.99-7e02155b
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 {
34  // Inherit from DataInteratcor, this provides functionality of a state machine and configurable inputs.
36  {
37  public:
39  itkFactorylessNewMacro(Self);
40  itkCloneMacro(Self);
41 
42  protected : SinglePointDataInteractor();
43  ~SinglePointDataInteractor() override;
44 
50  void AddPoint(StateMachineAction *, InteractionEvent *event) override;
51 
57  virtual void SetMaxPoints(unsigned int /*maxNumber*/ = 0) {}
58  void DataNodeChanged() override;
59  };
60 }
61 #endif
#define MITKCORE_EXPORT
DataCollection - Class to facilitate loading/accessing structured data.
virtual void SetMaxPoints(unsigned int=0)
SetMaxPoints Sets the maximal number of points for the pointset Overwritten, per design this class wi...
Implementation of the PointSetInteractor.
Base class from with interactors that handle DataNodes are to be derived.
Represents an action, that is executed after a certain event (in statemachine-mechanism) TODO: implem...
#define mitkClassMacro(className, SuperClassName)
Definition: mitkCommon.h:40
Implementation of the single point interaction.