LLEditingMotion Class Reference

#include <lleditingmotion.h>

Inheritance diagram for LLEditingMotion:

Inheritance graph
[legend]
Collaboration diagram for LLEditingMotion:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 LLEditingMotion (const LLUUID &id)
virtual ~LLEditingMotion ()
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 ()

Static Public Member Functions

static LLMotioncreate (const LLUUID &id)

Public Attributes

LLCharactermCharacter
LLVector3 mWristOffset
LLJointState mParentState
LLJointState mShoulderState
LLJointState mElbowState
LLJointState mWristState
LLJointState mTorsoState
LLJoint mParentJoint
LLJoint mShoulderJoint
LLJoint mElbowJoint
LLJoint mWristJoint
LLJoint mTarget
LLJointSolverRP3 mIKSolver
LLVector3 mLastSelectPt

Static Public Attributes

static S32 sHandPose = LLHandMotion::HAND_POSE_RELAXED_R
static S32 sHandPosePriority = 3

Detailed Description

Definition at line 50 of file lleditingmotion.h.


Constructor & Destructor Documentation

LLEditingMotion::LLEditingMotion ( const LLUUID id  ) 

Definition at line 57 of file lleditingmotion.cpp.

References LLJoint::addChild(), mCharacter, mElbowJoint, LLMotion::mName, mParentJoint, mShoulderJoint, mWristJoint, and NULL.

Referenced by create().

LLEditingMotion::~LLEditingMotion (  )  [virtual]

Definition at line 74 of file lleditingmotion.cpp.


Member Function Documentation

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

Reimplemented from LLMotion.

Definition at line 67 of file lleditingmotion.h.

References LLEditingMotion().

Referenced by LLVOAvatar::LLVOAvatar().

virtual LLMotionBlendType LLEditingMotion::getBlendType (  )  [inline, virtual]

Implements LLMotion.

Definition at line 89 of file lleditingmotion.h.

References LLMotion::NORMAL_BLEND.

virtual F32 LLEditingMotion::getDuration (  )  [inline, virtual]

Implements LLMotion.

Definition at line 78 of file lleditingmotion.h.

virtual F32 LLEditingMotion::getEaseInDuration (  )  [inline, virtual]

Implements LLMotion.

Definition at line 81 of file lleditingmotion.h.

References EDITING_EASEIN_DURATION.

virtual F32 LLEditingMotion::getEaseOutDuration (  )  [inline, virtual]

Implements LLMotion.

Definition at line 84 of file lleditingmotion.h.

References EDITING_EASEOUT_DURATION.

virtual BOOL LLEditingMotion::getLoop (  )  [inline, virtual]

Implements LLMotion.

Definition at line 75 of file lleditingmotion.h.

References TRUE.

virtual F32 LLEditingMotion::getMinPixelArea (  )  [inline, virtual]

Implements LLMotion.

Definition at line 92 of file lleditingmotion.h.

References MIN_REQUIRED_PIXEL_AREA_EDITING.

virtual LLJoint::JointPriority LLEditingMotion::getPriority (  )  [inline, virtual]

Implements LLMotion.

Definition at line 87 of file lleditingmotion.h.

References EDITING_PRIORITY.

BOOL LLEditingMotion::onActivate (  )  [virtual]

Implements LLMotion.

Definition at line 144 of file lleditingmotion.cpp.

References LLJointState::getJoint(), LLJoint::getPosition(), LLJoint::getRotation(), LLJoint::getWorldPosition(), LLJoint::getWorldRotation(), mElbowJoint, mElbowState, mParentJoint, mParentState, mShoulderJoint, mShoulderState, mWristJoint, mWristOffset, mWristState, LLJoint::setPosition(), LLJoint::setRotation(), and TRUE.

void LLEditingMotion::onDeactivate (  )  [virtual]

Implements LLMotion.

Definition at line 252 of file lleditingmotion.cpp.

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

Implements LLMotion.

Definition at line 81 of file lleditingmotion.cpp.

References LLMotion::addJointState(), LLJointState::getJoint(), LLCharacter::getJoint(), LLMotion::getName(), LLJoint::getParent(), LLJoint::getPosition(), LLJoint::getRotation(), LLJoint::getWorldPosition(), LLJoint::getWorldRotation(), llendl, llinfos, llwarns, mCharacter, mElbowJoint, mElbowState, mIKSolver, mParentJoint, mParentState, mShoulderJoint, mShoulderState, mTarget, mTorsoState, mWristJoint, mWristOffset, mWristState, LLJointState::ROT, LLJointSolverRP3::setBAxis(), LLJointState::setJoint(), LLJointSolverRP3::setPoleVector(), LLJoint::setPosition(), LLJoint::setRotation(), LLJointSolverRP3::setupJoints(), LLJointState::setUsage(), LLMotion::STATUS_FAILURE, and LLMotion::STATUS_SUCCESS.

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

Implements LLMotion.

Definition at line 163 of file lleditingmotion.cpp.

References clamp_rescale(), LLQuaternion::DEFAULT, dot(), F_SQRT2, FALSE, LLCharacter::getAnimationData(), LLCharacter::getCharacterPosition(), LLCriticalDamp::getInterpolant(), LLJointState::getJoint(), LLJoint::getPosition(), LLJoint::getRotation(), LLJoint::getWorldPosition(), LLJoint::getWorldRotation(), LLVector3::isExactlyZero(), llassert, llendl, llerrs, mCharacter, mElbowJoint, mElbowState, mIKSolver, mLastSelectPt, mParentJoint, mParentState, mShoulderJoint, mShoulderState, mTarget, mTorsoState, mWristJoint, mWristOffset, mWristState, LLVector3::normVec(), LLVector3::rotVec(), LLCharacter::setAnimationData(), LLJoint::setPosition(), LLJointState::setRotation(), LLJoint::setRotation(), sHandPose, sHandPosePriority, slerp(), LLJointSolverRP3::solve(), target, TRUE, and VZ.


Member Data Documentation

LLCharacter* LLEditingMotion::mCharacter

Definition at line 116 of file lleditingmotion.h.

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

LLJoint LLEditingMotion::mElbowJoint

Definition at line 127 of file lleditingmotion.h.

Referenced by LLEditingMotion(), onActivate(), onInitialize(), and onUpdate().

LLJointState LLEditingMotion::mElbowState

Definition at line 121 of file lleditingmotion.h.

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

LLJointSolverRP3 LLEditingMotion::mIKSolver

Definition at line 130 of file lleditingmotion.h.

Referenced by onInitialize(), and onUpdate().

LLVector3 LLEditingMotion::mLastSelectPt

Definition at line 134 of file lleditingmotion.h.

Referenced by onUpdate().

LLJoint LLEditingMotion::mParentJoint

Definition at line 125 of file lleditingmotion.h.

Referenced by LLEditingMotion(), onActivate(), onInitialize(), and onUpdate().

LLJointState LLEditingMotion::mParentState

Definition at line 119 of file lleditingmotion.h.

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

LLJoint LLEditingMotion::mShoulderJoint

Definition at line 126 of file lleditingmotion.h.

Referenced by LLEditingMotion(), onActivate(), onInitialize(), and onUpdate().

LLJointState LLEditingMotion::mShoulderState

Definition at line 120 of file lleditingmotion.h.

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

LLJoint LLEditingMotion::mTarget

Definition at line 129 of file lleditingmotion.h.

Referenced by onInitialize(), and onUpdate().

LLJointState LLEditingMotion::mTorsoState

Definition at line 123 of file lleditingmotion.h.

Referenced by onInitialize(), and onUpdate().

LLJoint LLEditingMotion::mWristJoint

Definition at line 128 of file lleditingmotion.h.

Referenced by LLEditingMotion(), onActivate(), onInitialize(), and onUpdate().

LLVector3 LLEditingMotion::mWristOffset

Definition at line 117 of file lleditingmotion.h.

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

LLJointState LLEditingMotion::mWristState

Definition at line 122 of file lleditingmotion.h.

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

S32 LLEditingMotion::sHandPose = LLHandMotion::HAND_POSE_RELAXED_R [static]

Definition at line 132 of file lleditingmotion.h.

Referenced by onUpdate().

S32 LLEditingMotion::sHandPosePriority = 3 [static]

Definition at line 133 of file lleditingmotion.h.

Referenced by onUpdate().


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