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
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,
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 "mitkPointOperation.h"
18 
20  OperationType operationType, Point3D point, int index, bool selected, PointSpecificationType type)
21  : mitk::Operation(operationType), m_Point(point), m_Index(index), m_Selected(selected), m_Type(type), m_TimeInMS(0)
22 {
23 }
24 
26  ScalarType timeInMS,
27  Point3D point,
28  int index,
29  bool selected,
31  : mitk::Operation(operationType),
32  m_Point(point),
33  m_Index(index),
34  m_Selected(selected),
35  m_Type(type),
36  m_TimeInMS(timeInMS)
37 {
38 }
39 
41 {
42 }
43 
45 {
46  return m_Point;
47 }
48 
50 {
51  return m_Index;
52 }
53 
55 {
56  return m_Selected;
57 }
58 
60 {
61  return m_Type;
62 }
63 
65 {
66  return m_TimeInMS;
67 }
Base class of all Operation-classes.
Definition: mitkOperation.h:33
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:27
PointSpecificationType GetPointType()
PointSpecificationType
enumeration of the type a point can be
Definition: mitkPoint.h:30