Medical Imaging Interaction Toolkit  2018.4.99-389bf124
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 (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 "mitkRotationOperation.h"
14 
16  Point3D pointOfRotation,
17  Vector3D vectorOfRotation,
18  ScalarType angleOfRotation)
19  : mitk::Operation(operationType),
20  m_AngleOfRotation(angleOfRotation),
21  m_PointOfRotation(pointOfRotation),
22  m_VectorOfRotation(vectorOfRotation)
23 {
24 }
25 
27 {
28 }
29 
31 {
32  return this->m_AngleOfRotation;
33 }
34 
36 {
37  return this->m_PointOfRotation;
38 }
40 {
41  return this->m_VectorOfRotation;
42 }
virtual const Vector3D GetVectorOfRotation()
GetVectorOfRotation getter for the rotation axis.
Base class of all Operation-classes.
Definition: mitkOperation.h:29
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:23