Medical Imaging Interaction Toolkit
2016.11.0
Medical Imaging Interaction Toolkit
Home
Manual
API Reference
Download
Bugzilla
Groups
Namespace List
Class List
File List
Examples
File List
File Members
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
31
class
MITKCORE_EXPORT
PointOperation
:
public
Operation
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
,
45
PointSpecificationType
type =
PTUNDEFINED
);
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
,
59
PointSpecificationType
type =
PTUNDEFINED
);
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
85
PointSpecificationType
m_Type;
86
87
ScalarType
m_TimeInMS;
88
};
89
}
// namespace mitk
90
#endif
/* MITKPOINTOPERATION_H*/
MITKCORE_EXPORT
#define MITKCORE_EXPORT
Definition:
MitkCoreExports.h:15
mitk::Point< ScalarType, 3 >
mitk::Operation
Base class of all Operation-classes.
Definition:
mitkOperation.h:33
mitk::ScalarType
double ScalarType
Definition:
mitkNumericConstants.h:24
MitkCoreExports.h
mitk
DataCollection - Class to facilitate loading/accessing structured data.
Definition:
GeometryOverview.dox:1
mitk::PointOperation
Operation that handles all actions on one Point.
Definition:
mitkPointOperation.h:31
mitk::OperationType
int OperationType
Definition:
mitkOperation.h:27
mitkNumericTypes.h
mitk::PTUNDEFINED
Definition:
mitkPoint.h:32
mitkOperation.h
mitk::PointSpecificationType
PointSpecificationType
enumeration of the type a point can be
Definition:
mitkPoint.h:30
git
MITK
Modules
Core
include
mitkPointOperation.h
Generated on Fri Feb 3 2017 20:52:06 for Medical Imaging Interaction Toolkit by
1.8.9.1