#include <llhudicon.h>
Inheritance diagram for LLHUDIcon:
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 LLHUDIcon * | handlePick (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< LLViewerImage > | mImagep |
LLFrameTimer | mAnimTimer |
LLFrameTimer | mLifeTimer |
F32 | mDistance |
S32 | mPickID |
F32 | mScale |
BOOL | mHidden |
Static Private Attributes | |
static icon_instance_t | sIconInstances |
Friends | |
class | LLHUDObject |
Definition at line 53 of file llhudicon.h.
typedef std::vector<LLPointer<LLHUDIcon> > LLHUDIcon::icon_instance_t [private] |
Definition at line 95 of file llhudicon.h.
LLHUDIcon::LLHUDIcon | ( | const U8 | type | ) | [protected] |
LLHUDIcon::~LLHUDIcon | ( | ) | [protected] |
void LLHUDIcon::cleanupDeadIcons | ( | ) | [static] |
Definition at line 254 of file llhudicon.cpp.
References sIconInstances.
Referenced by LLHUDObject::cleanupHUDObjects(), and updateAll().
Definition at line 211 of file llhudicon.cpp.
References S32, and sIconInstances.
Referenced by LLViewerObjectList::renderObjectsForSelect().
F32 LLHUDIcon::getDistance | ( | ) | const [inline, virtual] |
BOOL LLHUDIcon::getHidden | ( | ) | const [inline] |
S32 LLHUDIcon::getNumInstances | ( | ) | [static] |
Definition at line 278 of file llhudicon.cpp.
References S32, and sIconInstances.
Referenced by LLViewerObjectList::renderObjectsForSelect().
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.
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 78 of file llhudicon.h.
References mHidden.
Referenced by LLViewerObject::hideExtraDisplayItems().
void LLHUDIcon::setImage | ( | LLViewerImage * | imagep | ) |
void LLHUDIcon::updateAll | ( | ) | [static] |
Reimplemented from LLHUDObject.
Definition at line 242 of file llhudicon.cpp.
References cleanupDeadIcons().
Referenced by LLHUDObject::updateAll().
friend class LLHUDObject [friend] |
Definition at line 55 of file llhudicon.h.
LLFrameTimer LLHUDIcon::mAnimTimer [private] |
F32 LLHUDIcon::mDistance [private] |
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] |
S32 LLHUDIcon::mPickID [private] |
F32 LLHUDIcon::mScale [private] |
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().