Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
Step10.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 #include "itkObject.h"
18 #include "itkObjectFactory.h"
19 #include "itkSmartPointer.h"
20 #include "mitkCommon.h"
21 #include "mitkDataInteractor.h"
22 #include <mitkPointSet.h>
23 
24 namespace mitk
25 {
27  {
28  public:
30  itkFactorylessNewMacro(Self) itkCloneMacro(Self)
31 
32  protected : ExampleInteractor();
33  virtual ~ExampleInteractor();
34  virtual void ConnectActionsAndFunctions();
41  virtual void ConfigurationChanged();
42 
43  private:
44  bool AddPoint(StateMachineAction *, InteractionEvent *); // function to add new points
45  bool EnoughPoints(StateMachineAction *,
46  InteractionEvent *); // function changes color of pointset to indicate, it is full
47  bool CheckPoint(const InteractionEvent *interactionEvent); // function checks if the clicked point is valid
48 
49  PointSet::Pointer m_PointSet;
50  int m_NumberOfPoints;
51  int m_MaximalNumberOfPoints;
52  };
53 }
virtual ~ExampleInteractor()
Definition: Step10.cpp:99
DataCollection - Class to facilitate loading/accessing structured data.
virtual void ConfigurationChanged()
Definition: Step10.cpp:103
Base class from with interactors that handle DataNodes are to be derived.
mitkClassMacro(ExampleInteractor, DataInteractor)
Represents an action, that is executed after a certain event (in statemachine-mechanism) TODO: implem...
virtual void ConnectActionsAndFunctions()
Overwrite this function to connect actions from StateMachine description with functions.
Definition: Step10.cpp:27