Medical Imaging Interaction Toolkit  2016.11.0
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...
 
virtual ~ScaleOperation ()
 ~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 32 of file mitkScaleOperation.h.

Constructor & Destructor Documentation

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 19 of file mitkScaleOperation.cpp.

mitk::ScaleOperation::~ScaleOperation ( )
virtual

~ScaleOperation destructor.

Definition at line 26 of file mitkScaleOperation.cpp.

Member Function Documentation

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

GetScaleAnchorPoint getter for anchor point.

Returns
The point to perform the scaling around.

Definition at line 35 of file mitkScaleOperation.cpp.

Referenced by mitk::BaseGeometry::ExecuteOperation().

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

GetScaleFactor getter for the scale factor.

Returns
return the scale factor as 3D scalar.

Definition at line 30 of file mitkScaleOperation.cpp.

Referenced by mitk::BaseGeometry::ExecuteOperation().


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