Medical Imaging Interaction Toolkit
2018.4.99-389bf124
Medical Imaging Interaction Toolkit
mitkCellOperation.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 MITKCELLOPERATION_H_INCLUDED
14
#define MITKCELLOPERATION_H_INCLUDED
15
16
#include "
MitkDataTypesExtExports.h
"
17
#include "
mitkCommon.h
"
18
#include "
mitkOperation.h
"
19
#include "
mitkVector.h
"
20
21
namespace
mitk
22
{
23
//##Documentation
24
//## @brief Operation, that holds everything necessary for an operation on a cell.
25
//##
26
//## @ingroup Undo
27
class
MITKDATATYPESEXT_EXPORT
CellOperation
:
public
Operation
28
{
29
public
:
30
mitkClassMacro
(
CellOperation
,
Operation
);
31
//##Documentation
32
//##@brief constructor
33
//##
34
//## @param
35
//## operationType is the type of that operation (see mitkOperation.h; e.g. move or add; Information for
36
//StateMachine::ExecuteOperation());
37
//## cellId: Id of the cell and a vector if needed
38
CellOperation
(
OperationType
operationType,
int
cellId,
Vector3D
vector);
39
40
CellOperation
(
OperationType
operationType,
int
cellId);
41
42
~CellOperation
()
override
{};
43
44
int
GetCellId
() {
return
m_CellId; };
45
Vector3D
GetVector() {
return
m_Vector; };
46
protected
:
47
int
m_CellId
;
48
Vector3D
m_Vector
;
49
};
50
}
// namespace mitk
51
#endif
/* MITKCELLOPERATION_H_INCLUDED*/
mitk::Vector< ScalarType, 3 >
MITKDATATYPESEXT_EXPORT
#define MITKDATATYPESEXT_EXPORT
Definition:
MitkDataTypesExtExports.h:15
MitkDataTypesExtExports.h
mitk::Operation
Base class of all Operation-classes.
Definition:
mitkOperation.h:29
mitkCommon.h
mitk
DataCollection - Class to facilitate loading/accessing structured data.
Definition:
GeometryOverview.dox:1
mitk::CellOperation::m_Vector
Vector3D m_Vector
Definition:
mitkCellOperation.h:48
mitkClassMacro
#define mitkClassMacro(className, SuperClassName)
Definition:
mitkCommon.h:40
mitk::CellOperation
Operation, that holds everything necessary for an operation on a cell.
Definition:
mitkCellOperation.h:27
mitk::CellOperation::m_CellId
int m_CellId
Definition:
mitkCellOperation.h:45
mitk::OperationType
int OperationType
Definition:
mitkOperation.h:23
mitk::CellOperation::~CellOperation
~CellOperation() override
Definition:
mitkCellOperation.h:42
mitkVector.h
mitkOperation.h
mitk::CellOperation::GetCellId
int GetCellId()
Definition:
mitkCellOperation.h:44
Source
Modules
DataTypesExt
include
mitkCellOperation.h
Generated on Thu Mar 12 2020 10:23:40 for Medical Imaging Interaction Toolkit by
1.8.13