LLEyeMotion Class Reference

#include <llheadrotmotion.h>

Inheritance diagram for LLEyeMotion:

Inheritance graph
[legend]
Collaboration diagram for LLEyeMotion:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 LLEyeMotion (const LLUUID &id)
virtual ~LLEyeMotion ()
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
LLJointmHeadJoint
LLJointState mLeftEyeState
LLJointState mRightEyeState
LLFrameTimer mEyeJitterTimer
F32 mEyeJitterTime
F32 mEyeJitterYaw
F32 mEyeJitterPitch
F32 mEyeLookAwayTime
F32 mEyeLookAwayYaw
F32 mEyeLookAwayPitch
LLFrameTimer mEyeBlinkTimer
F32 mEyeBlinkTime
BOOL mEyesClosed

Detailed Description

Definition at line 130 of file llheadrotmotion.h.


Constructor & Destructor Documentation

LLEyeMotion::LLEyeMotion ( const LLUUID id  ) 

Definition at line 270 of file llheadrotmotion.cpp.

References FALSE, mCharacter, mEyeBlinkTime, mEyeJitterPitch, mEyeJitterTime, mEyeJitterYaw, mEyeLookAwayPitch, mEyeLookAwayTime, mEyeLookAwayYaw, mEyesClosed, mHeadJoint, LLMotion::mName, and NULL.

Referenced by create().

LLEyeMotion::~LLEyeMotion (  )  [virtual]

Definition at line 294 of file llheadrotmotion.cpp.


Member Function Documentation

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

Reimplemented from LLMotion.

Definition at line 147 of file llheadrotmotion.h.

References LLEyeMotion().

Referenced by LLVOAvatar::LLVOAvatar().

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

Implements LLMotion.

Definition at line 172 of file llheadrotmotion.h.

References LLMotion::NORMAL_BLEND.

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

Implements LLMotion.

Definition at line 158 of file llheadrotmotion.h.

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

Implements LLMotion.

Definition at line 161 of file llheadrotmotion.h.

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

Implements LLMotion.

Definition at line 164 of file llheadrotmotion.h.

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

Implements LLMotion.

Definition at line 155 of file llheadrotmotion.h.

References TRUE.

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

Implements LLMotion.

Definition at line 167 of file llheadrotmotion.h.

References MIN_REQUIRED_PIXEL_AREA_EYE.

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

Implements LLMotion.

Definition at line 170 of file llheadrotmotion.h.

References LLJoint::MEDIUM_PRIORITY.

BOOL LLEyeMotion::onActivate (  )  [virtual]

Implements LLMotion.

Definition at line 339 of file llheadrotmotion.cpp.

References TRUE.

void LLEyeMotion::onDeactivate (  )  [virtual]

Implements LLMotion.

Definition at line 508 of file llheadrotmotion.cpp.

References LLQuaternion::DEFAULT, LLJointState::getJoint(), mLeftEyeState, mRightEyeState, and LLJoint::setRotation().

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

Implements LLMotion.

Definition at line 301 of file llheadrotmotion.cpp.

References LLMotion::addJointState(), LLJointState::getJoint(), LLCharacter::getJoint(), LLMotion::getName(), llendl, llinfos, mCharacter, mHeadJoint, mLeftEyeState, mRightEyeState, LLJointState::ROT, LLJointState::setJoint(), LLJointState::setUsage(), LLMotion::STATUS_FAILURE, and LLMotion::STATUS_SUCCESS.

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

Implements LLMotion.

Definition at line 348 of file llheadrotmotion.cpp.

References LLQuaternion::constrain(), LLQuaternion::DEFAULT, DEG_TO_RAD, EYE_BLINK_CLOSE_TIME, EYE_BLINK_MAX_TIME, EYE_BLINK_MIN_TIME, EYE_BLINK_SPEED, EYE_BLINK_TIME_DELTA, EYE_JITTER_MAX_PITCH, EYE_JITTER_MAX_TIME, EYE_JITTER_MAX_YAW, EYE_JITTER_MIN_TIME, EYE_LOOK_AWAY_MAX_PITCH, EYE_LOOK_AWAY_MAX_TIME, EYE_LOOK_AWAY_MAX_YAW, EYE_LOOK_AWAY_MIN_TIME, EYE_LOOK_BACK_MAX_TIME, EYE_LOOK_BACK_MIN_TIME, EYE_ROT_LIMIT_ANGLE, f, F_PI_BY_TWO, FALSE, LLCharacter::getAnimationData(), LLFrameTimer::getElapsedTimeF32(), LLJointState::getJoint(), LLJoint::getWorldPosition(), LLJoint::getWorldRotation(), left, ll_frand(), llclamp(), llmax(), LLQuaternion::loadIdentity(), mCharacter, mEyeBlinkTime, mEyeBlinkTimer, mEyeJitterPitch, mEyeJitterTime, mEyeJitterTimer, mEyeJitterYaw, mEyeLookAwayPitch, mEyeLookAwayTime, mEyeLookAwayYaw, mEyesClosed, mHeadJoint, mLeftEyeState, mRightEyeState, LLVector3::normVec(), LLFrameTimer::reset(), LLQuaternion::setQuat(), LLJointState::setRotation(), LLVector3::setVec(), LLCharacter::setVisualParamWeight(), LLQuaternion::transQuat(), TRUE, and LLCharacter::updateVisualParams().


Member Data Documentation

LLCharacter* LLEyeMotion::mCharacter

Definition at line 196 of file llheadrotmotion.h.

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

F32 LLEyeMotion::mEyeBlinkTime

Definition at line 212 of file llheadrotmotion.h.

Referenced by LLEyeMotion(), and onUpdate().

LLFrameTimer LLEyeMotion::mEyeBlinkTimer

Definition at line 211 of file llheadrotmotion.h.

Referenced by onUpdate().

F32 LLEyeMotion::mEyeJitterPitch

Definition at line 205 of file llheadrotmotion.h.

Referenced by LLEyeMotion(), and onUpdate().

F32 LLEyeMotion::mEyeJitterTime

Definition at line 203 of file llheadrotmotion.h.

Referenced by LLEyeMotion(), and onUpdate().

LLFrameTimer LLEyeMotion::mEyeJitterTimer

Definition at line 202 of file llheadrotmotion.h.

Referenced by onUpdate().

F32 LLEyeMotion::mEyeJitterYaw

Definition at line 204 of file llheadrotmotion.h.

Referenced by LLEyeMotion(), and onUpdate().

F32 LLEyeMotion::mEyeLookAwayPitch

Definition at line 208 of file llheadrotmotion.h.

Referenced by LLEyeMotion(), and onUpdate().

F32 LLEyeMotion::mEyeLookAwayTime

Definition at line 206 of file llheadrotmotion.h.

Referenced by LLEyeMotion(), and onUpdate().

F32 LLEyeMotion::mEyeLookAwayYaw

Definition at line 207 of file llheadrotmotion.h.

Referenced by LLEyeMotion(), and onUpdate().

BOOL LLEyeMotion::mEyesClosed

Definition at line 213 of file llheadrotmotion.h.

Referenced by LLEyeMotion(), and onUpdate().

LLJoint* LLEyeMotion::mHeadJoint

Definition at line 198 of file llheadrotmotion.h.

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

LLJointState LLEyeMotion::mLeftEyeState

Definition at line 199 of file llheadrotmotion.h.

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

LLJointState LLEyeMotion::mRightEyeState

Definition at line 200 of file llheadrotmotion.h.

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


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