LLHUDIcon Class Reference

#include <llhudicon.h>

Inheritance diagram for LLHUDIcon:

Inheritance graph
[legend]
Collaboration diagram for LLHUDIcon:

Collaboration graph
[legend]
List of all members.

Public Member Functions

void render ()
void renderForSelect ()
void markDead ()
F32 getDistance () const
void setImage (LLViewerImage *imagep)
void setScale (F32 fraction_of_fov)
void restartLifeTimer ()
BOOL getHidden () const
void setHidden (BOOL hide)

Static Public Member Functions

static S32 generatePickIDs (S32 start_id, S32 step_size)
static LLHUDIconhandlePick (S32 pick_id)
static void updateAll ()
static void cleanupDeadIcons ()
static S32 getNumInstances ()
static BOOL iconsNearby ()

Protected Member Functions

 LLHUDIcon (const U8 type)
 ~LLHUDIcon ()
void renderIcon (BOOL for_select)

Private Types

typedef std::vector< LLPointer<
LLHUDIcon > > 
icon_instance_t

Private Attributes

LLPointer< LLViewerImagemImagep
LLFrameTimer mAnimTimer
LLFrameTimer mLifeTimer
F32 mDistance
S32 mPickID
F32 mScale
BOOL mHidden

Static Private Attributes

static icon_instance_t sIconInstances

Friends

class LLHUDObject

Detailed Description

Definition at line 53 of file llhudicon.h.


Member Typedef Documentation

typedef std::vector<LLPointer<LLHUDIcon> > LLHUDIcon::icon_instance_t [private]

Definition at line 95 of file llhudicon.h.


Constructor & Destructor Documentation

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

Definition at line 67 of file llhudicon.cpp.

References sIconInstances.

LLHUDIcon::~LLHUDIcon (  )  [protected]

Definition at line 77 of file llhudicon.cpp.

References mImagep, and NULL.


Member Function Documentation

void LLHUDIcon::cleanupDeadIcons (  )  [static]

Definition at line 254 of file llhudicon.cpp.

References sIconInstances.

Referenced by LLHUDObject::cleanupHUDObjects(), and updateAll().

S32 LLHUDIcon::generatePickIDs ( S32  start_id,
S32  step_size 
) [static]

Definition at line 211 of file llhudicon.cpp.

References S32, and sIconInstances.

Referenced by LLViewerObjectList::renderObjectsForSelect().

F32 LLHUDIcon::getDistance (  )  const [inline, virtual]

Reimplemented from LLHUDObject.

Definition at line 61 of file llhudicon.h.

References mDistance.

BOOL LLHUDIcon::getHidden (  )  const [inline]

Definition at line 77 of file llhudicon.h.

References mHidden.

S32 LLHUDIcon::getNumInstances (  )  [static]

Definition at line 278 of file llhudicon.cpp.

References S32, and sIconInstances.

Referenced by LLViewerObjectList::renderObjectsForSelect().

LLHUDIcon * LLHUDIcon::handlePick ( S32  pick_id  )  [static]

Definition at line 226 of file llhudicon.cpp.

References NULL, and sIconInstances.

Referenced by LLViewerWindow::performPick().

BOOL LLHUDIcon::iconsNearby (  )  [static]

Definition at line 248 of file llhudicon.cpp.

References sIconInstances.

Referenced by LLStatusBar::refresh().

void LLHUDIcon::markDead (  )  [virtual]

Reimplemented from LLHUDObject.

Definition at line 190 of file llhudicon.cpp.

References LLHUDObject::markDead(), and LLHUDObject::mSourceObject.

Referenced by renderIcon().

void LLHUDIcon::render (  )  [virtual]

Implements LLHUDObject.

Definition at line 199 of file llhudicon.cpp.

References FALSE, and renderIcon().

void LLHUDIcon::renderForSelect (  )  [virtual]

Reimplemented from LLHUDObject.

Definition at line 204 of file llhudicon.cpp.

References renderIcon(), and TRUE.

void LLHUDIcon::renderIcon ( BOOL  for_select  )  [protected]

Definition at line 82 of file llhudicon.cpp.

References LLVector3::abs(), ANIM_TIME, LLViewerImage::bindTexture(), calc_bouncy_animation(), clamp_rescale(), DIST_END_FADE, DIST_START_FADE, dist_vec(), f, FADE_OUT_TIME, FALSE, gCamera, LLFrameTimer::getElapsedTimeF32(), LLCoordFrame::getOrigin(), LLViewerCamera::getPixelVectors(), LLCoordFrame::getUpAxis(), LLViewerWindow::getWindowHeight(), glBegin, glColor4fv, glColor4ubv, glEnd, gViewerWindow, LLPointer< Type >::isNull(), llmax(), llmin(), mAnimTimer, markDead(), MAX_VISIBLE_TIME, mDistance, mHidden, mImagep, mLifeTimer, mPickID, mScale, LLHUDObject::mSourceObject, LLColor4::mV, LLColor4U::mV, LLVector3::mV, LLVector3::normVec(), TRUE, VALPHA, VX, VY, VZ, and LLColor4::white.

Referenced by render(), and renderForSelect().

void LLHUDIcon::restartLifeTimer (  )  [inline]

Definition at line 66 of file llhudicon.h.

References mLifeTimer, and LLFrameTimer::reset().

void LLHUDIcon::setHidden ( BOOL  hide  )  [inline]

Definition at line 78 of file llhudicon.h.

References mHidden.

Referenced by LLViewerObject::hideExtraDisplayItems().

void LLHUDIcon::setImage ( LLViewerImage imagep  ) 

Definition at line 179 of file llhudicon.cpp.

References mImagep, and TRUE.

void LLHUDIcon::setScale ( F32  fraction_of_fov  ) 

Definition at line 185 of file llhudicon.cpp.

References mScale.

void LLHUDIcon::updateAll (  )  [static]

Reimplemented from LLHUDObject.

Definition at line 242 of file llhudicon.cpp.

References cleanupDeadIcons().

Referenced by LLHUDObject::updateAll().


Friends And Related Function Documentation

friend class LLHUDObject [friend]

Definition at line 55 of file llhudicon.h.


Member Data Documentation

LLFrameTimer LLHUDIcon::mAnimTimer [private]

Definition at line 88 of file llhudicon.h.

Referenced by renderIcon().

F32 LLHUDIcon::mDistance [private]

Definition at line 90 of file llhudicon.h.

Referenced by getDistance(), and renderIcon().

BOOL LLHUDIcon::mHidden [private]

Definition at line 93 of file llhudicon.h.

Referenced by getHidden(), renderIcon(), and setHidden().

LLPointer<LLViewerImage> LLHUDIcon::mImagep [private]

Definition at line 87 of file llhudicon.h.

Referenced by renderIcon(), setImage(), and ~LLHUDIcon().

LLFrameTimer LLHUDIcon::mLifeTimer [private]

Definition at line 89 of file llhudicon.h.

Referenced by renderIcon(), and restartLifeTimer().

S32 LLHUDIcon::mPickID [private]

Definition at line 91 of file llhudicon.h.

Referenced by renderIcon().

F32 LLHUDIcon::mScale [private]

Definition at line 92 of file llhudicon.h.

Referenced by renderIcon(), and setScale().

LLHUDIcon::icon_instance_t LLHUDIcon::sIconInstances [static, private]

Definition at line 96 of file llhudicon.h.

Referenced by cleanupDeadIcons(), generatePickIDs(), getNumInstances(), handlePick(), iconsNearby(), and LLHUDIcon().


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