Medical Imaging Interaction Toolkit  2018.4.99-064ad45c
Medical Imaging Interaction Toolkit
mitk::RotationOperation Class Reference

Operation, that holds everything necessary for an rotation operation on mitk::BaseData. More...

#include <mitkRotationOperation.h>

Inheritance diagram for mitk::RotationOperation:
Collaboration diagram for mitk::RotationOperation:

Public Member Functions

 RotationOperation (OperationType operationType, Point3D pointOfRotation, Vector3D vectorOfRotation, ScalarType angleOfRotation)
 RotationOperation constructor to create the operation. More...
 
 ~RotationOperation (void) override
 
virtual ScalarType GetAngleOfRotation ()
 GetAngleOfRotation getter for rotation angle. More...
 
virtual const Point3D GetCenterOfRotation ()
 GetCenterOfRotation getter for the anchor point of rotation. More...
 
virtual const Vector3D GetVectorOfRotation ()
 GetVectorOfRotation getter for the rotation axis. More...
 
- Public Member Functions inherited from mitk::Operation
virtual std::vector< std::string > GetClassHierarchy () const
 
 itkTypeMacroNoParent (Operation) Operation(OperationType operationType)
 
virtual ~Operation ()
 
OperationType GetOperationType ()
 

Protected Attributes

ScalarType m_AngleOfRotation
 
Point3D m_PointOfRotation
 
Vector3D m_VectorOfRotation
 
- Protected Attributes inherited from mitk::Operation
OperationType m_OperationType
 

Additional Inherited Members

- Public Types inherited from mitk::Operation
typedef Operation Self
 
typedef itk::SmartPointer< SelfPointer
 
typedef itk::SmartPointer< const SelfConstPointer
 
- Static Public Member Functions inherited from mitk::Operation
static const char * GetStaticNameOfClass ()
 

Detailed Description

Operation, that holds everything necessary for an rotation operation on mitk::BaseData.

Definition at line 25 of file mitkRotationOperation.h.

Constructor & Destructor Documentation

◆ RotationOperation()

mitk::RotationOperation::RotationOperation ( OperationType  operationType,
Point3D  pointOfRotation,
Vector3D  vectorOfRotation,
ScalarType  angleOfRotation 
)

RotationOperation constructor to create the operation.

Parameters
operationTypethis has to be set to OpROTATE.
pointOfRotationAnchor point for rotation.
vectorOfRotationAxis for rotation.
angleOfRotationAngle for rotation in degree.

Definition at line 15 of file mitkRotationOperation.cpp.

◆ ~RotationOperation()

mitk::RotationOperation::~RotationOperation ( void  )
override

Definition at line 26 of file mitkRotationOperation.cpp.

Member Function Documentation

◆ GetAngleOfRotation()

mitk::ScalarType mitk::RotationOperation::GetAngleOfRotation ( )
virtual

GetAngleOfRotation getter for rotation angle.

Returns
Angle in degree.

Definition at line 30 of file mitkRotationOperation.cpp.

References m_AngleOfRotation.

◆ GetCenterOfRotation()

const mitk::Point3D mitk::RotationOperation::GetCenterOfRotation ( )
virtual

GetCenterOfRotation getter for the anchor point of rotation.

Returns
The anchor point to rotate the base data around.

Definition at line 35 of file mitkRotationOperation.cpp.

References m_PointOfRotation.

◆ GetVectorOfRotation()

const mitk::Vector3D mitk::RotationOperation::GetVectorOfRotation ( )
virtual

GetVectorOfRotation getter for the rotation axis.

Returns
Rotation axis as vector.

Definition at line 39 of file mitkRotationOperation.cpp.

References m_VectorOfRotation.

Member Data Documentation

◆ m_AngleOfRotation

ScalarType mitk::RotationOperation::m_AngleOfRotation
protected

Definition at line 60 of file mitkRotationOperation.h.

Referenced by GetAngleOfRotation().

◆ m_PointOfRotation

Point3D mitk::RotationOperation::m_PointOfRotation
protected

Definition at line 61 of file mitkRotationOperation.h.

Referenced by GetCenterOfRotation().

◆ m_VectorOfRotation

Vector3D mitk::RotationOperation::m_VectorOfRotation
protected

Definition at line 62 of file mitkRotationOperation.h.

Referenced by GetVectorOfRotation().


The documentation for this class was generated from the following files: