Medical Imaging Interaction Toolkit  2016.11.0
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,
6  Division of Medical and Biological Informatics.
7  All rights reserved.
8 
9  This software is distributed WITHOUT ANY WARRANTY; without
10  even the implied warranty of MERCHANTABILITY or FITNESS FOR
11  A PARTICULAR PURPOSE.
12 
13  See LICENSE.txt or http://www.mitk.org for details.
14 
15  ===================================================================*/
16 
17 #ifndef mitkSinglePointDataInteractor_h_
18 #define mitkSinglePointDataInteractor_h_
19 
20 #include "itkObject.h"
21 #include "itkObjectFactory.h"
22 #include "itkSmartPointer.h"
23 #include "mitkCommon.h"
25 #include <MitkCoreExports.h>
26 #include <mitkPointSet.h>
27 
28 namespace mitk
29 {
38  // Inherit from DataInteratcor, this provides functionality of a state machine and configurable inputs.
40  {
41  public:
42  mitkClassMacro(SinglePointDataInteractor, PointSetDataInteractor) itkFactorylessNewMacro(Self) itkCloneMacro(Self)
43 
44  protected : SinglePointDataInteractor();
45  virtual ~SinglePointDataInteractor();
46 
52  virtual void AddPoint(StateMachineAction *, InteractionEvent *event) override;
53 
59  virtual void SetMaxPoints(unsigned int /*maxNumber*/ = 0) {}
60  virtual void DataNodeChanged() override;
61  };
62 }
63 #endif
#define MITKCORE_EXPORT
virtual void DataNodeChanged() override
Called when a DataNode has been set/changed.
DataCollection - Class to facilitate loading/accessing structured data.
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:44
Implementation of the single point interaction.