#include <llkeyframemotionparam.h>
Inheritance diagram for LLKeyframeMotionParam:
Definition at line 51 of file llkeyframemotionparam.h.
typedef LLLinkedList< ParameterizedMotion > LLKeyframeMotionParam::motion_list_t [protected] |
Definition at line 146 of file llkeyframemotionparam.h.
typedef std::pair<LLMotion*, F32> LLKeyframeMotionParam::ParameterizedMotion [protected] |
Definition at line 129 of file llkeyframemotionparam.h.
LLKeyframeMotionParam::LLKeyframeMotionParam | ( | const LLUUID & | id | ) |
Definition at line 62 of file llkeyframemotionparam.cpp.
References LLJoint::LOW_PRIORITY, mCharacter, mDefaultKeyframeMotion, mDuration, mEaseInDuration, mEaseOutDuration, mJointStates, mPriority, and NULL.
Referenced by create().
LLKeyframeMotionParam::~LLKeyframeMotionParam | ( | ) | [virtual] |
BOOL LLKeyframeMotionParam::addKeyframeMotion | ( | char * | name, | |
const LLUUID & | id, | |||
char * | param, | |||
F32 | value | |||
) | [protected] |
Definition at line 300 of file llkeyframemotionparam.cpp.
References LLLinkedList< DATA_TYPE >::addDataSorted(), LLCharacter::createMotion(), FALSE, mCharacter, mParameterizedMotions, LLLinkedList< DATA_TYPE >::setInsertBefore(), LLMotion::setName(), sortFunc(), and TRUE.
Referenced by loadMotions().
Reimplemented from LLMotion.
Definition at line 68 of file llkeyframemotionparam.h.
References LLKeyframeMotionParam().
virtual LLMotionBlendType LLKeyframeMotionParam::getBlendType | ( | ) | [inline, virtual] |
Implements LLMotion.
Definition at line 100 of file llkeyframemotionparam.h.
References LLMotion::NORMAL_BLEND.
virtual F32 LLKeyframeMotionParam::getDuration | ( | ) | [inline, virtual] |
virtual F32 LLKeyframeMotionParam::getEaseInDuration | ( | ) | [inline, virtual] |
Implements LLMotion.
Definition at line 86 of file llkeyframemotionparam.h.
References mEaseInDuration.
virtual F32 LLKeyframeMotionParam::getEaseOutDuration | ( | ) | [inline, virtual] |
Implements LLMotion.
Definition at line 91 of file llkeyframemotionparam.h.
References mEaseOutDuration.
virtual BOOL LLKeyframeMotionParam::getLoop | ( | ) | [inline, virtual] |
virtual F32 LLKeyframeMotionParam::getMinPixelArea | ( | ) | [inline, virtual] |
Implements LLMotion.
Definition at line 103 of file llkeyframemotionparam.h.
References MIN_REQUIRED_PIXEL_AREA_KEYFRAME.
virtual LLPose* LLKeyframeMotionParam::getPose | ( | ) | [inline, virtual] |
Reimplemented from LLMotion.
Definition at line 123 of file llkeyframemotionparam.h.
References LLPoseBlender::getBlendedPose(), and mPoseBlender.
virtual LLJoint::JointPriority LLKeyframeMotionParam::getPriority | ( | ) | [inline, virtual] |
BOOL LLKeyframeMotionParam::loadMotions | ( | ) | [protected] |
Definition at line 354 of file llkeyframemotionparam.cpp.
References addKeyframeMotion(), FALSE, gAnimLibrary, gDirUtilp, LLCharacter::getAnimationPrefix(), LLDir::getExpandedFilename(), LLMotion::getName(), ll_apr_file_open(), LL_APR_R, LL_MAX_PATH, LL_PATH_MOTIONS, llassert, llendl, llinfos, mCharacter, p, S32, setDefaultKeyframeMotion(), LLAnimationLibrary::stringToAnimState(), and TRUE.
Referenced by onInitialize().
BOOL LLKeyframeMotionParam::onActivate | ( | ) | [virtual] |
Implements LLMotion.
Definition at line 150 of file llkeyframemotionparam.cpp.
References i, mParameterizedMotions, and TRUE.
void LLKeyframeMotionParam::onDeactivate | ( | ) | [virtual] |
Implements LLMotion.
Definition at line 285 of file llkeyframemotionparam.cpp.
References i, and mParameterizedMotions.
LLMotion::LLMotionInitStatus LLKeyframeMotionParam::onInitialize | ( | LLCharacter * | character | ) | [virtual] |
Implements LLMotion.
Definition at line 97 of file llkeyframemotionparam.cpp.
References LLPose::addJointState(), LLPoseBlender::addMotion(), LLPoseBlender::getBlendedPose(), LLPose::getFirstJointState(), LLPose::getNextJointState(), i, loadMotions(), mCharacter, mDuration, mEaseInDuration, mEaseOutDuration, mParameterizedMotions, mPoseBlender, mPriority, LLMotion::STATUS_FAILURE, and LLMotion::STATUS_SUCCESS.
Implements LLMotion.
Definition at line 167 of file llkeyframemotionparam.cpp.
References LLPoseBlender::blendAndApply(), f, LLCharacter::getAnimationData(), LLPoseBlender::getBlendedPose(), LLPose::getWeight(), i, llclamp(), llendl, llinfos, llwarns, mCharacter, mParameterizedMotions, mPoseBlender, NULL, LLPose::setWeight(), and TRUE.
void LLKeyframeMotionParam::setDefaultKeyframeMotion | ( | char * | ) | [protected] |
Definition at line 336 of file llkeyframemotionparam.cpp.
References i, mDefaultKeyframeMotion, and mParameterizedMotions.
Referenced by loadMotions().
BOOL LLKeyframeMotionParam::sortFunc | ( | ParameterizedMotion * | new_motion, | |
ParameterizedMotion * | tested_motion | |||
) | [static, protected] |
LLCharacter* LLKeyframeMotionParam::mCharacter [protected] |
Definition at line 150 of file llkeyframemotionparam.h.
Referenced by addKeyframeMotion(), LLKeyframeMotionParam(), loadMotions(), onInitialize(), and onUpdate().
LLMotion* LLKeyframeMotionParam::mDefaultKeyframeMotion [protected] |
Definition at line 149 of file llkeyframemotionparam.h.
Referenced by LLKeyframeMotionParam(), and setDefaultKeyframeMotion().
F32 LLKeyframeMotionParam::mDuration [protected] |
Definition at line 155 of file llkeyframemotionparam.h.
Referenced by getDuration(), LLKeyframeMotionParam(), and onInitialize().
F32 LLKeyframeMotionParam::mEaseInDuration [protected] |
Definition at line 153 of file llkeyframemotionparam.h.
Referenced by getEaseInDuration(), LLKeyframeMotionParam(), and onInitialize().
F32 LLKeyframeMotionParam::mEaseOutDuration [protected] |
Definition at line 154 of file llkeyframemotionparam.h.
Referenced by getEaseOutDuration(), LLKeyframeMotionParam(), and onInitialize().
LLJointState* LLKeyframeMotionParam::mJointStates [protected] |
LLAssocList<std::string, motion_list_t* > LLKeyframeMotionParam::mParameterizedMotions [protected] |
Definition at line 147 of file llkeyframemotionparam.h.
Referenced by addKeyframeMotion(), onActivate(), onDeactivate(), onInitialize(), onUpdate(), setDefaultKeyframeMotion(), and ~LLKeyframeMotionParam().
LLPoseBlender LLKeyframeMotionParam::mPoseBlender [protected] |
Definition at line 151 of file llkeyframemotionparam.h.
Referenced by getPose(), onInitialize(), and onUpdate().
Definition at line 156 of file llkeyframemotionparam.h.
Referenced by getPriority(), LLKeyframeMotionParam(), and onInitialize().
LLUUID LLKeyframeMotionParam::mTransactionID [protected] |
Definition at line 158 of file llkeyframemotionparam.h.