#include <llheadrotmotion.h>
Inheritance diagram for LLEyeMotion:
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 |
LLJointState | mLeftEyeState |
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 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.
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] |
virtual F32 LLEyeMotion::getEaseInDuration | ( | ) | [inline, virtual] |
virtual F32 LLEyeMotion::getEaseOutDuration | ( | ) | [inline, virtual] |
virtual BOOL LLEyeMotion::getLoop | ( | ) | [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.
BOOL LLEyeMotion::onActivate | ( | ) | [virtual] |
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.
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().
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 onDeactivate(), onInitialize(), and onUpdate().
Definition at line 200 of file llheadrotmotion.h.
Referenced by onDeactivate(), onInitialize(), and onUpdate().