#include <llheadrotmotion.h>
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 LLMotion * | create (const LLUUID &id) |
Public Attributes | |
LLCharacter * | mCharacter |
LLJoint * | mHeadJoint |
LLPointer< LLJointState > | mLeftEyeState |
LLPointer< LLJointState > | mRightEyeState |
LLFrameTimer | mEyeJitterTimer |
F32 | mEyeJitterTime |
F32 | mEyeJitterYaw |
F32 | mEyeJitterPitch |
F32 | mEyeLookAwayTime |
F32 | mEyeLookAwayYaw |
F32 | mEyeLookAwayPitch |
LLFrameTimer | mEyeBlinkTimer |
F32 | mEyeBlinkTime |
BOOL | mEyesClosed |
Definition at line 130 of file llheadrotmotion.h.
LLEyeMotion::LLEyeMotion | ( | const LLUUID & | id | ) |
Definition at line 274 of file llheadrotmotion.cpp.
References FALSE, mCharacter, mEyeBlinkTime, mEyeJitterPitch, mEyeJitterTime, mEyeJitterYaw, mEyeLookAwayPitch, mEyeLookAwayTime, mEyeLookAwayYaw, mEyesClosed, mHeadJoint, mLeftEyeState, LLMotion::mName, mRightEyeState, and NULL.
Referenced by create().
LLEyeMotion::~LLEyeMotion | ( | ) | [virtual] |
Definition at line 301 of file llheadrotmotion.cpp.
Reimplemented from LLMotion.
Definition at line 147 of file llheadrotmotion.h.
References LLEyeMotion().
Referenced by LLVOAvatar::LLVOAvatar().
virtual BOOL LLEyeMotion::getLoop | ( | ) | [inline, virtual] |
virtual F32 LLEyeMotion::getDuration | ( | ) | [inline, virtual] |
virtual F32 LLEyeMotion::getEaseInDuration | ( | ) | [inline, virtual] |
virtual F32 LLEyeMotion::getEaseOutDuration | ( | ) | [inline, virtual] |
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.
virtual LLMotionBlendType LLEyeMotion::getBlendType | ( | ) | [inline, virtual] |
Implements LLMotion.
Definition at line 172 of file llheadrotmotion.h.
References LLMotion::NORMAL_BLEND.
LLMotion::LLMotionInitStatus LLEyeMotion::onInitialize | ( | LLCharacter * | character | ) | [virtual] |
Implements LLMotion.
Definition at line 308 of file llheadrotmotion.cpp.
References LLMotion::addJointState(), LLCharacter::getJoint(), LLMotion::getName(), llendl, llinfos, mCharacter, mHeadJoint, mLeftEyeState, mRightEyeState, LLJointState::ROT, LLMotion::STATUS_FAILURE, and LLMotion::STATUS_SUCCESS.
BOOL LLEyeMotion::onActivate | ( | ) | [virtual] |
Implements LLMotion.
Definition at line 355 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_PI_BY_TWO, FALSE, LLCharacter::getAnimationData(), LLFrameTimer::getElapsedTimeF32(), LLQuaternion::getEulerAngles(), LLJoint::getWorldRotation(), 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(), LLVector3::setVec(), LLCharacter::setVisualParamWeight(), LLQuaternion::transQuat(), TRUE, and LLCharacter::updateVisualParams().
void LLEyeMotion::onDeactivate | ( | ) | [virtual] |
Implements LLMotion.
Definition at line 519 of file llheadrotmotion.cpp.
References LLQuaternion::DEFAULT, mLeftEyeState, mRightEyeState, and LLJoint::setRotation().
Definition at line 196 of file llheadrotmotion.h.
Referenced by LLEyeMotion(), onInitialize(), and onUpdate().
Definition at line 198 of file llheadrotmotion.h.
Referenced by LLEyeMotion(), onInitialize(), and onUpdate().
Definition at line 199 of file llheadrotmotion.h.
Referenced by LLEyeMotion(), onDeactivate(), onInitialize(), and onUpdate().
Definition at line 200 of file llheadrotmotion.h.
Referenced by LLEyeMotion(), onDeactivate(), onInitialize(), and onUpdate().