Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
mitkRotationOperation.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 "mitkRotationOperation.h"
18 
20  Point3D pointOfRotation,
21  Vector3D vectorOfRotation,
22  ScalarType angleOfRotation)
23  : mitk::Operation(operationType),
24  m_AngleOfRotation(angleOfRotation),
25  m_PointOfRotation(pointOfRotation),
26  m_VectorOfRotation(vectorOfRotation)
27 {
28 }
29 
31 {
32 }
33 
35 {
36  return this->m_AngleOfRotation;
37 }
38 
40 {
41  return this->m_PointOfRotation;
42 }
44 {
45  return this->m_VectorOfRotation;
46 }
virtual const Vector3D GetVectorOfRotation()
GetVectorOfRotation getter for the rotation axis.
Base class of all Operation-classes.
Definition: mitkOperation.h:33
virtual const Point3D GetCenterOfRotation()
GetCenterOfRotation getter for the anchor point of rotation.
double ScalarType
RotationOperation(OperationType operationType, Point3D pointOfRotation, Vector3D vectorOfRotation, ScalarType angleOfRotation)
RotationOperation constructor to create the operation.
DataCollection - Class to facilitate loading/accessing structured data.
virtual ScalarType GetAngleOfRotation()
GetAngleOfRotation getter for rotation angle.
int OperationType
Definition: mitkOperation.h:27