Atoms Crowd  4.1.0
AtomsCore::Poser Class Reference

Poser class. More...

#include <Poser.h>

Public Member Functions

 Poser (const Skeleton *skeleton)
 Constructor. More...
 
 ~Poser ()
 Destructor.
 
Matrix getWorldMatrix (const Pose &pose, unsigned int jointId) const
 Gets the joint world matrix. More...
 
std::vector< MatrixgetAllWorldMatrix (const Pose &pose) const
 Gets the world matrices of all the joints. More...
 
void getAllWorldMatrixInPlace (const Pose &pose, std::vector< Matrix > &poseMatrices) const
 Gets the world matrices of all the joints. More...
 
void getAllWorldMatrixInPlace (const Pose &pose, std::vector< Matrixf > &poseMatrices) const
 
Matrix getWorldBindMatrix (unsigned int jointId) const
 Gets the joint bind world matrix. More...
 
std::vector< MatrixgetAllWorldBindMatrix () const
 Gets the world bind matrices of all the joints. More...
 
void getAllWorldBindMatrixInPlace (std::vector< Matrix > &outMatrices) const
 Gets the world bind matrices of all the joints. More...
 
void setWorldMatrix (Pose &pose, const Matrix &matrix, unsigned short jointId) const
 Sets the joint world matrix. More...
 
const Skeletonskeleton () const
 Returns the skeleton. More...
 

Detailed Description

Poser class.

The poser is used to get and set the world matrices and world bind matrices of a pose. This class takes the data it needs from the given pose and skeleton.

Constructor & Destructor Documentation

◆ Poser()

AtomsCore::Poser::Poser ( const Skeleton skeleton)

Constructor.

Parameters
skeletonSkeleton

Member Function Documentation

◆ getAllWorldBindMatrix()

std::vector<Matrix> AtomsCore::Poser::getAllWorldBindMatrix ( ) const

Gets the world bind matrices of all the joints.

Parameters
posePose
Returns
Vector of world bind matrices

◆ getAllWorldBindMatrixInPlace()

void AtomsCore::Poser::getAllWorldBindMatrixInPlace ( std::vector< Matrix > &  outMatrices) const

Gets the world bind matrices of all the joints.

Parameters
posePose
poseMatriceVector of world bind matrices

◆ getAllWorldMatrix()

std::vector<Matrix> AtomsCore::Poser::getAllWorldMatrix ( const Pose pose) const

Gets the world matrices of all the joints.

Parameters
posePose
Returns
Vector of world matrices

◆ getAllWorldMatrixInPlace()

void AtomsCore::Poser::getAllWorldMatrixInPlace ( const Pose pose,
std::vector< Matrix > &  poseMatrices 
) const

Gets the world matrices of all the joints.

Parameters
posePose
poseMatricesOut vector of world matrices

◆ getWorldBindMatrix()

Matrix AtomsCore::Poser::getWorldBindMatrix ( unsigned int  jointId) const

Gets the joint bind world matrix.

Gets the joint bind world matrix

Parameters
jointIdJoint id
Returns
Joint bind world matrix

◆ getWorldMatrix()

Matrix AtomsCore::Poser::getWorldMatrix ( const Pose pose,
unsigned int  jointId 
) const

Gets the joint world matrix.

Gets the joint world matrix from the current pose

Parameters
posePose
jointIdJoint id
Returns
Joint world matrix

◆ setWorldMatrix()

void AtomsCore::Poser::setWorldMatrix ( Pose pose,
const Matrix matrix,
unsigned short  jointId 
) const

Sets the joint world matrix.

Set the joint world matrix in the pose

Parameters
posePose
Jointmatrix matrix
jointIdJoint id

◆ skeleton()

const Skeleton * AtomsCore::Poser::skeleton ( ) const
inline

Returns the skeleton.

Returns
Skeleton

The documentation for this class was generated from the following files: