Medical Imaging Interaction Toolkit  2024.06.99-60d9b802
Medical Imaging Interaction Toolkit
mitk::ScaleOperation Class Reference

The ScaleOperation is an operation to scale any mitk::BaseGeometry. More...

#include <mitkScaleOperation.h>

Inheritance diagram for mitk::ScaleOperation:
Collaboration diagram for mitk::ScaleOperation:

Public Member Functions

 ScaleOperation (OperationType operationType, Point3D scaleFactor, Point3D scaleAnchorPoint)
 ScaleOperation constructor. More...
 
 ~ScaleOperation () override
 ~ScaleOperation destructor. More...
 
Point3D GetScaleFactor ()
 GetScaleFactor getter for the scale factor. More...
 
Point3D GetScaleAnchorPoint ()
 GetScaleAnchorPoint getter for anchor point. More...
 
- Public Member Functions inherited from mitk::Operation
virtual std::vector< std::string > GetClassHierarchy () const
 
 itkTypeMacroNoParent (Operation) Operation(OperationType operationType)
 
virtual ~Operation ()
 
OperationType GetOperationType ()
 

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 ()
 
- Protected Attributes inherited from mitk::Operation
OperationType m_OperationType
 

Detailed Description

The ScaleOperation is an operation to scale any mitk::BaseGeometry.

The scale factor is expressed as a factor relative to the current size. For doubling the size, you would use a factor of 1.0 == 100% plus.

Definition at line 28 of file mitkScaleOperation.h.

Constructor & Destructor Documentation

◆ ScaleOperation()

mitk::ScaleOperation::ScaleOperation ( OperationType  operationType,
Point3D  scaleFactor,
Point3D  scaleAnchorPoint 
)

ScaleOperation constructor.

Parameters
operationTypethis has to be set to OpSCALE.
scaleFactorRelative scaling factor in percentage of the input geometry.
scaleAnchorPointPoint to scale the object around. Typically geometry->GetCenter() or geometry->GetOrigin() are nice.

◆ ~ScaleOperation()

mitk::ScaleOperation::~ScaleOperation ( )
override

~ScaleOperation destructor.

Member Function Documentation

◆ GetScaleAnchorPoint()

Point3D mitk::ScaleOperation::GetScaleAnchorPoint ( )

GetScaleAnchorPoint getter for anchor point.

Returns
The point to perform the scaling around.

◆ GetScaleFactor()

Point3D mitk::ScaleOperation::GetScaleFactor ( )

GetScaleFactor getter for the scale factor.

Returns
return the scale factor as 3D scalar.

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