Medical Imaging Interaction Toolkit  2026.06.00
Medical Imaging Interaction Toolkit
mitk::RotationOperation Class Reference

Operation that holds everything necessary for a 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)
 Constructor to create a rotation operation. More...
 
 ~RotationOperation (void) override
 Destructor. More...
 
virtual ScalarType GetAngleOfRotation ()
 Returns the rotation angle. More...
 
virtual const Point3D GetCenterOfRotation ()
 Returns the anchor point of rotation. More...
 
virtual const Vector3D GetVectorOfRotation ()
 Returns the rotation axis. More...
 
- Public Member Functions inherited from mitk::Operation
 mitkClassMacroNoParent (Operation) virtual bool IsValid() const
 Check whether this operation is still valid and can be executed. More...
 
virtual ~Operation ()=default
 Virtual destructor. More...
 
OperationType GetOperationType ()
 Get the type identifier of this operation. More...
 

Protected Attributes

ScalarType m_AngleOfRotation
 
Point3D m_PointOfRotation
 
Vector3D m_VectorOfRotation
 
- Protected Attributes inherited from mitk::Operation
OperationType m_OperationType
 The type identifier for this operation. More...
 

Additional Inherited Members

- Protected Member Functions inherited from mitk::Operation
 Operation (OperationType operationType)
 Construct an operation with the given type. More...
 
 Operation (const Operation &)=default
 
 Operation (Operation &&)=default
 
Operation & operator= (const Operation &)=default
 
Operation & operator= (Operation &&)=default
 

Detailed Description

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

See also
Operation

Definition at line 27 of file mitkRotationOperation.h.

Constructor & Destructor Documentation

◆ RotationOperation()

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

Constructor to create a rotation operation.

Parameters
operationTypethis has to be set to OpROTATE.
pointOfRotationanchor point for rotation.
vectorOfRotationaxis for rotation.
angleOfRotationangle for rotation in degrees.

◆ ~RotationOperation()

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

Destructor.

Member Function Documentation

◆ GetAngleOfRotation()

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

Returns the rotation angle.

Returns
Angle in degrees.

◆ GetCenterOfRotation()

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

Returns the anchor point of rotation.

Returns
The anchor point to rotate the base data around.

◆ GetVectorOfRotation()

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

Returns the rotation axis.

Returns
Rotation axis as vector.

Member Data Documentation

◆ m_AngleOfRotation

ScalarType mitk::RotationOperation::m_AngleOfRotation
protected

Definition at line 68 of file mitkRotationOperation.h.

◆ m_PointOfRotation

Point3D mitk::RotationOperation::m_PointOfRotation
protected

Definition at line 69 of file mitkRotationOperation.h.

◆ m_VectorOfRotation

Vector3D mitk::RotationOperation::m_VectorOfRotation
protected

Definition at line 70 of file mitkRotationOperation.h.


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