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

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)
 Construct a ScaleOperation. More...
 
 ~ScaleOperation () override
 
Point3D GetScaleFactor ()
 Get the scale factor. More...
 
Point3D GetScaleAnchorPoint ()
 Get the anchor point for scaling. 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...
 

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
 
- Protected Attributes inherited from mitk::Operation
OperationType m_OperationType
 The type identifier for this operation. More...
 

Detailed Description

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 
)

Construct a ScaleOperation.

Parameters
[in]operationTypeMust be set to OpSCALE.
[in]scaleFactorRelative scaling factor in percentage of the input geometry.
[in]scaleAnchorPointPoint to scale the object around. Typically geometry->GetCenter() or geometry->GetOrigin() are suitable choices.

◆ ~ScaleOperation()

mitk::ScaleOperation::~ScaleOperation ( )
override

Member Function Documentation

◆ GetScaleAnchorPoint()

Point3D mitk::ScaleOperation::GetScaleAnchorPoint ( )

Get the anchor point for scaling.

Returns
The point around which scaling is performed.

◆ GetScaleFactor()

Point3D mitk::ScaleOperation::GetScaleFactor ( )

Get the scale factor.

Returns
The scale factor as a 3D point (one factor per axis).

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