Manages a 3D coordinates transformation context. More...
#include <eVision/Easy3D/EAffineTransformer.h>
Public Member Functions | |
| EAffineTransformer () | |
| Creates an EAffineTransformer object. | |
| EAffineTransformer (const eVision::Easy3D::EAffineTransformer &other) | |
| Copy constructor of an EAffineTransformer object. | |
| virtual | ~EAffineTransformer () throw () |
| eVision::Easy3D::EAffineTransformer & | operator= (const eVision::Easy3D::EAffineTransformer &other) |
| Assignment operator. | |
| void | SetTransform (const eVision::Easy3D::E3DTransformMatrix &matrix) |
| Sets the E3DTransformMatrix that will be used. | |
| const eVision::Easy3D::E3DTransformMatrix & | GetTransform () const |
| Sets the E3DTransformMatrix that will be used. | |
| const eVision::Easy3D::E3DTransformMatrix & | AddTransform (const eVision::Easy3D::E3DTransformMatrix &matrix) |
| Composes a custom transformation with the current E3DTransformMatrix. | |
| const eVision::Easy3D::E3DTransformMatrix & | AddRotationXTransform (float Angle) |
| Adds rotation around the X axis to the current E3DTransformMatrix. | |
| const eVision::Easy3D::E3DTransformMatrix & | AddRotationYTransform (float Angle) |
| Adds rotation around the Y axis to the current E3DTransformMatrix. | |
| const eVision::Easy3D::E3DTransformMatrix & | AddRotationZTransform (float Angle) |
| Adds rotation around the Z axis to the current E3DTransformMatrix. | |
| const eVision::Easy3D::E3DTransformMatrix & | AddTranslationTransform (float dX, float dY, float dZ) |
| Adds translation to the current E3DTransformMatrix. | |
| const eVision::Easy3D::E3DTransformMatrix & | AddIsotropicScalingTransform (float scale) |
| Adds isotropic scaling to the current E3DTransformMatrix. | |
| const eVision::Easy3D::E3DTransformMatrix & | AddAnisotropicScalingTransform (float scaleX, float scaleY, float scaleZ) |
| Adds anisotropic scaling to the current E3DTransformMatrix. | |
| const eVision::Easy3D::E3DTransformMatrix & | AddPerspectiveProjectionTransform (float distance, float width, float height) |
| Adds a perspective projection to the current E3DTransformMatrix. | |
| const eVision::Easy3D::E3DTransformMatrix & | AddOrthographicProjectionTransform (float width, float height) |
| Adds an orthographic projection to the current E3DTransformMatrix. | |
| void | ApplyTransform (const eVision::Easy3D::EPointCloud &cloud, eVision::Easy3D::EPointCloud &transformedCloud) const |
| Applies the current transformation to a EPointCloud, EMesh or list of E3DPoint. | |
| void | ApplyTransform (eVision::Easy3D::EPointCloud &cloud) const |
| Applies the current transformation to a EPointCloud, EMesh or list of E3DPoint. | |
| void | ApplyTransform (const eVision::Easy3D::EMesh &mesh, eVision::Easy3D::EMesh &transformedMesh) const |
| Applies the current transformation to a EPointCloud, EMesh or list of E3DPoint. | |
| void | ApplyTransform (eVision::Easy3D::EMesh &mesh) const |
| Applies the current transformation to a EPointCloud, EMesh or list of E3DPoint. | |
| void | ApplyTransform (const std::vector< eVision::Easy3D::E3DPoint > &sourcePoints, std::vector< eVision::Easy3D::E3DPoint > &transformedPoints) const |
| Applies the current transformation to a EPointCloud, EMesh or list of E3DPoint. | |
| eVision::Easy3D::E3DPoint | ApplyTransform (const eVision::Easy3D::E3DPoint &sourcePoint) const |
| Applies the current transformation to a EPointCloud, EMesh or list of E3DPoint. | |
| void | Reset () |
| Resets the transformation E3DTransformMatrix to the identity. | |
| EAffineTransformer (CppWrapperInternal::InternalConstructor) | |
Public Attributes | |
| CppWrapperInternal::WrappedClass | wrappedClass_ |
Manages a 3D coordinates transformation context.
By default, no transformation is done (identity matrix). The transformations are applied in the order in which the calls to AddTransform are done.
License(s): Easy3D
| eVision::Easy3D::EAffineTransformer::EAffineTransformer | ( | ) |
Creates an EAffineTransformer object.
| eVision::Easy3D::EAffineTransformer::EAffineTransformer | ( | const eVision::Easy3D::EAffineTransformer & | other | ) |
Copy constructor of an EAffineTransformer object.
| other | Another EAffineTransformer. |
|
virtual | ||||||||||||
| eVision::Easy3D::EAffineTransformer::EAffineTransformer | ( | CppWrapperInternal::InternalConstructor | ) |
| const eVision::Easy3D::E3DTransformMatrix & eVision::Easy3D::EAffineTransformer::AddAnisotropicScalingTransform | ( | float | scaleX, |
| float | scaleY, | ||
| float | scaleZ ) |
Adds anisotropic scaling to the current E3DTransformMatrix.
| scaleX | Scaling factor along the X axis. |
| scaleY | Scaling factor along the Y axis. |
| scaleZ | Scaling factor along the Z axis. |
| const eVision::Easy3D::E3DTransformMatrix & eVision::Easy3D::EAffineTransformer::AddIsotropicScalingTransform | ( | float | scale | ) |
Adds isotropic scaling to the current E3DTransformMatrix.
| scale | Scaling factor. |
| const eVision::Easy3D::E3DTransformMatrix & eVision::Easy3D::EAffineTransformer::AddOrthographicProjectionTransform | ( | float | width, |
| float | height ) |
Adds an orthographic projection to the current E3DTransformMatrix.
| width | Width of the viewport. |
| height | Height of the viewport. |
| const eVision::Easy3D::E3DTransformMatrix & eVision::Easy3D::EAffineTransformer::AddPerspectiveProjectionTransform | ( | float | distance, |
| float | width, | ||
| float | height ) |
Adds a perspective projection to the current E3DTransformMatrix.
| distance | Distance of the viewport to the origin. |
| width | Width of the viewport. |
| height | Height of the viewport. |
| const eVision::Easy3D::E3DTransformMatrix & eVision::Easy3D::EAffineTransformer::AddRotationXTransform | ( | float | Angle | ) |
Adds rotation around the X axis to the current E3DTransformMatrix.
| Angle | Rotation angle. |
| const eVision::Easy3D::E3DTransformMatrix & eVision::Easy3D::EAffineTransformer::AddRotationYTransform | ( | float | Angle | ) |
Adds rotation around the Y axis to the current E3DTransformMatrix.
| Angle | Rotation angle. |
| const eVision::Easy3D::E3DTransformMatrix & eVision::Easy3D::EAffineTransformer::AddRotationZTransform | ( | float | Angle | ) |
Adds rotation around the Z axis to the current E3DTransformMatrix.
| Angle | Rotation angle. |
| const eVision::Easy3D::E3DTransformMatrix & eVision::Easy3D::EAffineTransformer::AddTransform | ( | const eVision::Easy3D::E3DTransformMatrix & | matrix | ) |
Composes a custom transformation with the current E3DTransformMatrix.
| matrix | Transformation matrix. |
| const eVision::Easy3D::E3DTransformMatrix & eVision::Easy3D::EAffineTransformer::AddTranslationTransform | ( | float | dX, |
| float | dY, | ||
| float | dZ ) |
Adds translation to the current E3DTransformMatrix.
| dX | Translation along the X axis. |
| dY | Translation along the Y axis. |
| dZ | Translation along the Z axis. |
|
static |
Applies a E3DTransformMatrix to a EPointCloud, EMesh or (list of) E3DPoint.
If the second parameter is present, puts the transformed points in another point cloud or points list. With a single parameter, the transformation is performed in place.
| matrix | Transformation matrix. |
| sourcePoint | Point to transform. |
|
static |
Applies a E3DTransformMatrix to a EPointCloud, EMesh or (list of) E3DPoint.
If the second parameter is present, puts the transformed points in another point cloud or points list. With a single parameter, the transformation is performed in place.
| matrix | Transformation matrix. |
| mesh | Mesh to transform. |
| transformedMesh | Transformed mesh. |
|
static |
Applies a E3DTransformMatrix to a EPointCloud, EMesh or (list of) E3DPoint.
If the second parameter is present, puts the transformed points in another point cloud or points list. With a single parameter, the transformation is performed in place.
| matrix | Transformation matrix. |
| cloud | Cloud to transform. |
| transformedCloud | Transformed cloud. |
|
static |
Applies a E3DTransformMatrix to a EPointCloud, EMesh or (list of) E3DPoint.
If the second parameter is present, puts the transformed points in another point cloud or points list. With a single parameter, the transformation is performed in place.
| matrix | Transformation matrix. |
| sourcePoints | Points list to transform. |
| transformedPoints | Transformed points list. |
|
static |
Applies a E3DTransformMatrix to a EPointCloud, EMesh or (list of) E3DPoint.
If the second parameter is present, puts the transformed points in another point cloud or points list. With a single parameter, the transformation is performed in place.
| matrix | Transformation matrix. |
| mesh | Mesh to transform. |
|
static |
Applies a E3DTransformMatrix to a EPointCloud, EMesh or (list of) E3DPoint.
If the second parameter is present, puts the transformed points in another point cloud or points list. With a single parameter, the transformation is performed in place.
| matrix | Transformation matrix. |
| cloud | Cloud to transform. |
| eVision::Easy3D::E3DPoint eVision::Easy3D::EAffineTransformer::ApplyTransform | ( | const eVision::Easy3D::E3DPoint & | sourcePoint | ) | const |
Applies the current transformation to a EPointCloud, EMesh or list of E3DPoint.
If the second parameter is present, puts the transformed points in another point cloud or points list. With a single parameter, transformation is performed in place.
| sourcePoint | Point to transform. |
| void eVision::Easy3D::EAffineTransformer::ApplyTransform | ( | const eVision::Easy3D::EMesh & | mesh, |
| eVision::Easy3D::EMesh & | transformedMesh ) const |
Applies the current transformation to a EPointCloud, EMesh or list of E3DPoint.
If the second parameter is present, puts the transformed points in another point cloud or points list. With a single parameter, transformation is performed in place.
| mesh | Mesh to transform. |
| transformedMesh | Transformed mesh. |
| void eVision::Easy3D::EAffineTransformer::ApplyTransform | ( | const eVision::Easy3D::EPointCloud & | cloud, |
| eVision::Easy3D::EPointCloud & | transformedCloud ) const |
Applies the current transformation to a EPointCloud, EMesh or list of E3DPoint.
If the second parameter is present, puts the transformed points in another point cloud or points list. With a single parameter, transformation is performed in place.
| cloud | Cloud to transform. |
| transformedCloud | Transformed cloud. |
| void eVision::Easy3D::EAffineTransformer::ApplyTransform | ( | const std::vector< eVision::Easy3D::E3DPoint > & | sourcePoints, |
| std::vector< eVision::Easy3D::E3DPoint > & | transformedPoints ) const |
Applies the current transformation to a EPointCloud, EMesh or list of E3DPoint.
If the second parameter is present, puts the transformed points in another point cloud or points list. With a single parameter, transformation is performed in place.
| sourcePoints | Points list to transform. |
| transformedPoints | Transformed points list. |
| void eVision::Easy3D::EAffineTransformer::ApplyTransform | ( | eVision::Easy3D::EMesh & | mesh | ) | const |
Applies the current transformation to a EPointCloud, EMesh or list of E3DPoint.
If the second parameter is present, puts the transformed points in another point cloud or points list. With a single parameter, transformation is performed in place.
| mesh | Mesh to transform. |
| void eVision::Easy3D::EAffineTransformer::ApplyTransform | ( | eVision::Easy3D::EPointCloud & | cloud | ) | const |
Applies the current transformation to a EPointCloud, EMesh or list of E3DPoint.
If the second parameter is present, puts the transformed points in another point cloud or points list. With a single parameter, transformation is performed in place.
| cloud | Cloud to transform. |
|
static |
Creates an anisotropic scaling E3DTransformMatrix.
| scaleX | Scaling factor along the X axis. |
| scaleY | Scaling factor along the Y axis. |
| scaleZ | Scaling factor along the Z axis. |
|
static |
Creates an identity (neutral) E3DTransformMatrix.
|
static |
Creates an isotropic scaling E3DTransformMatrix.
| scale | Scaling factor. |
|
static |
Creates an orthographic projection E3DTransformMatrix.
| width | Width of the viewport. |
| height | Height of the viewport. |
|
static |
Creates a perspective projection E3DTransformMatrix.
| distance | Distance of the viewport to the origin. |
| width | Width of the viewport. |
| height | Height of the viewport. |
|
static |
Creates a rotation E3DTransformMatrix around the X axis.
| Angle | Rotation angle. |
|
static |
Creates a rotation E3DTransformMatrix around the Y axis.
| Angle | Rotation angle. |
|
static |
Creates a rotation E3DTransformMatrix around the Z axis.
| Angle | Rotation angle. |
|
static |
Creates a translation E3DTransformMatrix.
| dX | Translation along the X axis. |
| dY | Translation along the Y axis. |
| dZ | Translation along the Z axis. |
| const eVision::Easy3D::E3DTransformMatrix & eVision::Easy3D::EAffineTransformer::GetTransform | ( | ) | const |
Sets the E3DTransformMatrix that will be used.
| eVision::Easy3D::EAffineTransformer & eVision::Easy3D::EAffineTransformer::operator= | ( | const eVision::Easy3D::EAffineTransformer & | other | ) |
Assignment operator.
| other | Another EAffineTransformer. |
| void eVision::Easy3D::EAffineTransformer::Reset | ( | ) |
Resets the transformation E3DTransformMatrix to the identity.
| void eVision::Easy3D::EAffineTransformer::SetTransform | ( | const eVision::Easy3D::E3DTransformMatrix & | matrix | ) |
Sets the E3DTransformMatrix that will be used.
| CppWrapperInternal::WrappedClass eVision::Easy3D::EAffineTransformer::wrappedClass_ |