LLTargetingMotion Class Reference

#include <lltargetingmotion.h>

Inheritance diagram for LLTargetingMotion:

Inheritance graph
[legend]
Collaboration diagram for LLTargetingMotion:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 LLTargetingMotion (const LLUUID &id)
virtual ~LLTargetingMotion ()
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
LLJointState mTorsoState
LLJointmPelvisJoint
LLJointmTorsoJoint
LLJointmRightHandJoint

Detailed Description

Definition at line 49 of file lltargetingmotion.h.


Constructor & Destructor Documentation

LLTargetingMotion::LLTargetingMotion ( const LLUUID id  ) 

Definition at line 54 of file lltargetingmotion.cpp.

References mCharacter, LLMotion::mName, and NULL.

Referenced by create().

LLTargetingMotion::~LLTargetingMotion (  )  [virtual]

Definition at line 65 of file lltargetingmotion.cpp.


Member Function Documentation

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

Reimplemented from LLMotion.

Definition at line 66 of file lltargetingmotion.h.

References LLTargetingMotion().

Referenced by LLVOAvatar::LLVOAvatar().

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

Implements LLMotion.

Definition at line 88 of file lltargetingmotion.h.

References LLMotion::ADDITIVE_BLEND.

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

Implements LLMotion.

Definition at line 77 of file lltargetingmotion.h.

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

Implements LLMotion.

Definition at line 80 of file lltargetingmotion.h.

References TARGETING_EASEIN_DURATION.

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

Implements LLMotion.

Definition at line 83 of file lltargetingmotion.h.

References TARGETING_EASEOUT_DURATION.

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

Implements LLMotion.

Definition at line 74 of file lltargetingmotion.h.

References TRUE.

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

Implements LLMotion.

Definition at line 91 of file lltargetingmotion.h.

References MIN_REQUIRED_PIXEL_AREA_TARGETING.

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

Implements LLMotion.

Definition at line 86 of file lltargetingmotion.h.

References TARGETING_PRIORITY.

BOOL LLTargetingMotion::onActivate (  )  [virtual]

Implements LLMotion.

Definition at line 102 of file lltargetingmotion.cpp.

References TRUE.

void LLTargetingMotion::onDeactivate (  )  [virtual]

Implements LLMotion.

Definition at line 169 of file lltargetingmotion.cpp.

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

Implements LLMotion.

Definition at line 72 of file lltargetingmotion.cpp.

References LLMotion::addJointState(), LLCharacter::getJoint(), llendl, llwarns, mCharacter, mPelvisJoint, mRightHandJoint, mTorsoJoint, mTorsoState, LLJointState::ROT, LLJointState::setJoint(), LLJointState::setUsage(), LLMotion::STATUS_FAILURE, and LLMotion::STATUS_SUCCESS.

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

Implements LLMotion.

Definition at line 110 of file lltargetingmotion.cpp.

References LLQuaternion::constrain(), f, F_PI_BY_TWO, LLCharacter::getAnimationData(), LLCriticalDamp::getInterpolant(), LLJoint::getRotation(), LLJointState::getRotation(), LLJoint::getWorldRotation(), left, mCharacter, mRightHandJoint, mTorsoJoint, mTorsoState, nlerp(), LLVector3::normVec(), LLJointState::setRotation(), LLVector3::setVec(), target, TORSO_TARGET_HALF_LIFE, and TRUE.


Member Data Documentation

LLCharacter* LLTargetingMotion::mCharacter

Definition at line 113 of file lltargetingmotion.h.

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

LLJoint* LLTargetingMotion::mPelvisJoint

Definition at line 115 of file lltargetingmotion.h.

Referenced by onInitialize().

LLJoint* LLTargetingMotion::mRightHandJoint

Definition at line 117 of file lltargetingmotion.h.

Referenced by onInitialize(), and onUpdate().

LLJoint* LLTargetingMotion::mTorsoJoint

Definition at line 116 of file lltargetingmotion.h.

Referenced by onInitialize(), and onUpdate().

LLJointState LLTargetingMotion::mTorsoState

Definition at line 114 of file lltargetingmotion.h.

Referenced by onInitialize(), and onUpdate().


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