LLJointState Class Reference

#include <lljointstate.h>

Collaboration diagram for LLJointState:

Collaboration graph
[legend]
List of all members.

Public Types

 INACTIVE
 EASE_IN
 ACTIVE
 EASE_OUT
 POS = 1
 ROT = 2
 SCALE = 4
enum  BlendPhase { INACTIVE, EASE_IN, ACTIVE, EASE_OUT }
enum  Usage { POS = 1, ROT = 2, SCALE = 4 }

Public Member Functions

 LLJointState ()
 LLJointState (LLJoint *joint)
virtual ~LLJointState ()
LLJointgetJoint ()
BOOL setJoint (LLJoint *joint)
U32 getUsage ()
void setUsage (U32 usage)
F32 getWeight ()
void setWeight (F32 weight)
const LLVector3getPosition ()
void setPosition (const LLVector3 &pos)
const LLQuaterniongetRotation ()
void setRotation (const LLQuaternion &rot)
const LLVector3getScale ()
void setScale (const LLVector3 &scale)
LLJoint::JointPriority getPriority ()
void setPriority (const LLJoint::JointPriority priority)

Protected Attributes

LLJointmJoint
U32 mUsage
F32 mWeight
LLVector3 mPosition
LLQuaternion mRotation
LLVector3 mScale
LLJoint::JointPriority mPriority

Detailed Description

Definition at line 43 of file lljointstate.h.


Member Enumeration Documentation

enum LLJointState::BlendPhase

Enumerator:
INACTIVE 
EASE_IN 
ACTIVE 
EASE_OUT 

Definition at line 46 of file lljointstate.h.

enum LLJointState::Usage

Enumerator:
POS 
ROT 
SCALE 

Definition at line 100 of file lljointstate.h.


Constructor & Destructor Documentation

LLJointState::LLJointState (  )  [inline]

Definition at line 70 of file lljointstate.h.

References mJoint, mPriority, mUsage, mWeight, NULL, and LLJoint::USE_MOTION_PRIORITY.

LLJointState::LLJointState ( LLJoint joint  )  [inline]

Definition at line 79 of file lljointstate.h.

References mJoint, mPriority, mUsage, mWeight, and LLJoint::USE_MOTION_PRIORITY.

virtual LLJointState::~LLJointState (  )  [inline, virtual]

Definition at line 89 of file lljointstate.h.


Member Function Documentation

LLJoint* LLJointState::getJoint (  )  [inline]

Definition at line 94 of file lljointstate.h.

References mJoint.

Referenced by LLJointStateBlender::addJointState(), LLPose::addJointState(), LLMotion::addJointState(), LLKeyframeMotion::applyConstraint(), LLJointStateBlender::blendJointStates(), LLKeyframeMotion::initializeConstraint(), LLJointStateBlender::interpolate(), LLEditingMotion::onActivate(), LLEyeMotion::onDeactivate(), LLEyeMotion::onInitialize(), LLHeadRotMotion::onInitialize(), LLEditingMotion::onInitialize(), LLWalkAdjustMotion::onUpdate(), LLKeyframeStandMotion::onUpdate(), LLEyeMotion::onUpdate(), LLHeadRotMotion::onUpdate(), LLEditingMotion::onUpdate(), LLPose::removeJointState(), and LLJointStateBlender::resetCachedJoint().

const LLVector3& LLJointState::getPosition ( void   )  [inline]

Definition at line 112 of file lljointstate.h.

References mPosition.

Referenced by LLWalkAdjustMotion::onUpdate(), and LLKeyframeStandMotion::onUpdate().

LLJoint::JointPriority LLJointState::getPriority (  )  [inline]

Definition at line 124 of file lljointstate.h.

References mPriority.

Referenced by LLMotion::addJointState().

const LLQuaternion& LLJointState::getRotation (  )  [inline]

Definition at line 116 of file lljointstate.h.

References mRotation.

Referenced by LLKeyframeMotion::applyConstraint(), LLTargetingMotion::onUpdate(), LLKeyframeStandMotion::onUpdate(), LLKeyframeFallMotion::onUpdate(), and LLHeadRotMotion::onUpdate().

const LLVector3& LLJointState::getScale (  )  [inline]

Definition at line 120 of file lljointstate.h.

References mScale.

U32 LLJointState::getUsage (  )  [inline]

Definition at line 106 of file lljointstate.h.

References mUsage.

Referenced by LLMotion::addJointState(), LLKeyframeMotion::deserialize(), and LLKeyframeMotion::JointMotion::update().

F32 LLJointState::getWeight (  )  [inline]

Definition at line 108 of file lljointstate.h.

References mWeight.

BOOL LLJointState::setJoint ( LLJoint joint  )  [inline]

Definition at line 95 of file lljointstate.h.

References mJoint, and NULL.

Referenced by LLKeyframeMotion::deserialize(), LLPelvisFixMotion::onInitialize(), LLBreatheMotionRot::onInitialize(), LLBodyNoiseMotion::onInitialize(), LLTargetingMotion::onInitialize(), LLFlyAdjustMotion::onInitialize(), LLWalkAdjustMotion::onInitialize(), LLEyeMotion::onInitialize(), LLHeadRotMotion::onInitialize(), and LLEditingMotion::onInitialize().

void LLJointState::setPosition ( const LLVector3 pos  )  [inline]

Definition at line 113 of file lljointstate.h.

References llassert, mPosition, mUsage, and POS.

Referenced by LLKeyframeMotion::applyConstraint(), LLFlyAdjustMotion::onActivate(), LLWalkAdjustMotion::onActivate(), LLPelvisFixMotion::onUpdate(), LLWalkAdjustMotion::onUpdate(), and LLKeyframeMotion::JointMotion::update().

void LLJointState::setPriority ( const LLJoint::JointPriority  priority  )  [inline]

Definition at line 125 of file lljointstate.h.

References mPriority.

Referenced by LLKeyframeMotion::deserialize(), and LLKeyframeMotion::onInitialize().

void LLJointState::setRotation ( const LLQuaternion rot  )  [inline]

Definition at line 117 of file lljointstate.h.

References llassert, mRotation, mUsage, and ROT.

Referenced by LLKeyframeMotion::applyConstraint(), LLFlyAdjustMotion::onActivate(), LLBreatheMotionRot::onUpdate(), LLBodyNoiseMotion::onUpdate(), LLTargetingMotion::onUpdate(), LLFlyAdjustMotion::onUpdate(), LLKeyframeStandMotion::onUpdate(), LLKeyframeFallMotion::onUpdate(), LLEyeMotion::onUpdate(), LLHeadRotMotion::onUpdate(), LLEditingMotion::onUpdate(), and LLKeyframeMotion::JointMotion::update().

void LLJointState::setScale ( const LLVector3 scale  )  [inline]

Definition at line 121 of file lljointstate.h.

References llassert, mScale, mUsage, and SCALE.

Referenced by LLKeyframeMotion::JointMotion::update().

void LLJointState::setUsage ( U32  usage  )  [inline]

Definition at line 107 of file lljointstate.h.

References mUsage.

Referenced by LLKeyframeMotion::deserialize(), LLPelvisFixMotion::onInitialize(), LLBreatheMotionRot::onInitialize(), LLBodyNoiseMotion::onInitialize(), LLTargetingMotion::onInitialize(), LLFlyAdjustMotion::onInitialize(), LLWalkAdjustMotion::onInitialize(), LLKeyframeMotion::onInitialize(), LLEyeMotion::onInitialize(), LLHeadRotMotion::onInitialize(), and LLEditingMotion::onInitialize().

void LLJointState::setWeight ( F32  weight  )  [inline]

Definition at line 109 of file lljointstate.h.

References mWeight.


Member Data Documentation

LLJoint* LLJointState::mJoint [protected]

Definition at line 55 of file lljointstate.h.

Referenced by getJoint(), LLJointState(), and setJoint().

LLVector3 LLJointState::mPosition [protected]

Definition at line 64 of file lljointstate.h.

Referenced by getPosition(), and setPosition().

LLJoint::JointPriority LLJointState::mPriority [protected]

Definition at line 67 of file lljointstate.h.

Referenced by getPriority(), LLJointState(), and setPriority().

LLQuaternion LLJointState::mRotation [protected]

Definition at line 65 of file lljointstate.h.

Referenced by getRotation(), and setRotation().

LLVector3 LLJointState::mScale [protected]

Definition at line 66 of file lljointstate.h.

Referenced by getScale(), and setScale().

U32 LLJointState::mUsage [protected]

Definition at line 58 of file lljointstate.h.

Referenced by getUsage(), LLJointState(), setPosition(), setRotation(), setScale(), and setUsage().

F32 LLJointState::mWeight [protected]

Definition at line 61 of file lljointstate.h.

Referenced by getWeight(), LLJointState(), and setWeight().


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