Medical Imaging Interaction Toolkit
2016.11.0
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... | |
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< 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 32 of file mitkScaleOperation.h.
mitk::ScaleOperation::ScaleOperation | ( | mitk::OperationType | operationType, |
mitk::Point3D | scaleFactor, | ||
mitk::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. |
Definition at line 19 of file mitkScaleOperation.cpp.
|
virtual |
~ScaleOperation destructor.
Definition at line 26 of file mitkScaleOperation.cpp.
mitk::Point3D mitk::ScaleOperation::GetScaleAnchorPoint | ( | ) |
GetScaleAnchorPoint getter for anchor point.
Definition at line 35 of file mitkScaleOperation.cpp.
Referenced by mitk::BaseGeometry::ExecuteOperation().
mitk::Point3D mitk::ScaleOperation::GetScaleFactor | ( | ) |
GetScaleFactor getter for the scale factor.
Definition at line 30 of file mitkScaleOperation.cpp.
Referenced by mitk::BaseGeometry::ExecuteOperation().