Medical Imaging Interaction Toolkit  2018.4.99-389bf124
Medical Imaging Interaction Toolkit
mitkPointOperation.cpp
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 #include "mitkPointOperation.h"
14 
16  OperationType operationType, Point3D point, int index, bool selected, PointSpecificationType type)
17  : mitk::Operation(operationType), m_Point(point), m_Index(index), m_Selected(selected), m_Type(type), m_TimeInMS(0)
18 {
19 }
20 
22  ScalarType timeInMS,
23  Point3D point,
24  int index,
25  bool selected,
27  : mitk::Operation(operationType),
28  m_Point(point),
29  m_Index(index),
30  m_Selected(selected),
31  m_Type(type),
32  m_TimeInMS(timeInMS)
33 {
34 }
35 
37 {
38 }
39 
41 {
42  return m_Point;
43 }
44 
46 {
47  return m_Index;
48 }
49 
51 {
52  return m_Selected;
53 }
54 
56 {
57  return m_Type;
58 }
59 
61 {
62  return m_TimeInMS;
63 }
Base class of all Operation-classes.
Definition: mitkOperation.h:29
double ScalarType
DataCollection - Class to facilitate loading/accessing structured data.
PointOperation(OperationType operationType, Point3D point, int index=-1, bool selected=true, PointSpecificationType type=PTUNDEFINED)
Operation that handles all actions on one Point.
ScalarType GetTimeInMS() const
int OperationType
Definition: mitkOperation.h:23
PointSpecificationType GetPointType()
PointSpecificationType
enumeration of the type a point can be
Definition: mitkPoint.h:26