LLHUDEffectLookAt Class Reference

#include <llhudeffectlookat.h>

Inheritance diagram for LLHUDEffectLookAt:

Inheritance graph
[legend]
Collaboration diagram for LLHUDEffectLookAt:

Collaboration graph
[legend]

List of all members.

Public Member Functions

void markDead ()
void setSourceObject (LLViewerObject *objectp)
BOOL setLookAt (ELookAtType target_type, LLViewerObject *object, LLVector3 position)
void clearLookAtTarget ()
ELookAtType getLookAtType ()
const LLVector3getTargetPos ()
const LLVector3dgetTargetOffset ()
bool calcTargetPosition ()

Static Public Attributes

static BOOL sDebugLookAt = FALSE

Protected Member Functions

 LLHUDEffectLookAt (const U8 type)
 ~LLHUDEffectLookAt ()
void update ()
void render ()
void packData (LLMessageSystem *mesgsys)
void unpackData (LLMessageSystem *mesgsys, S32 blocknum)
void setTargetObjectAndOffset (LLViewerObject *objp, LLVector3d offset)
void setTargetPosGlobal (const LLVector3d &target_pos_global)

Private Attributes

ELookAtType mTargetType
LLVector3d mTargetOffsetGlobal
LLVector3 mLastSentOffsetGlobal
F32 mKillTime
LLFrameTimer mTimer
LLVector3 mTargetPos
F32 mLastSendTime
LLAttentionSetmAttentions

Friends

class LLHUDObject


Detailed Description

Definition at line 57 of file llhudeffectlookat.h.


Constructor & Destructor Documentation

LLHUDEffectLookAt::LLHUDEffectLookAt ( const U8  type  )  [protected]

Definition at line 243 of file llhudeffectlookat.cpp.

References clearLookAtTarget(), gGirlAttentions, loadAttentions(), and mAttentions.

Here is the call graph for this function:

LLHUDEffectLookAt::~LLHUDEffectLookAt (  )  [protected]

Definition at line 258 of file llhudeffectlookat.cpp.


Member Function Documentation

void LLHUDEffectLookAt::markDead (  )  [virtual]

Reimplemented from LLHUDObject.

Definition at line 472 of file llhudeffectlookat.cpp.

References clearLookAtTarget(), LLHUDObject::markDead(), LLHUDObject::mSourceObject, LLPointer< Type >::notNull(), and NULL.

Referenced by update().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLHUDEffectLookAt::setSourceObject ( LLViewerObject objectp  )  [virtual]

Reimplemented from LLHUDObject.

Definition at line 484 of file llhudeffectlookat.cpp.

References LLPrimitive::isAvatar(), and LLHUDObject::setSourceObject().

Referenced by unpackData().

Here is the call graph for this function:

Here is the caller graph for this function:

BOOL LLHUDEffectLookAt::setLookAt ( ELookAtType  target_type,
LLViewerObject object,
LLVector3  position 
)

void LLHUDEffectLookAt::clearLookAtTarget (  ) 

Definition at line 458 of file llhudeffectlookat.cpp.

References ANIM_AGENT_HEAD_ROT, LLVector3d::clearVec(), LOOKAT_TARGET_NONE, LLHUDObject::mSourceObject, LLHUDObject::mTargetObject, mTargetOffsetGlobal, mTargetType, LLPointer< Type >::notNull(), and NULL.

Referenced by LLHUDEffectLookAt(), markDead(), setLookAt(), unpackData(), and update().

Here is the call graph for this function:

Here is the caller graph for this function:

ELookAtType LLHUDEffectLookAt::getLookAtType (  )  [inline]

Definition at line 68 of file llhudeffectlookat.h.

References mTargetType.

const LLVector3& LLHUDEffectLookAt::getTargetPos (  )  [inline]

Definition at line 69 of file llhudeffectlookat.h.

References mTargetPos.

const LLVector3d& LLHUDEffectLookAt::getTargetOffset (  )  [inline]

Definition at line 70 of file llhudeffectlookat.h.

References mTargetOffsetGlobal.

bool LLHUDEffectLookAt::calcTargetPosition (  ) 

Initializes the mTargetPos member from the current mSourceObjec and mTargetObject (and possibly mTargetOffsetGlobal). When mTargetObject is another avatar, it sets mTargetPos to be their eyes.

Has the side-effect of also calling setAnimationData("LookAtPoint") with the new mTargetPos on the source object which is assumed to be an avatar.

Returns whether we successfully calculated a finite target position.

Definition at line 590 of file llhudeffectlookat.cpp.

References LLAgent::cameraCustomizeAvatar(), LLQuaternion::DEFAULT, gAgent, LLAgent::getPosAgentFromGlobal(), LLViewerObject::getPositionAgent(), LLViewerObject::getRenderPosition(), LLViewerObject::getRenderRotation(), LLJoint::getWorldPosition(), LLXform::getWorldRotation(), LLJoint::getWorldRotation(), gNoRender, LLPrimitive::isAvatar(), LLVector3::isFinite(), LLVOAvatar::isSelf(), LOOKAT_TARGET_FREELOOK, LOOKAT_TARGET_MOUSELOOK, LLVector3d::magVecSquared(), LLViewerObject::mDrawable, LLVOAvatar::mHeadp, MIN_TARGET_OFFSET_SQUARED, LLVOAvatar::mPelvisp, LLVOAvatar::mRoot, LLHUDObject::mSourceObject, LLHUDObject::mTargetObject, mTargetOffsetGlobal, mTargetPos, mTargetType, LLPointer< Type >::notNull(), LLCharacter::setAnimationData(), LLVector3d::setVec(), and LLVector3::setVec().

Referenced by update().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLHUDEffectLookAt::update (  )  [protected, virtual]

void LLHUDEffectLookAt::render (  )  [protected, virtual]

void LLHUDEffectLookAt::packData ( LLMessageSystem mesgsys  )  [protected, virtual]

void LLHUDEffectLookAt::unpackData ( LLMessageSystem mesgsys,
S32  blocknum 
) [protected, virtual]

void LLHUDEffectLookAt::setTargetObjectAndOffset ( LLViewerObject objp,
LLVector3d  offset 
) [protected]

Definition at line 377 of file llhudeffectlookat.cpp.

References LLHUDObject::mTargetObject, and mTargetOffsetGlobal.

Referenced by unpackData().

Here is the caller graph for this function:

void LLHUDEffectLookAt::setTargetPosGlobal ( const LLVector3d target_pos_global  )  [protected]

Definition at line 386 of file llhudeffectlookat.cpp.

References LLHUDObject::mTargetObject, mTargetOffsetGlobal, and NULL.

Referenced by unpackData().

Here is the caller graph for this function:


Friends And Related Function Documentation

friend class LLHUDObject [friend]

Definition at line 60 of file llhudeffectlookat.h.


Member Data Documentation

Definition at line 87 of file llhudeffectlookat.h.

Referenced by init_debug_avatar_menu(), render(), and update().

Definition at line 92 of file llhudeffectlookat.h.

Referenced by setLookAt().

Definition at line 93 of file llhudeffectlookat.h.

Referenced by setLookAt(), and update().

Definition at line 94 of file llhudeffectlookat.h.

Referenced by packData(), setLookAt(), and update().

Definition at line 95 of file llhudeffectlookat.h.

Referenced by calcTargetPosition(), getTargetPos(), and render().

Definition at line 96 of file llhudeffectlookat.h.

Referenced by packData(), and setLookAt().

Definition at line 97 of file llhudeffectlookat.h.

Referenced by LLHUDEffectLookAt(), setLookAt(), and update().


The documentation for this class was generated from the following files:

Generated on Fri May 16 08:49:15 2008 for SecondLife by  doxygen 1.5.5