Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
mitkPointOperation.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 MITKPOINTOPERATION_H
18 #define MITKPOINTOPERATION_H
19 
20 #include "mitkNumericTypes.h"
21 #include "mitkOperation.h"
22 #include <MitkCoreExports.h>
23 
24 namespace mitk
25 {
26  //##Documentation
27  //## @brief Operation that handles all actions on one Point.
28  //##
29  //## Stores everything for Adding, Moving and Deleting a Point.
30  //## @ingroup Undo
32  {
33  public:
34  //##Documentation
35  //##@brief Operation that handles all actions on one Point.
36  //##
37  //## @param operationType is the type of the operation (see mitkOperation.h; e.g. move or add; Information for
38  // StateMachine::ExecuteOperation());
39  //## @param point is the information of the point to add or is the information to change a point into
40  //## @param index is e.g. the position in a list which describes the element to change
41  PointOperation(OperationType operationType,
42  Point3D point,
43  int index = -1,
44  bool selected = true,
46 
47  //##Documentation
48  //##@brief Operation that handles all actions on one Point.
49  //##
50  //## @param operationType is the type of the operation (see mitkOperation.h; e.g. move or add; Information for
51  // StateMachine::ExecuteOperation());
52  //## @param point is the information of the point to add or is the information to change a point into
53  //## @param index is e.g. the position in a list which describes the element to change
54  PointOperation(OperationType operationType,
55  ScalarType timeInMS,
56  Point3D point,
57  int index = -1,
58  bool selected = true,
60 
61  virtual ~PointOperation();
62 
63  Point3D GetPoint();
64 
65  int GetIndex();
66 
67  bool GetSelected();
68 
69  PointSpecificationType GetPointType();
70 
71  ScalarType GetTimeInMS() const;
72 
73  private:
74  Point3D m_Point;
75 
76  //##Documentation
77  //##@brief to declare an index where to store the point in data
78  int m_Index;
79 
80  // to declare weather the point is selected or deselected
81  bool m_Selected;
82 
83  //##Documentation
84  //##@brief to describe the type of the point. See enum PointSpecification for different types
86 
87  ScalarType m_TimeInMS;
88  };
89 } // namespace mitk
90 #endif /* MITKPOINTOPERATION_H*/
#define MITKCORE_EXPORT
Base class of all Operation-classes.
Definition: mitkOperation.h:33
double ScalarType
DataCollection - Class to facilitate loading/accessing structured data.
Operation that handles all actions on one Point.
int OperationType
Definition: mitkOperation.h:27
PointSpecificationType
enumeration of the type a point can be
Definition: mitkPoint.h:30