A GeometryOperator for scaling shapes.
More...
#include </home/docs/checkouts/readthedocs.org/user_builds/axom/checkouts/develop/src/axom/klee/GeometryOperators.hpp>
|
| | Scale (double xFactor, double yFactor, const TransformableGeometryProperties &startProperties) |
| |
| | Scale (double xFactor, double yFactor, double zFactor, const TransformableGeometryProperties &startProperties) |
| |
| | Scale (double xFactor, double yFactor, const primal::Point2D ¢er, const TransformableGeometryProperties &startProperties) |
| |
| | Scale (double xFactor, double yFactor, double zFactor, const primal::Point3D ¢er, const TransformableGeometryProperties &startProperties) |
| |
| double | getXFactor () const |
| |
| double | getYFactor () const |
| |
| double | getZFactor () const |
| |
| primal::Point3D & | getCenter () |
| |
| const primal::Point3D & | getCenter () const |
| |
| numerics::Matrix< double > | toMatrix () const override |
| |
| void | accept (GeometryOperatorVisitor &visitor) const override |
| |
| | GeometryOperator (const TransformableGeometryProperties &startProperties) |
| |
| const TransformableGeometryProperties & | getStartProperties () const |
| |
| virtual TransformableGeometryProperties | getEndProperties () const |
| |
A GeometryOperator for scaling shapes.
◆ Scale() [1/4]
Create a new Scale operator.
- Parameters
-
| xFactor | the amount by which to scale in the x direction |
| yFactor | the amount by which to scale in the y direction |
| startProperties | the initial properties, as in the parent class. |
- Note
- The scaling factor used for the 3rd dimension is 1.
◆ Scale() [2/4]
Create a new Scale operator.
- Parameters
-
| xFactor | the amount by which to scale in the x direction |
| yFactor | the amount by which to scale in the y direction |
| zFactor | the amount by which to scale in the z direction |
| startProperties | the initial properties, as in the parent class. |
- Note
- If the number of dimensions is 2, zFactor should be 1.0, but this is not enforced.
◆ Scale() [3/4]
Create a new Scale operator.
- Parameters
-
| xFactor | the amount by which to scale in the x direction |
| yFactor | the amount by which to scale in the y direction |
| center | The center relative to which the scaling is performed. |
| startProperties | the initial properties, as in the parent class. |
- Note
- The scaling factor used for the 3rd dimension is 1.
◆ Scale() [4/4]
Create a new Scale operator.
- Parameters
-
| xFactor | the amount by which to scale in the x direction |
| yFactor | the amount by which to scale in the y direction |
| zFactor | the amount by which to scale in the z direction |
| center | The center relative to which the scaling is performed. |
| startProperties | the initial properties, as in the parent class. |
- Note
- If the number of dimensions is 2, zFactor should be 1.0, but this is not enforced.
◆ getXFactor()
| double axom::klee::Scale::getXFactor |
( |
| ) |
const |
|
inline |
Get the scale factor in the x direction.
- Returns
- the x scale factor
◆ getYFactor()
| double axom::klee::Scale::getYFactor |
( |
| ) |
const |
|
inline |
Get the scale factor in the y direction.
- Returns
- the y scale factor
◆ getZFactor()
| double axom::klee::Scale::getZFactor |
( |
| ) |
const |
|
inline |
Get the scale factor in the z direction.
- Returns
- the z scale factor
◆ getCenter() [1/2]
Get the scale factor in the z direction.
- Returns
- the z scale factor
◆ getCenter() [2/2]
◆ toMatrix()
Convert this operator to its matrix representation.
- Returns
- a 4x4 affine transformation matrix
Implements axom::klee::MatrixOperator.
◆ accept()
Accept the given visitor. The appropriate visit() method will be called on the visitor based on the run-time type of this operator.
- Parameters
-
| visitor | the visitor to accept. |
Implements axom::klee::GeometryOperator.
◆ GeometryOperator()
| axom::klee::GeometryOperator::GeometryOperator |
|
explicitinherited |
Create an operator with the given start properties
- Parameters
-
| startProperties | the properties before the operator is applied |
◆ getStartProperties()
Get the properties that the operator expects to start in
- Returns
- the properties which must be true before this operator is applied
◆ getEndProperties()
The documentation for this class was generated from the following file:
- /home/docs/checkouts/readthedocs.org/user_builds/axom/checkouts/develop/src/axom/klee/GeometryOperators.hpp