Medical Imaging Interaction Toolkit  2018.4.99-a3d2e8fb
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 ( mitk::OperationType  operationType,
mitk::Point3D  scaleFactor,
mitk::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.

Definition at line 15 of file mitkScaleOperation.cpp.

◆ ~ScaleOperation()

mitk::ScaleOperation::~ScaleOperation ( )
override

~ScaleOperation destructor.

Definition at line 22 of file mitkScaleOperation.cpp.

Member Function Documentation

◆ GetScaleAnchorPoint()

mitk::Point3D mitk::ScaleOperation::GetScaleAnchorPoint ( )

GetScaleAnchorPoint getter for anchor point.

Returns
The point to perform the scaling around.

Definition at line 31 of file mitkScaleOperation.cpp.

◆ GetScaleFactor()

mitk::Point3D mitk::ScaleOperation::GetScaleFactor ( )

GetScaleFactor getter for the scale factor.

Returns
return the scale factor as 3D scalar.

Definition at line 26 of file mitkScaleOperation.cpp.


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