LLKeyframeStandMotion Class Reference

#include <llkeyframestandmotion.h>

Inheritance diagram for LLKeyframeStandMotion:

Inheritance graph
[legend]
Collaboration diagram for LLKeyframeStandMotion:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 LLKeyframeStandMotion (const LLUUID &id)
virtual ~LLKeyframeStandMotion ()
virtual LLMotionInitStatus onInitialize (LLCharacter *character)
virtual BOOL onActivate ()
void onDeactivate ()
virtual BOOL onUpdate (F32 time, U8 *joint_mask)

Static Public Member Functions

static LLMotioncreate (const LLUUID &id)

Public Attributes

LLCharactermCharacter
BOOL mFlipFeet
LLJointStatemPelvisState
LLJointStatemHipLeftState
LLJointStatemKneeLeftState
LLJointStatemAnkleLeftState
LLJointStatemHipRightState
LLJointStatemKneeRightState
LLJointStatemAnkleRightState
LLJoint mPelvisJoint
LLJoint mHipLeftJoint
LLJoint mKneeLeftJoint
LLJoint mAnkleLeftJoint
LLJoint mTargetLeft
LLJoint mHipRightJoint
LLJoint mKneeRightJoint
LLJoint mAnkleRightJoint
LLJoint mTargetRight
LLJointSolverRP3 mIKLeft
LLJointSolverRP3 mIKRight
LLVector3 mPositionLeft
LLVector3 mPositionRight
LLVector3 mNormalLeft
LLVector3 mNormalRight
LLQuaternion mRotationLeft
LLQuaternion mRotationRight
LLQuaternion mLastGoodPelvisRotation
LLVector3 mLastGoodPosition
BOOL mTrackAnkles
S32 mFrameNum

Detailed Description

Definition at line 45 of file llkeyframestandmotion.h.


Constructor & Destructor Documentation

LLKeyframeStandMotion::LLKeyframeStandMotion ( const LLUUID id  ) 

Definition at line 52 of file llkeyframestandmotion.cpp.

References LLJoint::addChild(), FALSE, mAnkleLeftJoint, mAnkleLeftState, mAnkleRightJoint, mAnkleRightState, mCharacter, mFlipFeet, mFrameNum, mHipLeftJoint, mHipLeftState, mHipRightJoint, mHipRightState, mKneeLeftJoint, mKneeLeftState, mKneeRightJoint, mKneeRightState, mPelvisJoint, mPelvisState, mTrackAnkles, NULL, and TRUE.

Referenced by create().

LLKeyframeStandMotion::~LLKeyframeStandMotion (  )  [virtual]

Definition at line 85 of file llkeyframestandmotion.cpp.


Member Function Documentation

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

Reimplemented from LLKeyframeMotion.

Definition at line 62 of file llkeyframestandmotion.h.

References LLKeyframeStandMotion().

Referenced by LLVOAvatar::LLVOAvatar().

BOOL LLKeyframeStandMotion::onActivate (  )  [virtual]

Reimplemented from LLKeyframeMotion.

Definition at line 137 of file llkeyframestandmotion.cpp.

References LLVector3::clearVec(), f, LLQuaternion::loadIdentity(), mFrameNum, mIKLeft, mIKRight, mLastGoodPelvisRotation, mLastGoodPosition, LLKeyframeMotion::onActivate(), LLJointSolverRP3::setBAxis(), and LLJointSolverRP3::setPoleVector().

void LLKeyframeStandMotion::onDeactivate (  )  [virtual]

Reimplemented from LLKeyframeMotion.

Definition at line 158 of file llkeyframestandmotion.cpp.

References LLKeyframeMotion::onDeactivate().

LLMotion::LLMotionInitStatus LLKeyframeStandMotion::onInitialize ( LLCharacter character  )  [virtual]

Reimplemented from LLKeyframeMotion.

Definition at line 93 of file llkeyframestandmotion.cpp.

References FALSE, LLPose::findJointState(), LLMotion::getName(), LLMotion::getPose(), llendl, llinfos, mAnkleLeftState, mAnkleRightState, mCharacter, mFlipFeet, mHipLeftState, mHipRightState, mKneeLeftState, mKneeRightState, mPelvisState, LLKeyframeMotion::onInitialize(), LLMotion::STATUS_FAILURE, and LLMotion::STATUS_SUCCESS.

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

Reimplemented from LLKeyframeMotion.

Definition at line 166 of file llkeyframestandmotion.cpp.

References dot(), FALSE, LLCharacter::getCharacterPosition(), LLMatrix4::getFwdRow4(), LLCharacter::getGround(), LLJointState::getJoint(), LLJoint::getParent(), LLJoint::getPosition(), LLJointState::getPosition(), LLJoint::getRotation(), LLJointState::getRotation(), LLJoint::getScale(), LLPose::getWeight(), LLJoint::getWorldMatrix(), LLJoint::getWorldPosition(), LLJoint::getWorldRotation(), LLVector3::isExactlyZero(), left, mAnkleLeftJoint, mAnkleLeftState, mAnkleRightJoint, mAnkleRightState, mCharacter, mFlipFeet, mFrameNum, mHipLeftJoint, mHipLeftState, mHipRightJoint, mHipRightState, mIKLeft, mIKRight, mKneeLeftJoint, mKneeLeftState, mKneeRightJoint, mKneeRightState, mLastGoodPelvisRotation, mLastGoodPosition, mNormalLeft, mNormalRight, mPelvisJoint, mPelvisState, LLMotion::mPose, mPositionLeft, mPositionRight, mRotationLeft, mRotationRight, mTargetLeft, mTargetRight, mTrackAnkles, LLQuaternion::normQuat(), LLVector3::normVec(), LLKeyframeMotion::onUpdate(), POSITION_THRESHOLD, ROTATION_THRESHOLD, LLJoint::setPosition(), LLJointState::setRotation(), LLJoint::setRotation(), LLJoint::setScale(), LLJointSolverRP3::setupJoints(), LLJoint::setWorldRotation(), LLJointSolverRP3::solve(), TRUE, and vec4to3().


Member Data Documentation

LLJoint LLKeyframeStandMotion::mAnkleLeftJoint

Definition at line 95 of file llkeyframestandmotion.h.

Referenced by LLKeyframeStandMotion(), and onUpdate().

LLJointState* LLKeyframeStandMotion::mAnkleLeftState

Definition at line 85 of file llkeyframestandmotion.h.

Referenced by LLKeyframeStandMotion(), onInitialize(), and onUpdate().

LLJoint LLKeyframeStandMotion::mAnkleRightJoint

Definition at line 100 of file llkeyframestandmotion.h.

Referenced by LLKeyframeStandMotion(), and onUpdate().

LLJointState* LLKeyframeStandMotion::mAnkleRightState

Definition at line 89 of file llkeyframestandmotion.h.

Referenced by LLKeyframeStandMotion(), onInitialize(), and onUpdate().

LLCharacter* LLKeyframeStandMotion::mCharacter

Reimplemented from LLKeyframeMotion.

Definition at line 77 of file llkeyframestandmotion.h.

Referenced by LLKeyframeStandMotion(), onInitialize(), and onUpdate().

BOOL LLKeyframeStandMotion::mFlipFeet

Definition at line 79 of file llkeyframestandmotion.h.

Referenced by LLKeyframeStandMotion(), onInitialize(), and onUpdate().

S32 LLKeyframeStandMotion::mFrameNum

Definition at line 117 of file llkeyframestandmotion.h.

Referenced by LLKeyframeStandMotion(), onActivate(), and onUpdate().

LLJoint LLKeyframeStandMotion::mHipLeftJoint

Definition at line 93 of file llkeyframestandmotion.h.

Referenced by LLKeyframeStandMotion(), and onUpdate().

LLJointState* LLKeyframeStandMotion::mHipLeftState

Definition at line 83 of file llkeyframestandmotion.h.

Referenced by LLKeyframeStandMotion(), onInitialize(), and onUpdate().

LLJoint LLKeyframeStandMotion::mHipRightJoint

Definition at line 98 of file llkeyframestandmotion.h.

Referenced by LLKeyframeStandMotion(), and onUpdate().

LLJointState* LLKeyframeStandMotion::mHipRightState

Definition at line 87 of file llkeyframestandmotion.h.

Referenced by LLKeyframeStandMotion(), onInitialize(), and onUpdate().

LLJointSolverRP3 LLKeyframeStandMotion::mIKLeft

Definition at line 103 of file llkeyframestandmotion.h.

Referenced by onActivate(), and onUpdate().

LLJointSolverRP3 LLKeyframeStandMotion::mIKRight

Definition at line 104 of file llkeyframestandmotion.h.

Referenced by onActivate(), and onUpdate().

LLJoint LLKeyframeStandMotion::mKneeLeftJoint

Definition at line 94 of file llkeyframestandmotion.h.

Referenced by LLKeyframeStandMotion(), and onUpdate().

LLJointState* LLKeyframeStandMotion::mKneeLeftState

Definition at line 84 of file llkeyframestandmotion.h.

Referenced by LLKeyframeStandMotion(), onInitialize(), and onUpdate().

LLJoint LLKeyframeStandMotion::mKneeRightJoint

Definition at line 99 of file llkeyframestandmotion.h.

Referenced by LLKeyframeStandMotion(), and onUpdate().

LLJointState* LLKeyframeStandMotion::mKneeRightState

Definition at line 88 of file llkeyframestandmotion.h.

Referenced by LLKeyframeStandMotion(), onInitialize(), and onUpdate().

LLQuaternion LLKeyframeStandMotion::mLastGoodPelvisRotation

Definition at line 113 of file llkeyframestandmotion.h.

Referenced by onActivate(), and onUpdate().

LLVector3 LLKeyframeStandMotion::mLastGoodPosition

Definition at line 114 of file llkeyframestandmotion.h.

Referenced by onActivate(), and onUpdate().

LLVector3 LLKeyframeStandMotion::mNormalLeft

Definition at line 108 of file llkeyframestandmotion.h.

Referenced by onUpdate().

LLVector3 LLKeyframeStandMotion::mNormalRight

Definition at line 109 of file llkeyframestandmotion.h.

Referenced by onUpdate().

LLJoint LLKeyframeStandMotion::mPelvisJoint

Definition at line 91 of file llkeyframestandmotion.h.

Referenced by LLKeyframeStandMotion(), and onUpdate().

LLJointState* LLKeyframeStandMotion::mPelvisState

Definition at line 81 of file llkeyframestandmotion.h.

Referenced by LLKeyframeStandMotion(), onInitialize(), and onUpdate().

LLVector3 LLKeyframeStandMotion::mPositionLeft

Definition at line 106 of file llkeyframestandmotion.h.

Referenced by onUpdate().

LLVector3 LLKeyframeStandMotion::mPositionRight

Definition at line 107 of file llkeyframestandmotion.h.

Referenced by onUpdate().

LLQuaternion LLKeyframeStandMotion::mRotationLeft

Definition at line 110 of file llkeyframestandmotion.h.

Referenced by onUpdate().

LLQuaternion LLKeyframeStandMotion::mRotationRight

Definition at line 111 of file llkeyframestandmotion.h.

Referenced by onUpdate().

LLJoint LLKeyframeStandMotion::mTargetLeft

Definition at line 96 of file llkeyframestandmotion.h.

Referenced by onUpdate().

LLJoint LLKeyframeStandMotion::mTargetRight

Definition at line 101 of file llkeyframestandmotion.h.

Referenced by onUpdate().

BOOL LLKeyframeStandMotion::mTrackAnkles

Definition at line 115 of file llkeyframestandmotion.h.

Referenced by LLKeyframeStandMotion(), and onUpdate().


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