Medical Imaging Interaction Toolkit
2023.12.00
Medical Imaging Interaction Toolkit
|
The ScaleOperation is an operation to scale any mitk::BaseGeometry. More...
#include <mitkScaleOperation.h>
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< Self > | Pointer |
typedef itk::SmartPointer< const Self > | ConstPointer |
Static Public Member Functions inherited from mitk::Operation | |
static const char * | GetStaticNameOfClass () |
Protected Attributes inherited from mitk::Operation | |
OperationType | m_OperationType |
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.
mitk::ScaleOperation::ScaleOperation | ( | OperationType | operationType, |
Point3D | scaleFactor, | ||
Point3D | scaleAnchorPoint | ||
) |
ScaleOperation constructor.
operationType | this has to be set to OpSCALE. |
scaleFactor | Relative scaling factor in percentage of the input geometry. |
scaleAnchorPoint | Point to scale the object around. Typically geometry->GetCenter() or geometry->GetOrigin() are nice. |
|
override |
~ScaleOperation destructor.
Point3D mitk::ScaleOperation::GetScaleAnchorPoint | ( | ) |
GetScaleAnchorPoint getter for anchor point.
Point3D mitk::ScaleOperation::GetScaleFactor | ( | ) |
GetScaleFactor getter for the scale factor.