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

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 LLViewerObjectgetSourceObject ()
virtual LLViewerObjectgetTargetObject ()
void setPositionGlobal (const LLVector3d &position_global)
void setPositionAgent (const LLVector3 &position_agent)
BOOL isVisible () const
U8 getType () const

Static Public Member Functions

static LLHUDObjectaddHUDObject (const U8 type)
static LLHUDEffectaddHUDEffect (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< LLViewerObjectmSourceObject
LLPointer< LLViewerObjectmTargetObject

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 53 of file llhudobject.h.


Member Typedef Documentation

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

Definition at line 117 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 78 of file llhudobject.h.


Constructor & Destructor Documentation

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

Definition at line 65 of file llhudobject.cpp.

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

LLHUDObject::~LLHUDObject (  )  [protected]

Definition at line 76 of file llhudobject.cpp.


Member Function Documentation

void LLHUDObject::markDead (  )  [virtual]

F32 LLHUDObject::getDistance (  )  const [virtual]

Reimplemented in LLHUDIcon, and LLHUDText.

Definition at line 88 of file llhudobject.cpp.

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

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

Reimplemented in LLHUDEffectBeam, and LLHUDEffectSpiral.

Definition at line 103 of file llhudobject.cpp.

References mTargetObject.

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

Definition at line 60 of file llhudobject.h.

References mSourceObject.

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

Here is the caller graph for this function:

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

Definition at line 61 of file llhudobject.h.

References mTargetObject.

void LLHUDObject::setPositionGlobal ( const LLVector3d position_global  ) 

void LLHUDObject::setPositionAgent ( const LLVector3 position_agent  ) 

Definition at line 118 of file llhudobject.cpp.

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

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

Here is the call graph for this function:

Here is the caller graph for this function:

BOOL LLHUDObject::isVisible (  )  const [inline]

Definition at line 66 of file llhudobject.h.

References mVisible.

Referenced by renderAll(), and renderAllForSelect().

Here is the caller graph for this function:

U8 LLHUDObject::getType (  )  const [inline]

Definition at line 68 of file llhudobject.h.

References mType.

Referenced by LLHUDManager::processViewerEffect().

Here is the caller graph for this function:

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

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

void LLHUDObject::updateAll (  )  [static]

Reimplemented in LLHUDIcon, and LLHUDText.

Definition at line 257 of file llhudobject.cpp.

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

Referenced by display().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLHUDObject::renderAll (  )  [static]

Definition at line 266 of file llhudobject.cpp.

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

Referenced by LLPipeline::renderGeom().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLHUDObject::renderAllForSelect (  )  [static]

Definition at line 289 of file llhudobject.cpp.

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

Referenced by LLViewerObjectList::renderObjectsForSelect().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLHUDObject::cleanupHUDObjects (  )  [static]

Definition at line 124 of file llhudobject.cpp.

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

Referenced by LLAppViewer::cleanup().

Here is the call graph for this function:

Here is the caller graph for this function:

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

Definition at line 310 of file llhudobject.cpp.

References sHUDObjects.

Referenced by updateAll().

Here is the caller graph for this function:

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

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

Referenced by renderAll().

Here is the caller graph for this function:

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

Reimplemented in LLHUDIcon, and LLHUDText.

Definition at line 105 of file llhudobject.h.

Referenced by renderAllForSelect().

Here is the caller graph for this function:


Member Data Documentation

U8 LLHUDObject::mType [protected]

BOOL LLHUDObject::mDead [protected]

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


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

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