|
Omnidome
Fulldome Mapping Software Toolkit
|
An affine linear transform with rotation, scale and translation. More...
#include <AffineTransform.h>

Public Member Functions | |
| AffineTransform () | |
| EulerAngles & | rotation () |
| Return ref to rotation angles. More... | |
| EulerAngles const & | rotation () const |
| Return const ref to rotation angles. More... | |
| void | setRotation (EulerAngles const &) |
| Set new rotation angles. More... | |
| QVector3D | scale () const |
| Return scale vector. More... | |
| float | uniformScale () const |
| Return scale factor. More... | |
| void | setScale (QVector3D const &) |
| Set new scale vector. More... | |
| void | setScale (float) |
| Set uniform value for scale. More... | |
| QVector3D & | translation () |
| Return reference to translation vector. More... | |
| QVector3D const & | translation () const |
| Return reference to translation vector (const) More... | |
| void | setTranslation (QVector3D const &) |
| Set new translation vector. More... | |
| QMatrix4x4 | matrix () const |
| Calculate transformation matrix. More... | |
| QMatrix4x4 | matrix (QVector3D const &_center) const |
| Calculate matrix for transformation around a center point. More... | |
| bool | rotationEnabled () const |
| Return true if rotation is enabled. More... | |
| void | setRotationEnabled (bool) |
| Enable or disable rotation. More... | |
| bool | scaleEnabled () const |
| Return true if scaling is enabled. More... | |
| bool | uniformScaleEnabled () const |
| Return true if scaling is uniform (means scaling is equal for xyz) More... | |
| void | setUniformScaleEnabled (bool) |
| Set whether scaling is uniform. More... | |
| void | setScaleEnabled (bool) |
| Enable or disable scale. More... | |
| bool | translationEnabled () const |
| Return true if translation is enabled. More... | |
| void | setTranslationEnabled (bool) |
| Enable or disable translation. More... | |
| void | toStream (QDataStream &) const |
| Write transformation to stream. More... | |
| void | fromStream (QDataStream &) |
| Read transformation from stream. More... | |
Private Attributes | |
| bool | rotationEnabled_ = true |
| EulerAngles | rotation_ |
| bool | scaleEnabled_ = true |
| bool | uniformScaleEnabled_ = false |
| QVector3D | scale_ |
| float | uniformScale_ = 1.0 |
| bool | translationEnabled_ = true |
| QVector3D | translation_ |
Friends | |
| bool | operator== (AffineTransform const &, AffineTransform const &) |
| Test for equality. More... | |
An affine linear transform with rotation, scale and translation.
| omni::geometry::AffineTransform::AffineTransform | ( | ) |
| void omni::geometry::AffineTransform::fromStream | ( | QDataStream & | _is | ) |
Read transformation from stream.
| QMatrix4x4 omni::geometry::AffineTransform::matrix | ( | ) | const |
Calculate transformation matrix.
| QMatrix4x4 omni::geometry::AffineTransform::matrix | ( | QVector3D const & | _center | ) | const |
Calculate matrix for transformation around a center point.
| EulerAngles & omni::geometry::AffineTransform::rotation | ( | ) |
Return ref to rotation angles.
| EulerAngles const & omni::geometry::AffineTransform::rotation | ( | ) | const |
Return const ref to rotation angles.
| bool omni::geometry::AffineTransform::rotationEnabled | ( | ) | const |
Return true if rotation is enabled.
| QVector3D omni::geometry::AffineTransform::scale | ( | ) | const |
Return scale vector.
| bool omni::geometry::AffineTransform::scaleEnabled | ( | ) | const |
Return true if scaling is enabled.
| void omni::geometry::AffineTransform::setRotation | ( | EulerAngles const & | _rotation | ) |
Set new rotation angles.
| void omni::geometry::AffineTransform::setRotationEnabled | ( | bool | _enabled | ) |
Enable or disable rotation.
| void omni::geometry::AffineTransform::setScale | ( | QVector3D const & | _scale | ) |
Set new scale vector.
| void omni::geometry::AffineTransform::setScale | ( | float | _uniformScale | ) |
Set uniform value for scale.
| void omni::geometry::AffineTransform::setScaleEnabled | ( | bool | _enabled | ) |
Enable or disable scale.
| void omni::geometry::AffineTransform::setTranslation | ( | QVector3D const & | _translation | ) |
Set new translation vector.
| void omni::geometry::AffineTransform::setTranslationEnabled | ( | bool | _enabled | ) |
Enable or disable translation.
| void omni::geometry::AffineTransform::setUniformScaleEnabled | ( | bool | _enabled | ) |
Set whether scaling is uniform.
Enable or disable scale.
| void omni::geometry::AffineTransform::toStream | ( | QDataStream & | _os | ) | const |
Write transformation to stream.
| QVector3D & omni::geometry::AffineTransform::translation | ( | ) |
Return reference to translation vector.
| QVector3D const & omni::geometry::AffineTransform::translation | ( | ) | const |
Return reference to translation vector (const)
| bool omni::geometry::AffineTransform::translationEnabled | ( | ) | const |
Return true if translation is enabled.
| float omni::geometry::AffineTransform::uniformScale | ( | ) | const |
Return scale factor.
| bool omni::geometry::AffineTransform::uniformScaleEnabled | ( | ) | const |
Return true if scaling is uniform (means scaling is equal for xyz)
Return true if scaling is enabled.
|
friend |
Test for equality.
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
1.8.6