eVision C++ API 26.10.0-beta.2.dev
Loading...
Searching...
No Matches
eVision::Easy3D::EAffineTransformer Class Reference

Manages a 3D coordinates transformation context. More...

#include <eVision/Easy3D/EAffineTransformer.h>

Collaboration diagram for eVision::Easy3D::EAffineTransformer:

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)

Static Public Member Functions

static void ApplyMatrix (const eVision::Easy3D::E3DTransformMatrix &matrix, const eVision::Easy3D::EPointCloud &cloud, eVision::Easy3D::EPointCloud &transformedCloud)
 Applies a E3DTransformMatrix to a EPointCloud, EMesh or (list of) E3DPoint.
static void ApplyMatrix (const eVision::Easy3D::E3DTransformMatrix &matrix, eVision::Easy3D::EPointCloud &cloud)
 Applies a E3DTransformMatrix to a EPointCloud, EMesh or (list of) E3DPoint.
static void ApplyMatrix (const eVision::Easy3D::E3DTransformMatrix &matrix, const std::vector< eVision::Easy3D::E3DPoint > &sourcePoints, std::vector< eVision::Easy3D::E3DPoint > &transformedPoints)
 Applies a E3DTransformMatrix to a EPointCloud, EMesh or (list of) E3DPoint.
static void ApplyMatrix (const eVision::Easy3D::E3DTransformMatrix &matrix, const eVision::Easy3D::EMesh &mesh, eVision::Easy3D::EMesh &transformedMesh)
 Applies a E3DTransformMatrix to a EPointCloud, EMesh or (list of) E3DPoint.
static void ApplyMatrix (const eVision::Easy3D::E3DTransformMatrix &matrix, eVision::Easy3D::EMesh &mesh)
 Applies a E3DTransformMatrix to a EPointCloud, EMesh or (list of) E3DPoint.
static eVision::Easy3D::E3DPoint ApplyMatrix (const eVision::Easy3D::E3DTransformMatrix &matrix, const eVision::Easy3D::E3DPoint &sourcePoint)
 Applies a E3DTransformMatrix to a EPointCloud, EMesh or (list of) E3DPoint.
static eVision::Easy3D::E3DTransformMatrix CreateIdentityMatrix ()
 Creates an identity (neutral) E3DTransformMatrix.
static eVision::Easy3D::E3DTransformMatrix CreateRotationXMatrix (float Angle)
 Creates a rotation E3DTransformMatrix around the X axis.
static eVision::Easy3D::E3DTransformMatrix CreateRotationYMatrix (float Angle)
 Creates a rotation E3DTransformMatrix around the Y axis.
static eVision::Easy3D::E3DTransformMatrix CreateRotationZMatrix (float Angle)
 Creates a rotation E3DTransformMatrix around the Z axis.
static eVision::Easy3D::E3DTransformMatrix CreateTranslationMatrix (float dX, float dY, float dZ)
 Creates a translation E3DTransformMatrix.
static eVision::Easy3D::E3DTransformMatrix CreateIsotropicScalingMatrix (float scale)
 Creates an isotropic scaling E3DTransformMatrix.
static eVision::Easy3D::E3DTransformMatrix CreateAnisotropicScalingMatrix (float scaleX, float scaleY, float scaleZ)
 Creates an anisotropic scaling E3DTransformMatrix.
static eVision::Easy3D::E3DTransformMatrix CreatePerspectiveProjectionMatrix (float distance, float width, float height)
 Creates a perspective projection E3DTransformMatrix.
static eVision::Easy3D::E3DTransformMatrix CreateOrthographicProjectionMatrix (float width, float height)
 Creates an orthographic projection E3DTransformMatrix.

Public Attributes

CppWrapperInternal::WrappedClass wrappedClass_

Detailed Description

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

Constructor & Destructor Documentation

◆ EAffineTransformer() [1/3]

eVision::Easy3D::EAffineTransformer::EAffineTransformer ( )

Creates an EAffineTransformer object.

◆ EAffineTransformer() [2/3]

eVision::Easy3D::EAffineTransformer::EAffineTransformer ( const eVision::Easy3D::EAffineTransformer & other)

Copy constructor of an EAffineTransformer object.

Parameters
otherAnother EAffineTransformer.

◆ ~EAffineTransformer()

eVision::Easy3D::EAffineTransformer::~EAffineTransformer ( )
throw ( )
virtual

◆ EAffineTransformer() [3/3]

eVision::Easy3D::EAffineTransformer::EAffineTransformer ( CppWrapperInternal::InternalConstructor )

Member Function Documentation

◆ AddAnisotropicScalingTransform()

const eVision::Easy3D::E3DTransformMatrix & eVision::Easy3D::EAffineTransformer::AddAnisotropicScalingTransform ( float scaleX,
float scaleY,
float scaleZ )

Adds anisotropic scaling to the current E3DTransformMatrix.

Parameters
scaleXScaling factor along the X axis.
scaleYScaling factor along the Y axis.
scaleZScaling factor along the Z axis.

◆ AddIsotropicScalingTransform()

const eVision::Easy3D::E3DTransformMatrix & eVision::Easy3D::EAffineTransformer::AddIsotropicScalingTransform ( float scale)

Adds isotropic scaling to the current E3DTransformMatrix.

Parameters
scaleScaling factor.

◆ AddOrthographicProjectionTransform()

const eVision::Easy3D::E3DTransformMatrix & eVision::Easy3D::EAffineTransformer::AddOrthographicProjectionTransform ( float width,
float height )

Adds an orthographic projection to the current E3DTransformMatrix.

Parameters
widthWidth of the viewport.
heightHeight of the viewport.

◆ AddPerspectiveProjectionTransform()

const eVision::Easy3D::E3DTransformMatrix & eVision::Easy3D::EAffineTransformer::AddPerspectiveProjectionTransform ( float distance,
float width,
float height )

Adds a perspective projection to the current E3DTransformMatrix.

Parameters
distanceDistance of the viewport to the origin.
widthWidth of the viewport.
heightHeight of the viewport.

◆ AddRotationXTransform()

const eVision::Easy3D::E3DTransformMatrix & eVision::Easy3D::EAffineTransformer::AddRotationXTransform ( float Angle)

Adds rotation around the X axis to the current E3DTransformMatrix.

Parameters
AngleRotation angle.

◆ AddRotationYTransform()

const eVision::Easy3D::E3DTransformMatrix & eVision::Easy3D::EAffineTransformer::AddRotationYTransform ( float Angle)

Adds rotation around the Y axis to the current E3DTransformMatrix.

Parameters
AngleRotation angle.

◆ AddRotationZTransform()

const eVision::Easy3D::E3DTransformMatrix & eVision::Easy3D::EAffineTransformer::AddRotationZTransform ( float Angle)

Adds rotation around the Z axis to the current E3DTransformMatrix.

Parameters
AngleRotation angle.

◆ AddTransform()

const eVision::Easy3D::E3DTransformMatrix & eVision::Easy3D::EAffineTransformer::AddTransform ( const eVision::Easy3D::E3DTransformMatrix & matrix)

Composes a custom transformation with the current E3DTransformMatrix.

Parameters
matrixTransformation matrix.

◆ AddTranslationTransform()

const eVision::Easy3D::E3DTransformMatrix & eVision::Easy3D::EAffineTransformer::AddTranslationTransform ( float dX,
float dY,
float dZ )

Adds translation to the current E3DTransformMatrix.

Parameters
dXTranslation along the X axis.
dYTranslation along the Y axis.
dZTranslation along the Z axis.

◆ ApplyMatrix() [1/6]

eVision::Easy3D::E3DPoint eVision::Easy3D::EAffineTransformer::ApplyMatrix ( const eVision::Easy3D::E3DTransformMatrix & matrix,
const eVision::Easy3D::E3DPoint & sourcePoint )
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.

Parameters
matrixTransformation matrix.
sourcePointPoint to transform.

◆ ApplyMatrix() [2/6]

void eVision::Easy3D::EAffineTransformer::ApplyMatrix ( const eVision::Easy3D::E3DTransformMatrix & matrix,
const eVision::Easy3D::EMesh & mesh,
eVision::Easy3D::EMesh & transformedMesh )
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.

Parameters
matrixTransformation matrix.
meshMesh to transform.
transformedMeshTransformed mesh.

◆ ApplyMatrix() [3/6]

void eVision::Easy3D::EAffineTransformer::ApplyMatrix ( const eVision::Easy3D::E3DTransformMatrix & matrix,
const eVision::Easy3D::EPointCloud & cloud,
eVision::Easy3D::EPointCloud & transformedCloud )
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.

Parameters
matrixTransformation matrix.
cloudCloud to transform.
transformedCloudTransformed cloud.

◆ ApplyMatrix() [4/6]

void eVision::Easy3D::EAffineTransformer::ApplyMatrix ( const eVision::Easy3D::E3DTransformMatrix & matrix,
const std::vector< eVision::Easy3D::E3DPoint > & sourcePoints,
std::vector< eVision::Easy3D::E3DPoint > & transformedPoints )
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.

Parameters
matrixTransformation matrix.
sourcePointsPoints list to transform.
transformedPointsTransformed points list.

◆ ApplyMatrix() [5/6]

void eVision::Easy3D::EAffineTransformer::ApplyMatrix ( const eVision::Easy3D::E3DTransformMatrix & matrix,
eVision::Easy3D::EMesh & 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.

Parameters
matrixTransformation matrix.
meshMesh to transform.

◆ ApplyMatrix() [6/6]

void eVision::Easy3D::EAffineTransformer::ApplyMatrix ( const eVision::Easy3D::E3DTransformMatrix & matrix,
eVision::Easy3D::EPointCloud & 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.

Parameters
matrixTransformation matrix.
cloudCloud to transform.

◆ ApplyTransform() [1/6]

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.

Parameters
sourcePointPoint to transform.

◆ ApplyTransform() [2/6]

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.

Parameters
meshMesh to transform.
transformedMeshTransformed mesh.

◆ ApplyTransform() [3/6]

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.

Parameters
cloudCloud to transform.
transformedCloudTransformed cloud.

◆ ApplyTransform() [4/6]

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.

Parameters
sourcePointsPoints list to transform.
transformedPointsTransformed points list.

◆ ApplyTransform() [5/6]

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.

Parameters
meshMesh to transform.

◆ ApplyTransform() [6/6]

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.

Parameters
cloudCloud to transform.

◆ CreateAnisotropicScalingMatrix()

eVision::Easy3D::E3DTransformMatrix eVision::Easy3D::EAffineTransformer::CreateAnisotropicScalingMatrix ( float scaleX,
float scaleY,
float scaleZ )
static

Creates an anisotropic scaling E3DTransformMatrix.

Parameters
scaleXScaling factor along the X axis.
scaleYScaling factor along the Y axis.
scaleZScaling factor along the Z axis.

◆ CreateIdentityMatrix()

eVision::Easy3D::E3DTransformMatrix eVision::Easy3D::EAffineTransformer::CreateIdentityMatrix ( )
static

Creates an identity (neutral) E3DTransformMatrix.

◆ CreateIsotropicScalingMatrix()

eVision::Easy3D::E3DTransformMatrix eVision::Easy3D::EAffineTransformer::CreateIsotropicScalingMatrix ( float scale)
static

Creates an isotropic scaling E3DTransformMatrix.

Parameters
scaleScaling factor.

◆ CreateOrthographicProjectionMatrix()

eVision::Easy3D::E3DTransformMatrix eVision::Easy3D::EAffineTransformer::CreateOrthographicProjectionMatrix ( float width,
float height )
static

Creates an orthographic projection E3DTransformMatrix.

Parameters
widthWidth of the viewport.
heightHeight of the viewport.

◆ CreatePerspectiveProjectionMatrix()

eVision::Easy3D::E3DTransformMatrix eVision::Easy3D::EAffineTransformer::CreatePerspectiveProjectionMatrix ( float distance,
float width,
float height )
static

Creates a perspective projection E3DTransformMatrix.

Parameters
distanceDistance of the viewport to the origin.
widthWidth of the viewport.
heightHeight of the viewport.

◆ CreateRotationXMatrix()

eVision::Easy3D::E3DTransformMatrix eVision::Easy3D::EAffineTransformer::CreateRotationXMatrix ( float Angle)
static

Creates a rotation E3DTransformMatrix around the X axis.

Parameters
AngleRotation angle.

◆ CreateRotationYMatrix()

eVision::Easy3D::E3DTransformMatrix eVision::Easy3D::EAffineTransformer::CreateRotationYMatrix ( float Angle)
static

Creates a rotation E3DTransformMatrix around the Y axis.

Parameters
AngleRotation angle.

◆ CreateRotationZMatrix()

eVision::Easy3D::E3DTransformMatrix eVision::Easy3D::EAffineTransformer::CreateRotationZMatrix ( float Angle)
static

Creates a rotation E3DTransformMatrix around the Z axis.

Parameters
AngleRotation angle.

◆ CreateTranslationMatrix()

eVision::Easy3D::E3DTransformMatrix eVision::Easy3D::EAffineTransformer::CreateTranslationMatrix ( float dX,
float dY,
float dZ )
static

Creates a translation E3DTransformMatrix.

Parameters
dXTranslation along the X axis.
dYTranslation along the Y axis.
dZTranslation along the Z axis.

◆ GetTransform()

const eVision::Easy3D::E3DTransformMatrix & eVision::Easy3D::EAffineTransformer::GetTransform ( ) const

Sets the E3DTransformMatrix that will be used.

◆ operator=()

eVision::Easy3D::EAffineTransformer & eVision::Easy3D::EAffineTransformer::operator= ( const eVision::Easy3D::EAffineTransformer & other)

Assignment operator.

Parameters
otherAnother EAffineTransformer.

◆ Reset()

void eVision::Easy3D::EAffineTransformer::Reset ( )

Resets the transformation E3DTransformMatrix to the identity.

◆ SetTransform()

void eVision::Easy3D::EAffineTransformer::SetTransform ( const eVision::Easy3D::E3DTransformMatrix & matrix)

Sets the E3DTransformMatrix that will be used.

Member Data Documentation

◆ wrappedClass_

CppWrapperInternal::WrappedClass eVision::Easy3D::EAffineTransformer::wrappedClass_