Medical Imaging Interaction Toolkit  2026.06.00
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 (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 mitkPointOperation_h
14 #define mitkPointOperation_h
15 
16 #include <mitkNumericTypes.h>
17 #include <mitkOperation.h>
18 #include <MitkCoreExports.h>
19 
20 namespace mitk
21 {
34  {
35  public:
46  Point3D point,
47  int index = -1,
48  bool selected = true,
50 
62  ScalarType timeInMS,
63  Point3D point,
64  int index = -1,
65  bool selected = true,
67 
68  ~PointOperation() override;
69 
72 
74  int GetIndex();
75 
77  bool GetSelected();
78 
81 
84 
85  private:
86  Point3D m_Point;
87 
89  int m_Index;
90 
92  bool m_Selected;
93 
96 
97  ScalarType m_TimeInMS;
98  };
99 } // namespace mitk
100 #endif
#define MITKCORE_EXPORT
Base class for all operations in the undo/redo framework.
Definition: mitkOperation.h:38
Operation that handles all actions on a single point.
Point3D GetPoint()
Get the 3D point coordinates stored in this operation.
PointOperation(OperationType operationType, Point3D point, int index=-1, bool selected=true, PointSpecificationType type=PTUNDEFINED)
Construct a PointOperation without a time stamp.
~PointOperation() override
PointSpecificationType GetPointType()
Get the point specification type.
ScalarType GetTimeInMS() const
Get the time stamp of this operation in milliseconds.
int GetIndex()
Get the index position of the point in the point set.
PointOperation(OperationType operationType, ScalarType timeInMS, Point3D point, int index=-1, bool selected=true, PointSpecificationType type=PTUNDEFINED)
Construct a PointOperation with a time stamp.
bool GetSelected()
Get whether the point is selected.
Convenience header that includes all MITK numeric types.
Find image slices visible on a given plane.
PointSpecificationType
Enumeration of point specification types.
Definition: mitkPoint.h:31
@ PTUNDEFINED
Definition: mitkPoint.h:32
int OperationType
Type alias for operation type identifiers.
Definition: mitkOperation.h:24
double ScalarType
Scalar type used throughout MITK for geometric computations.