Atoms Crowd
4.1.0
|
Animation clip. More...
#include <AnimationClip.h>
Public Member Functions | |
AnimationClip () | |
Constructor. | |
AnimationClip (const unsigned int numberOfJoints, const unsigned int numberOfFrames, const double fps) | |
~AnimationClip () | |
Destructor. | |
int | numJoints () const |
Gets the number of joints. | |
int | numFrames () const |
Gets the number of frames. | |
void | setNumFrames (const unsigned int numberOfFrames) |
Sets the number of frames. | |
double | fps () const |
Gets the frame per second. | |
void | setFps (double value) |
Sets the frame per second. | |
unsigned int | mapTimeToFrame (const double time, double &reminder) const |
Maps time to frame. | |
void | setJointName (const unsigned int index, const std::string &jointName) |
Sets the joint name. | |
int | jointId (const std::string &jointName) const |
Get joint index from joint name. | |
JointClipData & | operator[] (unsigned short index) |
Gets joint clip data. | |
const JointClipData & | operator[] (unsigned short index) const |
Gets joint clip data. | |
JointClipData & | at (unsigned short index) |
Gets joint clip data. | |
const JointClipData & | at (unsigned short index) const |
Gets joint clip data. | |
AtomsCore::MapMetadata & | metadata () |
Gets metadata map. | |
const AtomsCore::MapMetadata & | metadata () const |
Gets metadata map. | |
void | setDirection (const AtomsCore::Vector3 &direction) |
Sets the clip direction. | |
AtomsCore::Vector3 | direction () const |
Gets the clip direction. | |
void | setDirectionType (unsigned int directionType) |
Sets the clip direction type. | |
unsigned int | directionType () const |
Gets the clip direction type. | |
void | setDirectionFromJoints (unsigned int fromJoint, unsigned int toJoint) |
Sets the two joint ids used for evaluating the direction when the direction type is set to kJoints. | |
const std::pair< unsigned int, unsigned int > & | directionFromJoints () const |
Gets the two joint ids used for evaluating the direction when the direction type is set to kJoints. | |
void | disableFootLock (bool value) |
Sets the clip foot lock state. | |
bool | isFootLockDisabled () const |
Returns false if the the foot lock is disabled. | |
const std::vector< int > & | transitionFrames () const |
Gets the transition frames. | |
void | setTransitionFrames (const std::vector< int > &frames) |
Get the transition frames. | |
void | setCompatibleAgentType (const std::string &agentType) |
Set compatible agent type name. | |
const std::string & | getCompatibleAgentType () const |
Get compatible agent type name. | |
void | setGlobalIKData (const std::string &jointName, const AtomsCore::Vector2ArrayMetadata &data) |
Set global ik data for a specific joint. | |
void | setPerchingData (const AtomsCore::Vector2ArrayMetadata &data) |
Set perching data on the joint root. | |
void | setSittingData (const AtomsCore::Vector2ArrayMetadata &data) |
Set perching data on the joint root. | |
void | setFootDownData (const std::string &jointName, const AtomsCore::Vector2ArrayMetadata &data) |
Set foot data for a specific joint. | |
void | addJointMetadata (const std::string &metadataName, const std::string &jointName, const int metadataType, const AtomsCore::Vector2ArrayMetadata &data) |
Add a joint metadata. | |
void | setAdditiveMode (const unsigned int additiveMode) |
Set the additive mode. | |
void | setAdditiveReferenceClip (const std::string &clipName) |
Set additive reference clip. | |
unsigned int | additiveMode () const |
Gets the clip additive mode. | |
const std::string & | additiveReferenceClip () const |
Gets the clip additive mode. | |
void | cacheFrameRootRotation (const std::string &agentType) |
Cache frame root rotation. | |
void | computeClipDirections (const std::string &agentType, std::vector< AtomsCore::Vector3 > &directions) const |
Compute and returns the clip directions. | |
void | computePelvisAndFeetHeight (double height) |
COmpute the the pelvis and feet height. | |
void | reverse () |
Reverse clip. | |
void | computeMirror (const unsigned int animMirrorPlane, const unsigned int bindMirrorPlane, const unsigned int searchMode, const std::string &left, const std::string &right, const bool rawMirror=false) |
Compute the mirror of the clip in the given mirror plane. | |
void | computeAnimatedJoints () |
Compute the animated joints. | |
void | sanitizeJointNames () |
Sanitize joint names. | |
double | computeAverageVelocity () const |
Get the mean velocity of this clip. | |
double | computeAverageAngularVelocity () const |
Get the mean angular velocity of this clip. | |
AtomsCore::Matrix | clipJointWorldMatrix (const AtomsCore::Skeleton &skeleton, int clampedFrame, double weight, AtomsCore::JointCPtr pelvisJoint) const |
Get a world matrix form the clip. | |
void | conformFootDownDataForLocomotion () |
Conforms the foot down data for locomotion. | |
Animation clip.