#include <llhudeffectpointat.h>
Inheritance diagram for LLHUDEffectPointAt:
Public Member Functions | |
void | markDead () |
void | setSourceObject (LLViewerObject *objectp) |
BOOL | setPointAt (EPointAtType target_type, LLViewerObject *object, LLVector3 position) |
void | clearPointAtTarget () |
EPointAtType | getPointAtType () |
const LLVector3 & | getPointAtPosAgent () |
const LLVector3d | getPointAtPosGlobal () |
Static Public Attributes | |
static BOOL | sDebugPointAt |
Protected Member Functions | |
LLHUDEffectPointAt (const U8 type) | |
~LLHUDEffectPointAt () | |
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) |
void | calcTargetPosition () |
void | update () |
Private Attributes | |
EPointAtType | mTargetType |
LLVector3d | mTargetOffsetGlobal |
LLVector3 | mLastSentOffsetGlobal |
F32 | mKillTime |
LLFrameTimer | mTimer |
LLVector3 | mTargetPos |
F32 | mLastSendTime |
Friends | |
class | LLHUDObject |
Definition at line 49 of file llhudeffectpointat.h.
LLHUDEffectPointAt::LLHUDEffectPointAt | ( | const U8 | type | ) | [protected] |
LLHUDEffectPointAt::~LLHUDEffectPointAt | ( | ) | [protected] |
Definition at line 95 of file llhudeffectpointat.cpp.
void LLHUDEffectPointAt::calcTargetPosition | ( | ) | [protected] |
Definition at line 391 of file llhudeffectpointat.cpp.
References gAgent, LLAgent::getPosAgentFromGlobal(), LLViewerObject::getPositionAgent(), LLViewerObject::getRenderPosition(), LLViewerObject::getRenderRotation(), LLXform::getWorldRotation(), LLPrimitive::isAvatar(), LLViewerObject::mDrawable, LLHUDObject::mSourceObject, LLHUDObject::mTargetObject, mTargetOffsetGlobal, mTargetPos, LLPointer< Type >::notNull(), and LLVector3::setVec().
Referenced by update().
void LLHUDEffectPointAt::clearPointAtTarget | ( | ) |
Definition at line 288 of file llhudeffectpointat.cpp.
References LLVector3d::clearVec(), LLHUDObject::mTargetObject, mTargetOffsetGlobal, mTargetType, NULL, and POINTAT_TARGET_NONE.
Referenced by LLHUDEffectPointAt(), markDead(), setPointAt(), and update().
const LLVector3& LLHUDEffectPointAt::getPointAtPosAgent | ( | ) | [inline] |
const LLVector3d LLHUDEffectPointAt::getPointAtPosGlobal | ( | ) |
Definition at line 443 of file llhudeffectpointat.cpp.
References LLHUDObject::mSourceObject, mTargetPos, LLPointer< Type >::notNull(), and LLVector3d::setVec().
EPointAtType LLHUDEffectPointAt::getPointAtType | ( | ) | [inline] |
void LLHUDEffectPointAt::markDead | ( | ) | [virtual] |
Reimplemented from LLHUDObject.
Definition at line 298 of file llhudeffectpointat.cpp.
References clearPointAtTarget(), LLPointer< Type >::isNull(), LLHUDObject::markDead(), and LLHUDObject::mSourceObject.
Referenced by update().
void LLHUDEffectPointAt::packData | ( | LLMessageSystem * | mesgsys | ) | [protected, virtual] |
Reimplemented from LLHUDEffect.
Definition at line 102 of file llhudeffectpointat.cpp.
References _PREHASH_TypeData, LLMessageSystem::addBinaryDataFast(), LLFrameTimer::getElapsedTimeF32(), htonmemcpy(), mData, LLVector3d::mdV, mLastSendTime, LLHUDObject::mSourceObject, LLHUDObject::mTargetObject, mTargetOffsetGlobal, mTargetType, mTimer, MVT_LLUUID, MVT_LLVector3d, MVT_U8, LLUUID::null, LLHUDEffect::packData(), PKT_SIZE, POINTAT_TYPE, SOURCE_AVATAR, TARGET_OBJECT, and TARGET_POS.
void LLHUDEffectPointAt::render | ( | ) | [protected, virtual] |
Reimplemented from LLHUDEffect.
Definition at line 321 of file llhudeffectpointat.cpp.
References f, glBegin, glEnd, glPopMatrix, glTranslatef, LLHUDObject::mSourceObject, mTargetPos, mTargetType, POINTAT_TARGET_NONE, sDebugPointAt, target, update(), VX, VY, and VZ.
BOOL LLHUDEffectPointAt::setPointAt | ( | EPointAtType | target_type, | |
LLViewerObject * | object, | |||
LLVector3 | position | |||
) |
Definition at line 227 of file llhudeffectpointat.cpp.
References clearPointAtTarget(), dist_vec(), f, FALSE, gAgent, LLFrameTimer::getElapsedTimeF32(), LLAgent::getPosGlobalFromAgent(), llassert, MAX_SENDS_PER_SEC, LLHUDEffect::mDuration, MIN_DELTAPOS_FOR_UPDATE, mKillTime, mLastSendTime, mLastSentOffsetGlobal, LLHUDObject::mSourceObject, LLHUDObject::mTargetObject, mTargetOffsetGlobal, mTargetType, mTimer, POINTAT_NUM_TARGETS, POINTAT_PRIORITIES, POINTAT_TARGET_CLEAR, POINTAT_TIMEOUTS, LLHUDEffect::setDuration(), LLHUDEffect::setNeedsSendToSim(), LLVector3d::setVec(), TRUE, and update().
void LLHUDEffectPointAt::setSourceObject | ( | LLViewerObject * | objectp | ) | [virtual] |
Reimplemented from LLHUDObject.
Definition at line 309 of file llhudeffectpointat.cpp.
References LLPrimitive::isAvatar(), and LLHUDObject::setSourceObject().
Referenced by unpackData().
void LLHUDEffectPointAt::setTargetObjectAndOffset | ( | LLViewerObject * | objp, | |
LLVector3d | offset | |||
) | [protected] |
Definition at line 208 of file llhudeffectpointat.cpp.
References LLHUDObject::mTargetObject, and mTargetOffsetGlobal.
Referenced by unpackData().
void LLHUDEffectPointAt::setTargetPosGlobal | ( | const LLVector3d & | target_pos_global | ) | [protected] |
Definition at line 217 of file llhudeffectpointat.cpp.
References LLHUDObject::mTargetObject, mTargetOffsetGlobal, and NULL.
Referenced by unpackData().
void LLHUDEffectPointAt::unpackData | ( | LLMessageSystem * | mesgsys, | |
S32 | blocknum | |||
) | [protected, virtual] |
Reimplemented from LLHUDEffect.
Definition at line 144 of file llhudeffectpointat.cpp.
References _PREHASH_Effect, _PREHASH_ID, _PREHASH_TypeData, LLViewerObjectList::findObject(), gAgent, LLMessageSystem::getUUIDFast(), gObjectList, htonmemcpy(), LLPrimitive::isAvatar(), LLUUID::isNull(), LLPointer< Type >::isNull(), llendl, llwarns, LLUUID::mData, LLVector3d::mdV, LLAgent::mPointAt, mTargetType, MVT_LLUUID, MVT_LLVector3d, MVT_U8, PKT_SIZE, POINTAT_TYPE, S32, setSourceObject(), setTargetObjectAndOffset(), setTargetPosGlobal(), size, SOURCE_AVATAR, TARGET_OBJECT, TARGET_POS, LLHUDEffect::unpackData(), and update().
void LLHUDEffectPointAt::update | ( | ) | [protected, virtual] |
Reimplemented from LLHUDEffect.
Definition at line 351 of file llhudeffectpointat.cpp.
References ANIM_AGENT_EDITING, calcTargetPosition(), clearPointAtTarget(), f, LLFrameTimer::getElapsedTimeF32(), LLPointer< Type >::isNull(), markDead(), mKillTime, LLHUDObject::mSourceObject, LLHUDObject::mTargetObject, mTargetType, mTimer, and POINTAT_TARGET_NONE.
Referenced by render(), setPointAt(), and unpackData().
friend class LLHUDObject [friend] |
Definition at line 52 of file llhudeffectpointat.h.
F32 LLHUDEffectPointAt::mKillTime [private] |
F32 LLHUDEffectPointAt::mLastSendTime [private] |
Definition at line 80 of file llhudeffectpointat.h.
Referenced by calcTargetPosition(), clearPointAtTarget(), packData(), setPointAt(), setTargetObjectAndOffset(), and setTargetPosGlobal().
LLVector3 LLHUDEffectPointAt::mTargetPos [private] |
Definition at line 84 of file llhudeffectpointat.h.
Referenced by calcTargetPosition(), getPointAtPosAgent(), getPointAtPosGlobal(), and render().
EPointAtType LLHUDEffectPointAt::mTargetType [private] |
Definition at line 79 of file llhudeffectpointat.h.
Referenced by clearPointAtTarget(), getPointAtType(), packData(), render(), setPointAt(), unpackData(), and update().
LLFrameTimer LLHUDEffectPointAt::mTimer [private] |
Definition at line 83 of file llhudeffectpointat.h.
Referenced by packData(), setPointAt(), and update().
BOOL LLHUDEffectPointAt::sDebugPointAt [static] |
Definition at line 77 of file llhudeffectpointat.h.
Referenced by init_debug_avatar_menu(), and render().