LLHUDEffectBeam Class Reference

#include <llhudeffectbeam.h>

Inheritance diagram for LLHUDEffectBeam:

Inheritance graph
[legend]
Collaboration diagram for LLHUDEffectBeam:

Collaboration graph
[legend]
List of all members.

Public Member Functions

void setSourceObject (LLViewerObject *objp)
void setTargetObject (LLViewerObject *objp)
void setTargetPos (const LLVector3d &target_pos_global)

Protected Member Functions

 LLHUDEffectBeam (const U8 type)
 ~LLHUDEffectBeam ()
void render ()
void packData (LLMessageSystem *mesgsys)
void unpackData (LLMessageSystem *mesgsys, S32 blocknum)

Private Member Functions

void setupParticle (const S32 i)

Private Attributes

F32 mKillTime
LLFrameTimer mTimer
LLInterpLinear< LLVector3dmInterp [NUM_POINTS]
LLInterpLinear< F32mInterpFade [NUM_POINTS]
LLInterpLinear< F32mFadeInterp
LLVector3d mTargetPos

Friends

class LLHUDObject

Detailed Description

Definition at line 45 of file llhudeffectbeam.h.


Constructor & Destructor Documentation

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

Definition at line 53 of file llhudeffectbeam.cpp.

References BEAM_SPACING, f, i, llmin(), LLHUDEffect::mDuration, mFadeInterp, mInterp, mInterpFade, mKillTime, NUM_POINTS, S32, LLInterp< Type >::setEndTime(), and LLInterpLinear< Type >::start().

LLHUDEffectBeam::~LLHUDEffectBeam (  )  [protected]

Definition at line 79 of file llhudeffectbeam.cpp.


Member Function Documentation

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

Reimplemented from LLHUDEffect.

Definition at line 83 of file llhudeffectbeam.cpp.

References _PREHASH_TypeData, LLMessageSystem::addBinaryDataFast(), htonmemcpy(), llendl, llwarns, LLVector3d::mdV, LLHUDObject::mSourceObject, LLHUDObject::mTargetObject, mTargetPos, MVT_LLUUID, MVT_LLVector3d, and LLHUDEffect::packData().

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

Reimplemented from LLHUDEffect.

Definition at line 231 of file llhudeffectbeam.cpp.

References f, F_PI, gAgent, LLInterpLinear< Type >::getCurFrac(), LLFrameTimer::getElapsedTimeF32(), LLAgent::getPosAgentFromGlobal(), LLAgent::getPosGlobalFromAgent(), glColor4ubv, glPopMatrix, glTranslatef, gSphere, i, LLHUDObject::markDead(), LLHUDEffect::mColor, mFadeInterp, mInterp, mInterpFade, mKillTime, LLHUDObject::mSourceObject, LLHUDObject::mTargetObject, mTargetPos, mTimer, LLVector3::mV, LLColor4U::mV, LLPointer< Type >::notNull(), NUM_POINTS, LLSphere::render(), S32, setupParticle(), LLImageGL::unbindTexture(), and LLHUDEffect::update().

void LLHUDEffectBeam::setSourceObject ( LLViewerObject objp  )  [virtual]

Reimplemented from LLHUDObject.

Definition at line 177 of file llhudeffectbeam.cpp.

References gAgent, LLAgent::getPosGlobalFromAgent(), LLJoint::getWorldPosition(), i, LLViewerObject::isDead(), llendl, llwarns, mInterp, LLHUDObject::mSourceObject, LLVOAvatar::mWristLeftp, NULL, NUM_POINTS, S32, LLInterp< Type >::setStartVal(), and LLInterpLinear< Type >::start().

Referenced by unpackData().

void LLHUDEffectBeam::setTargetObject ( LLViewerObject objp  )  [virtual]

Reimplemented from LLHUDObject.

Definition at line 215 of file llhudeffectbeam.cpp.

References llendl, llwarns, and LLHUDObject::mTargetObject.

Referenced by unpackData().

void LLHUDEffectBeam::setTargetPos ( const LLVector3d target_pos_global  ) 

Definition at line 225 of file llhudeffectbeam.cpp.

References LLHUDObject::mTargetObject, mTargetPos, and NULL.

Referenced by unpackData().

void LLHUDEffectBeam::setupParticle ( const S32  i  )  [private]

Definition at line 359 of file llhudeffectbeam.cpp.

References BEAM_SPACING, f, gAgent, LLAgent::getPosGlobalFromAgent(), LLJoint::getWorldPosition(), ll_frand(), LL_PCODE_LEGACY_AVATAR, mInterp, mInterpFade, LLHUDObject::mSourceObject, mTargetPos, LLVOAvatar::mWristLeftp, NUM_POINTS, LLInterp< Type >::setEndTime(), LLInterp< Type >::setEndVal(), LLInterp< Type >::setStartTime(), LLInterp< Type >::setStartVal(), LLInterpLinear< Type >::start(), x, y, and z.

Referenced by render().

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

Reimplemented from LLHUDEffect.

Definition at line 122 of file llhudeffectbeam.cpp.

References _PREHASH_Effect, _PREHASH_TypeData, f, LLViewerObjectList::findObject(), LLMessageSystem::getBinaryDataFast(), LLFrameTimer::getElapsedTimeF32(), LLMessageSystem::getSizeFast(), gObjectList, htonmemcpy(), llendl, llerrs, llmin(), llwarns, LLUUID::mData, LLHUDEffect::mDuration, LLVector3d::mdV, mFadeInterp, mKillTime, mTimer, MVT_LLUUID, MVT_LLVector3d, S32, setSourceObject(), setTargetObject(), setTargetPos(), size, and LLHUDEffect::unpackData().


Friends And Related Function Documentation

friend class LLHUDObject [friend]

Definition at line 54 of file llhudeffectbeam.h.


Member Data Documentation

LLInterpLinear<F32> LLHUDEffectBeam::mFadeInterp [private]

Definition at line 70 of file llhudeffectbeam.h.

Referenced by LLHUDEffectBeam(), render(), and unpackData().

LLInterpLinear<LLVector3d> LLHUDEffectBeam::mInterp[NUM_POINTS] [private]

Definition at line 68 of file llhudeffectbeam.h.

Referenced by LLHUDEffectBeam(), render(), setSourceObject(), and setupParticle().

LLInterpLinear<F32> LLHUDEffectBeam::mInterpFade[NUM_POINTS] [private]

Definition at line 69 of file llhudeffectbeam.h.

Referenced by LLHUDEffectBeam(), render(), and setupParticle().

F32 LLHUDEffectBeam::mKillTime [private]

Definition at line 66 of file llhudeffectbeam.h.

Referenced by LLHUDEffectBeam(), render(), and unpackData().

LLVector3d LLHUDEffectBeam::mTargetPos [private]

Definition at line 71 of file llhudeffectbeam.h.

Referenced by packData(), render(), setTargetPos(), and setupParticle().

LLFrameTimer LLHUDEffectBeam::mTimer [private]

Definition at line 67 of file llhudeffectbeam.h.

Referenced by render(), and unpackData().


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