LLKeyframeMotionParam Class Reference

#include <llkeyframemotionparam.h>

Inheritance diagram for LLKeyframeMotionParam:

Inheritance graph
[legend]
Collaboration diagram for LLKeyframeMotionParam:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 LLKeyframeMotionParam (const LLUUID &id)
virtual ~LLKeyframeMotionParam ()
virtual BOOL getLoop ()
virtual F32 getDuration ()
virtual F32 getEaseInDuration ()
virtual F32 getEaseOutDuration ()
virtual LLJoint::JointPriority getPriority ()
virtual LLMotionBlendType getBlendType ()
virtual F32 getMinPixelArea ()
virtual LLMotionInitStatus onInitialize (LLCharacter *character)
virtual BOOL onActivate ()
virtual BOOL onUpdate (F32 time, U8 *joint_mask)
virtual void onDeactivate ()
virtual LLPosegetPose ()

Static Public Member Functions

static LLMotioncreate (const LLUUID &id)

Protected Types

typedef std::pair< LLMotion *,
F32
ParameterizedMotion
typedef LLLinkedList< ParameterizedMotionmotion_list_t

Protected Member Functions

BOOL addKeyframeMotion (char *name, const LLUUID &id, char *param, F32 value)
void setDefaultKeyframeMotion (char *)
BOOL loadMotions ()

Static Protected Member Functions

static BOOL sortFunc (ParameterizedMotion *new_motion, ParameterizedMotion *tested_motion)

Protected Attributes

LLAssocList< std::string,
motion_list_t * > 
mParameterizedMotions
LLJointStatemJointStates
LLMotionmDefaultKeyframeMotion
LLCharactermCharacter
LLPoseBlender mPoseBlender
F32 mEaseInDuration
F32 mEaseOutDuration
F32 mDuration
LLJoint::JointPriority mPriority
LLUUID mTransactionID

Detailed Description

Definition at line 51 of file llkeyframemotionparam.h.


Member Typedef Documentation

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.


Constructor & Destructor Documentation

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]

Definition at line 79 of file llkeyframemotionparam.cpp.

References i, and mParameterizedMotions.


Member Function Documentation

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().

static LLMotion* LLKeyframeMotionParam::create ( const LLUUID id  )  [inline, static]

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]

Implements LLMotion.

Definition at line 81 of file llkeyframemotionparam.h.

References mDuration.

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]

Implements LLMotion.

Definition at line 76 of file llkeyframemotionparam.h.

References TRUE.

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]

Implements LLMotion.

Definition at line 96 of file llkeyframemotionparam.h.

References mPriority.

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.

BOOL LLKeyframeMotionParam::onUpdate ( F32  time,
U8 joint_mask 
) [virtual]

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]

Definition at line 53 of file llkeyframemotionparam.cpp.

Referenced by addKeyframeMotion().


Member Data Documentation

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]

Definition at line 148 of file llkeyframemotionparam.h.

Referenced by LLKeyframeMotionParam().

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().

LLJoint::JointPriority LLKeyframeMotionParam::mPriority [protected]

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.


The documentation for this class was generated from the following files:
Generated on Thu Jul 1 06:11:27 2010 for Second Life Viewer by  doxygen 1.4.7