LLHUDObject Class Reference

#include <llhudobject.h>

Inheritance diagram for LLHUDObject:

Inheritance graph
[legend]
Collaboration diagram for LLHUDObject:

Collaboration graph
[legend]
List of all members.

Public Types

 LL_HUD_TEXT
 LL_HUD_ICON
 LL_HUD_CONNECTOR
 LL_HUD_FLEXIBLE_OBJECT
 LL_HUD_ANIMAL_CONTROLS
 LL_HUD_LOCAL_ANIMATION_OBJECT
 LL_HUD_CLOTH
 LL_HUD_EFFECT_BEAM
 LL_HUD_EFFECT_GLOW
 LL_HUD_EFFECT_POINT
 LL_HUD_EFFECT_TRAIL
 LL_HUD_EFFECT_SPHERE
 LL_HUD_EFFECT_SPIRAL
 LL_HUD_EFFECT_EDIT
 LL_HUD_EFFECT_LOOKAT
 LL_HUD_EFFECT_POINTAT
 LL_HUD_EFFECT_VOICE_VISUALIZER
enum  {
  LL_HUD_TEXT, LL_HUD_ICON, LL_HUD_CONNECTOR, LL_HUD_FLEXIBLE_OBJECT,
  LL_HUD_ANIMAL_CONTROLS, LL_HUD_LOCAL_ANIMATION_OBJECT, LL_HUD_CLOTH, LL_HUD_EFFECT_BEAM,
  LL_HUD_EFFECT_GLOW, LL_HUD_EFFECT_POINT, LL_HUD_EFFECT_TRAIL, LL_HUD_EFFECT_SPHERE,
  LL_HUD_EFFECT_SPIRAL, LL_HUD_EFFECT_EDIT, LL_HUD_EFFECT_LOOKAT, LL_HUD_EFFECT_POINTAT,
  LL_HUD_EFFECT_VOICE_VISUALIZER
}

Public Member Functions

virtual void markDead ()
virtual F32 getDistance () const
virtual void setSourceObject (LLViewerObject *objectp)
virtual void setTargetObject (LLViewerObject *objectp)
virtual LLViewerObject * getSourceObject ()
virtual LLViewerObject * getTargetObject ()
void setPositionGlobal (const LLVector3d &position_global)
void setPositionAgent (const LLVector3 &position_agent)
BOOL isVisible () const
U8 getType () const

Static Public Member Functions

static LLHUDObject * addHUDObject (const U8 type)
static LLHUDEffect * addHUDEffect (const U8 type)
static void updateAll ()
static void renderAll ()
static void renderAllForSelect ()
static void cleanupHUDObjects ()

Protected Member Functions

 LLHUDObject (const U8 type)
 ~LLHUDObject ()
virtual void render ()=0
virtual void renderForSelect ()

Static Protected Member Functions

static void sortObjects ()

Protected Attributes

U8 mType
BOOL mDead
BOOL mVisible
LLVector3d mPositionGlobal
BOOL mOnHUDAttachment
LLPointer< LLViewerObject > mSourceObject
LLPointer< LLViewerObject > mTargetObject

Private Types

typedef std::list< LLPointer<
LLHUDObject > > 
hud_object_list_t

Static Private Attributes

static hud_object_list_t sHUDObjects

Detailed Description

Definition at line 54 of file llhudobject.h.


Member Typedef Documentation

typedef std::list<LLPointer<LLHUDObject> > LLHUDObject::hud_object_list_t [private]

Definition at line 118 of file llhudobject.h.


Member Enumeration Documentation

anonymous enum

Enumerator:
LL_HUD_TEXT 
LL_HUD_ICON 
LL_HUD_CONNECTOR 
LL_HUD_FLEXIBLE_OBJECT 
LL_HUD_ANIMAL_CONTROLS 
LL_HUD_LOCAL_ANIMATION_OBJECT 
LL_HUD_CLOTH 
LL_HUD_EFFECT_BEAM 
LL_HUD_EFFECT_GLOW 
LL_HUD_EFFECT_POINT 
LL_HUD_EFFECT_TRAIL 
LL_HUD_EFFECT_SPHERE 
LL_HUD_EFFECT_SPIRAL 
LL_HUD_EFFECT_EDIT 
LL_HUD_EFFECT_LOOKAT 
LL_HUD_EFFECT_POINTAT 
LL_HUD_EFFECT_VOICE_VISUALIZER 

Definition at line 79 of file llhudobject.h.


Constructor & Destructor Documentation

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

Definition at line 71 of file llhudobject.cpp.

References FALSE, mDead, mOnHUDAttachment, mType, mVisible, and TRUE.

LLHUDObject::~LLHUDObject (  )  [protected]

Definition at line 82 of file llhudobject.cpp.


Member Function Documentation

LLHUDEffect * LLHUDObject::addHUDEffect ( const U8  type  )  [static]

Definition at line 171 of file llhudobject.cpp.

References f, LL_HUD_EFFECT_BEAM, LL_HUD_EFFECT_EDIT, LL_HUD_EFFECT_GLOW, LL_HUD_EFFECT_LOOKAT, LL_HUD_EFFECT_POINT, LL_HUD_EFFECT_POINTAT, LL_HUD_EFFECT_SPHERE, LL_HUD_EFFECT_SPIRAL, LL_HUD_EFFECT_VOICE_VISUALIZER, llendl, llwarns, NULL, and sHUDObjects.

Referenced by LLHUDManager::createViewerEffect().

LLHUDObject * LLHUDObject::addHUDObject ( const U8  type  )  [static]

Definition at line 146 of file llhudobject.cpp.

References LL_HUD_CONNECTOR, LL_HUD_ICON, LL_HUD_TEXT, llendl, llwarns, NULL, and sHUDObjects.

Referenced by LLVOAvatar::idleUpdate(), LLViewerObject::processUpdateMessage(), LLTracker::render3D(), LLViewerObjectList::renderObjectBeacons(), LLViewerObject::setDebugText(), and LLViewerObject::setIcon().

void LLHUDObject::cleanupHUDObjects (  )  [static]

Definition at line 130 of file llhudobject.cpp.

References LLHUDIcon::cleanupDeadIcons(), llendl, llinfos, and sHUDObjects.

Referenced by cleanup_app().

F32 LLHUDObject::getDistance (  )  const [virtual]

Reimplemented in LLHUDIcon, and LLHUDText.

Definition at line 94 of file llhudobject.cpp.

virtual LLViewerObject* LLHUDObject::getSourceObject (  )  [inline, virtual]

Definition at line 61 of file llhudobject.h.

References mSourceObject.

Referenced by LLToolSelect::handleObjectSelection(), and LLToolPie::pickAndShowMenu().

virtual LLViewerObject* LLHUDObject::getTargetObject (  )  [inline, virtual]

Definition at line 62 of file llhudobject.h.

References mTargetObject.

U8 LLHUDObject::getType (  )  const [inline]

Definition at line 69 of file llhudobject.h.

References mType.

BOOL LLHUDObject::isVisible (  )  const [inline]

Definition at line 67 of file llhudobject.h.

References mVisible.

Referenced by renderAll(), and renderAllForSelect().

void LLHUDObject::markDead (  )  [virtual]

Reimplemented in LLHUDEffectLookAt, LLHUDEffectPointAt, LLHUDEffectSpiral, LLHUDIcon, LLHUDText, and LLVoiceVisualizer.

Definition at line 86 of file llhudobject.cpp.

References FALSE, mDead, mSourceObject, mTargetObject, mVisible, NULL, and TRUE.

Referenced by LLHUDText::markDead(), LLHUDIcon::markDead(), LLHUDEffectSpiral::markDead(), LLHUDEffectPointAt::markDead(), LLHUDEffectLookAt::markDead(), and LLHUDEffectBeam::render().

virtual void LLHUDObject::render (  )  [protected, pure virtual]

Implemented in LLHUDConnector, LLHUDEffect, LLHUDEffectBeam, LLHUDEffectLookAt, LLHUDEffectPointAt, LLHUDEffectSpiral, LLHUDIcon, LLHUDText, and LLVoiceVisualizer.

Referenced by renderAll().

void LLHUDObject::renderAll (  )  [static]

Definition at line 275 of file llhudobject.cpp.

References LLRefCount::getNumRefs(), isVisible(), render(), and sHUDObjects.

Referenced by render_hud_elements().

void LLHUDObject::renderAllForSelect (  )  [static]

Definition at line 296 of file llhudobject.cpp.

References LLRefCount::getNumRefs(), isVisible(), renderForSelect(), and sHUDObjects.

Referenced by LLViewerObjectList::renderObjectsForSelect().

virtual void LLHUDObject::renderForSelect (  )  [inline, protected, virtual]

Reimplemented in LLHUDIcon, and LLHUDText.

Definition at line 106 of file llhudobject.h.

Referenced by renderAllForSelect().

void LLHUDObject::setPositionAgent ( const LLVector3 &  position_agent  ) 

Definition at line 124 of file llhudobject.cpp.

References gAgent, LLAgent::getPosGlobalFromAgent(), and mPositionGlobal.

Referenced by LLTracker::renderBeacon(), and LLViewerObjectList::renderObjectBeacons().

void LLHUDObject::setPositionGlobal ( const LLVector3d &  position_global  ) 

Definition at line 119 of file llhudobject.cpp.

References mPositionGlobal.

Referenced by add_object(), app_request_quit(), LLSelectMgr::confirmDelete(), derez_objects(), LLToolDragAndDrop::dropObject(), idle_startup(), LLToolPie::pickAndShowMenu(), and process_teleport_finish().

void LLHUDObject::setSourceObject ( LLViewerObject *  objectp  )  [virtual]

Reimplemented in LLHUDEffectBeam, LLHUDEffectLookAt, and LLHUDEffectPointAt.

Definition at line 99 of file llhudobject.cpp.

References mSourceObject.

Referenced by add_object(), LLToolDragAndDrop::commitGiveInventoryCategory(), LLToolDragAndDrop::commitGiveInventoryItem(), LLToolDragAndDrop::dad3dTextureObject(), LLToolDragAndDrop::dropInventory(), LLToolDragAndDrop::dropObject(), LLToolDragAndDrop::dropScript(), LLSelectMgr::selectionSetImage(), LLHUDEffectPointAt::setSourceObject(), LLHUDEffectLookAt::setSourceObject(), LLHUDConnector::setTargets(), and LLHUDEffectSpiral::unpackData().

void LLHUDObject::setTargetObject ( LLViewerObject *  objectp  )  [virtual]

Reimplemented in LLHUDEffectBeam, and LLHUDEffectSpiral.

Definition at line 109 of file llhudobject.cpp.

References mTargetObject.

Referenced by LLHUDConnector::setTargets().

void LLHUDObject::sortObjects (  )  [static, protected]

Definition at line 317 of file llhudobject.cpp.

References sHUDObjects.

Referenced by updateAll().

void LLHUDObject::updateAll (  )  [static]

Reimplemented in LLHUDIcon, and LLHUDText.

Definition at line 266 of file llhudobject.cpp.

References LLFastTimer::FTM_HUD_UPDATE, sortObjects(), LLHUDIcon::updateAll(), and LLHUDText::updateAll().

Referenced by display().


Member Data Documentation

BOOL LLHUDObject::mDead [protected]

Definition at line 110 of file llhudobject.h.

Referenced by LLHUDEffect::isDead(), LLHUDEffect::LLHUDEffect(), LLHUDObject(), and markDead().

BOOL LLHUDObject::mOnHUDAttachment [protected]

Definition at line 113 of file llhudobject.h.

Referenced by LLHUDObject(), LLHUDText::render(), LLHUDText::renderForSelect(), LLHUDText::renderText(), LLHUDText::setOnHUDAttachment(), and LLHUDText::updateVisibility().

LLVector3d LLHUDObject::mPositionGlobal [protected]

Definition at line 112 of file llhudobject.h.

Referenced by LLHUDEffectSpiral::packData(), setPositionAgent(), setPositionGlobal(), LLHUDEffectSpiral::triggerLocal(), LLHUDEffectSpiral::unpackData(), and LLHUDText::updateVisibility().

LLPointer<LLViewerObject> LLHUDObject::mSourceObject [protected]

Definition at line 114 of file llhudobject.h.

Referenced by LLHUDEffectPointAt::calcTargetPosition(), LLHUDEffectLookAt::calcTargetPosition(), LLHUDEffectLookAt::clearLookAtTarget(), LLHUDEffectPointAt::getPointAtPosGlobal(), getSourceObject(), markDead(), LLHUDIcon::markDead(), LLHUDEffectPointAt::markDead(), LLHUDEffectLookAt::markDead(), LLHUDEffectSpiral::packData(), LLHUDEffectPointAt::packData(), LLHUDEffectLookAt::packData(), LLHUDEffectBeam::packData(), LLHUDEffectSpiral::render(), LLHUDEffectPointAt::render(), LLHUDEffectLookAt::render(), LLHUDEffectBeam::render(), LLHUDConnector::render(), LLHUDIcon::renderIcon(), LLHUDText::renderText(), LLHUDEffectLookAt::setLookAt(), LLHUDEffectPointAt::setPointAt(), setSourceObject(), LLHUDEffectBeam::setSourceObject(), LLHUDEffectBeam::setupParticle(), LLHUDEffectSpiral::triggerLocal(), LLHUDEffectPointAt::update(), LLHUDEffectLookAt::update(), and LLHUDText::updateVisibility().

LLPointer<LLViewerObject> LLHUDObject::mTargetObject [protected]

Definition at line 115 of file llhudobject.h.

Referenced by LLHUDEffectPointAt::calcTargetPosition(), LLHUDEffectLookAt::calcTargetPosition(), LLHUDEffectLookAt::clearLookAtTarget(), LLHUDEffectPointAt::clearPointAtTarget(), getTargetObject(), markDead(), LLHUDEffectSpiral::packData(), LLHUDEffectPointAt::packData(), LLHUDEffectLookAt::packData(), LLHUDEffectBeam::packData(), LLHUDEffectSpiral::render(), LLHUDEffectBeam::render(), LLHUDConnector::render(), LLHUDEffectLookAt::setLookAt(), LLHUDEffectPointAt::setPointAt(), setTargetObject(), LLHUDEffectSpiral::setTargetObject(), LLHUDEffectBeam::setTargetObject(), LLHUDEffectPointAt::setTargetObjectAndOffset(), LLHUDEffectLookAt::setTargetObjectAndOffset(), LLHUDEffectBeam::setTargetPos(), LLHUDEffectPointAt::setTargetPosGlobal(), LLHUDEffectLookAt::setTargetPosGlobal(), LLHUDEffectSpiral::triggerLocal(), LLHUDEffectPointAt::update(), and LLHUDEffectLookAt::update().

U8 LLHUDObject::mType [protected]

Definition at line 106 of file llhudobject.h.

Referenced by getType(), LLHUDObject(), LLHUDEffect::packData(), and LLHUDEffect::unpackData().

BOOL LLHUDObject::mVisible [protected]

Definition at line 111 of file llhudobject.h.

Referenced by LLHUDText::getVisible(), isVisible(), LLHUDObject(), markDead(), LLHUDText::renderText(), and LLHUDText::updateVisibility().

std::list< LLPointer< LLHUDObject > > LLHUDObject::sHUDObjects [static, private]

Definition at line 119 of file llhudobject.h.

Referenced by addHUDEffect(), addHUDObject(), cleanupHUDObjects(), renderAll(), renderAllForSelect(), and sortObjects().


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