LLHeadRotMotion Class Reference

#include <llheadrotmotion.h>

Inheritance diagram for LLHeadRotMotion:

Inheritance graph
[legend]
Collaboration diagram for LLHeadRotMotion:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 LLHeadRotMotion (const LLUUID &id)
virtual ~LLHeadRotMotion ()
virtual BOOL getLoop ()
virtual F32 getDuration ()
virtual F32 getEaseInDuration ()
virtual F32 getEaseOutDuration ()
virtual F32 getMinPixelArea ()
virtual LLJoint::JointPriority getPriority ()
virtual LLMotionBlendType getBlendType ()
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
LLJointmTorsoJoint
LLJointmHeadJoint
LLJointmRootJoint
LLJointmPelvisJoint
LLJointState mTorsoState
LLJointState mNeckState
LLJointState mHeadState
LLQuaternion mLastHeadRot

Detailed Description

Definition at line 47 of file llheadrotmotion.h.


Constructor & Destructor Documentation

LLHeadRotMotion::LLHeadRotMotion ( const LLUUID id  ) 

Definition at line 78 of file llheadrotmotion.cpp.

References LLMotion::mName.

Referenced by create().

LLHeadRotMotion::~LLHeadRotMotion (  )  [virtual]

Definition at line 92 of file llheadrotmotion.cpp.


Member Function Documentation

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

Reimplemented from LLMotion.

Definition at line 64 of file llheadrotmotion.h.

References LLHeadRotMotion().

Referenced by LLVOAvatar::LLVOAvatar().

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

Implements LLMotion.

Definition at line 89 of file llheadrotmotion.h.

References LLMotion::NORMAL_BLEND.

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

Implements LLMotion.

Definition at line 75 of file llheadrotmotion.h.

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

Implements LLMotion.

Definition at line 78 of file llheadrotmotion.h.

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

Implements LLMotion.

Definition at line 81 of file llheadrotmotion.h.

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

Implements LLMotion.

Definition at line 72 of file llheadrotmotion.h.

References TRUE.

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

Implements LLMotion.

Definition at line 84 of file llheadrotmotion.h.

References MIN_REQUIRED_PIXEL_AREA_HEAD_ROT.

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

Implements LLMotion.

Definition at line 87 of file llheadrotmotion.h.

References LLJoint::MEDIUM_PRIORITY.

BOOL LLHeadRotMotion::onActivate (  )  [virtual]

Implements LLMotion.

Definition at line 171 of file llheadrotmotion.cpp.

References TRUE.

void LLHeadRotMotion::onDeactivate (  )  [virtual]

Implements LLMotion.

Definition at line 261 of file llheadrotmotion.cpp.

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

Implements LLMotion.

Definition at line 99 of file llheadrotmotion.cpp.

References LLMotion::addJointState(), LLJointState::getJoint(), LLCharacter::getJoint(), LLMotion::getName(), llendl, llinfos, LLQuaternion::loadIdentity(), mCharacter, mHeadJoint, mHeadState, mLastHeadRot, mNeckState, mPelvisJoint, mRootJoint, mTorsoJoint, mTorsoState, LLJointState::ROT, LLJointState::setJoint(), LLJointState::setUsage(), LLMotion::STATUS_FAILURE, and LLMotion::STATUS_SUCCESS.

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

Implements LLMotion.

Definition at line 180 of file llheadrotmotion.cpp.

References LLQuaternion::constrain(), LLQuaternion::DEFAULT, f, LLCharacter::getAnimationData(), LLCriticalDamp::getInterpolant(), LLJointState::getJoint(), LLJoint::getParent(), LLJointState::getRotation(), LLJoint::getWorldRotation(), HEAD_LOOKAT_LAG_HALF_LIFE, HEAD_ROTATION_CONSTRAINT, left, lerp(), mCharacter, mHeadState, MIN_HEAD_LOOKAT_DISTANCE, mLastHeadRot, mNeckState, mPelvisJoint, mRootJoint, mTorsoState, NECK_LAG, nlerp(), LLVector3::normVec(), LLJointState::setRotation(), TORSO_LAG, TORSO_LOOKAT_LAG_HALF_LIFE, TRUE, and VZ.


Member Data Documentation

LLCharacter* LLHeadRotMotion::mCharacter

Definition at line 113 of file llheadrotmotion.h.

Referenced by onInitialize(), and onUpdate().

LLJoint* LLHeadRotMotion::mHeadJoint

Definition at line 116 of file llheadrotmotion.h.

Referenced by onInitialize().

LLJointState LLHeadRotMotion::mHeadState

Definition at line 122 of file llheadrotmotion.h.

Referenced by onInitialize(), and onUpdate().

LLQuaternion LLHeadRotMotion::mLastHeadRot

Definition at line 124 of file llheadrotmotion.h.

Referenced by onInitialize(), and onUpdate().

LLJointState LLHeadRotMotion::mNeckState

Definition at line 121 of file llheadrotmotion.h.

Referenced by onInitialize(), and onUpdate().

LLJoint* LLHeadRotMotion::mPelvisJoint

Definition at line 118 of file llheadrotmotion.h.

Referenced by onInitialize(), and onUpdate().

LLJoint* LLHeadRotMotion::mRootJoint

Definition at line 117 of file llheadrotmotion.h.

Referenced by onInitialize(), and onUpdate().

LLJoint* LLHeadRotMotion::mTorsoJoint

Definition at line 115 of file llheadrotmotion.h.

Referenced by onInitialize().

LLJointState LLHeadRotMotion::mTorsoState

Definition at line 120 of file llheadrotmotion.h.

Referenced by onInitialize(), and onUpdate().


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