Atoms Crowd  7.0.0
Atoms::JointClipData Class Reference

Joint Clip data. More...

#include <AnimationClip.h>

Public Member Functions

 JointClipData (const unsigned int numberOfFrames)
 Cosntructor. More...
 
 ~JointClipData ()
 Destructr.
 
const std::string & name () const
 Gets name. More...
 
void setName (const std::string &name)
 Sets name. More...
 
unsigned int getNumberOfFrames ()
 get number of frames More...
 
void setNumberOfFrames (const int value)
 set number of frames
 
void setTranslation (const AtomsCore::Vector3 &translation, const unsigned int frame)
 Sets translation at frame.
 
void setRotation (const AtomsCore::Quaternion &rotation, const unsigned int frame)
 Sets rotation at frame.
 
void setScale (const AtomsCore::Vector3 &scale, const unsigned int frame)
 Sets scale at frame.
 
const AtomsCore::Vector3getTranslation (const unsigned int frame) const
 Gets translation at frame.
 
const AtomsCore::QuaterniongetRotation (const unsigned int frame) const
 Gets rotation at frame.
 
const AtomsCore::Vector3getScale (const unsigned int frame) const
 Gets scale at frame.
 
AtomsCore::Vector3 getBlendedTranslation (const unsigned int initialFrame, const unsigned int finalFrame, const double weight) const
 Gets blended translation between two frames.
 
AtomsCore::Quaternion getBlendedRotation (const unsigned int initialFrame, const unsigned int finalFrame, const double weight) const
 Gets blended rotation between two frames.
 
AtomsCore::Vector3 getBlendedScale (const unsigned int initialFrame, const unsigned int finalFrame, const double weight) const
 Gets blended scale between two frames.
 
void getBlendedTranslationInPlace (AtomsCore::Vector3 &out, const unsigned int initialFrame, const unsigned int finalFrame, const double weight) const
 Gets blended translation between two frames.
 
void getBlendedRotationInPlace (AtomsCore::Quaternion &out, const unsigned int initialFrame, const unsigned int finalFrame, const double weight) const
 Gets blended rotation between two frames.
 
void getBlendedScaleInPlace (AtomsCore::Vector3 &out, const unsigned int initialFrame, const unsigned int finalFrame, const double weight) const
 Gets blended scale between two frames.
 
unsigned int getArrayMetadataType (const std::string &name) const
 
template<class T >
void setArrayMetadataValue (const std::string &name, const unsigned int frame, T value)
 
AtomsPtr< AtomsCore::MetadatagetArrayMetadataAtFrame (const std::string &name, const unsigned int frame) const
 
template<class T >
getArrayMetadataValueAtFrame (const std::string &name, const unsigned int frame) const
 
AtomsPtr< AtomsCore::MetadatagetBlendedArrayMetadata (const std::string &name, const unsigned int initialFrame, const unsigned int finalFrame, const double weight) const
 
bool getBlendedArrayMetadataInPlace (const std::string &name, const unsigned int initialFrame, const unsigned int finalFrame, const double weight, AtomsPtr< AtomsCore::Metadata > &OutMeta) const
 
template<class T >
getBlendedArrayMetadataValue (const std::string &name, const unsigned int initialFrame, const unsigned int finalFrame, const double weight) const
 
AtomsPtr< AtomsCore::MetadatagetDoubleBlendedArrayMetadata (const std::string &name, const unsigned int initialFrame1, const unsigned int finalFrame1, const double weight1, const unsigned int initialFrame2, const unsigned int finalFrame2, const double weight2, const double finalWeight) const
 
bool getDoubleBlendedArrayMetadataInPlace (const std::string &name, const unsigned int initialFrame1, const unsigned int finalFrame1, const double weight1, const unsigned int initialFrame2, const unsigned int finalFrame2, const double weight2, const double finalWeight, AtomsPtr< AtomsCore::Metadata > &OutMeta) const
 
std::vector< std::string > getArrayMetadataNames () const
 
template<class T >
void addArrayMetadata (const std::string &name, const bool force=false)
 
template<typename T , typename V >
void getArrayMetadataValues (const std::string &name, std::vector< V > &values)
 
AtomsPtr< AtomsCore::BaseTypedArrayMetadatagetArrayMetadata (const std::string &name)
 
void addArrayMetadata (const std::string &name, AtomsPtr< AtomsCore::BaseTypedArrayMetadata > &data)
 
bool hasArrayMetadata (const std::string &name) const
 
void deleteArrayMetadata (const std::string &name)
 
std::vector< std::string > getStaticMetadataNames () const
 
void setStaticMetadata (const std::string &name, AtomsCore::Metadata &metadata)
 
AtomsPtr< AtomsCore::MetadatagetStaticMetadata (const std::string &name)
 
AtomsPtr< const AtomsCore::MetadatagetStaticMetadata (const std::string &name) const
 
AtomsCore::MapMetadatastaticMetadata ()
 
const AtomsCore::MapMetadatastaticMetadata () const
 
std::map< std::string, AtomsPtr< AtomsCore::BaseTypedArrayMetadata > > & metadata ()
 
const std::map< std::string, AtomsPtr< AtomsCore::BaseTypedArrayMetadata > > & metadata () const
 
void reverse ()
 
void computeIsAnimated ()
 
bool isTransformAnimated () const
 
const std::vector< std::string > & animatedMetadata () const
 
void addAnimatedMetadata (const std::string &metadataName)
 
void copyFrame (unsigned int from, unsigned int to)
 

Static Public Member Functions

static bool getBindPoseData (const Atoms::JointClipData &jcd, int jointId, AtomsCore::Vector3 &bindTranslate, AtomsCore::Vector3 &bindScale, AtomsCore::Quaternion &bindRotate, AtomsCore::Quaternion &bindRotateOffset, const AtomsCore::Skeleton &skeleton)
 
static bool getBindPoseData (const AtomsCore::MapMetadata &jcd, int jointId, AtomsCore::Vector3 &bindTranslate, AtomsCore::Vector3 &bindScale, AtomsCore::Quaternion &bindRotate, AtomsCore::Quaternion &bindRotateOffset, const AtomsCore::Skeleton &skeleton)
 

Detailed Description

Joint Clip data.

Stores the animation data and metadata for a joint

Constructor & Destructor Documentation

◆ JointClipData()

Atoms::JointClipData::JointClipData ( const unsigned int  numberOfFrames)

Cosntructor.

Parameters
animationClipAnimation clip
numberOfFramesNumber of frames

Member Function Documentation

◆ getNumberOfFrames()

unsigned int Atoms::JointClipData::getNumberOfFrames ( )
inline

get number of frames

Parameters
getnumbers of frames

◆ name()

const std::string & Atoms::JointClipData::name ( ) const
inline

Gets name.

Returns
name

◆ setName()

void Atoms::JointClipData::setName ( const std::string &  name)
inline

Sets name.

Parameters
name

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