#include <llhudicon.h>
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::render | ( | ) | [virtual] |
Implements LLHUDObject.
Definition at line 203 of file llhudicon.cpp.
References FALSE, and renderIcon().
void LLHUDIcon::renderForSelect | ( | ) | [virtual] |
Reimplemented from LLHUDObject.
Definition at line 208 of file llhudicon.cpp.
References renderIcon(), and TRUE.
void LLHUDIcon::markDead | ( | ) | [virtual] |
Reimplemented from LLHUDObject.
Definition at line 194 of file llhudicon.cpp.
References LLHUDObject::markDead(), and LLHUDObject::mSourceObject.
Referenced by renderIcon().
F32 LLHUDIcon::getDistance | ( | ) | const [inline, virtual] |
void LLHUDIcon::setImage | ( | LLViewerImage * | imagep | ) |
void LLHUDIcon::setScale | ( | F32 | fraction_of_fov | ) |
void LLHUDIcon::restartLifeTimer | ( | ) | [inline] |
Definition at line 66 of file llhudicon.h.
References mLifeTimer, and LLFrameTimer::reset().
Definition at line 215 of file llhudicon.cpp.
References S32, and sIconInstances.
Referenced by LLViewerObjectList::renderObjectsForSelect().
Definition at line 230 of file llhudicon.cpp.
References NULL, and sIconInstances.
Referenced by LLViewerWindow::performPick().
void LLHUDIcon::updateAll | ( | ) | [static] |
Reimplemented from LLHUDObject.
Definition at line 246 of file llhudicon.cpp.
References cleanupDeadIcons().
Referenced by LLHUDObject::updateAll().
void LLHUDIcon::cleanupDeadIcons | ( | ) | [static] |
Definition at line 258 of file llhudicon.cpp.
References sIconInstances.
Referenced by LLHUDObject::cleanupHUDObjects(), and updateAll().
S32 LLHUDIcon::getNumInstances | ( | ) | [static] |
Definition at line 282 of file llhudicon.cpp.
References S32, and sIconInstances.
Referenced by LLViewerObjectList::renderObjectsForSelect().
BOOL LLHUDIcon::iconsNearby | ( | ) | [static] |
Definition at line 252 of file llhudicon.cpp.
References sIconInstances.
Referenced by LLStatusBar::refresh().
BOOL LLHUDIcon::getHidden | ( | ) | const [inline] |
void LLHUDIcon::setHidden | ( | BOOL | hide | ) | [inline] |
Definition at line 78 of file llhudicon.h.
References mHidden.
Referenced by LLViewerObject::hideExtraDisplayItems().
void LLHUDIcon::renderIcon | ( | BOOL | for_select | ) | [protected] |
Definition at line 83 of file llhudicon.cpp.
References LLVector3::abs(), ANIM_TIME, LLGLImmediate::begin(), LLViewerImage::bindTexture(), calc_bouncy_animation(), clamp_rescale(), LLGLImmediate::color4fv(), LLGLImmediate::color4ubv(), DIST_END_FADE, DIST_START_FADE, dist_vec(), LLGLImmediate::end(), FADE_OUT_TIME, LLFrameTimer::getElapsedTimeF32(), LLSingleton< LLViewerCamera >::getInstance(), LLCoordFrame::getOrigin(), LLViewerCamera::getPixelVectors(), LLCoordFrame::getUpAxis(), LLViewerWindow::getWindowHeight(), gGL, 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(), LLVertexBuffer::QUADS, LLGLImmediate::texCoord2f(), LLImageGL::unbindTexture(), VALPHA, LLGLImmediate::vertex3fv(), VX, VY, VZ, and LLColor4::white.
Referenced by render(), and renderForSelect().
friend class LLHUDObject [friend] |
Definition at line 55 of file llhudicon.h.
LLPointer<LLViewerImage> LLHUDIcon::mImagep [private] |
Definition at line 87 of file llhudicon.h.
Referenced by renderIcon(), setImage(), and ~LLHUDIcon().
LLFrameTimer LLHUDIcon::mAnimTimer [private] |
LLFrameTimer LLHUDIcon::mLifeTimer [private] |
F32 LLHUDIcon::mDistance [private] |
S32 LLHUDIcon::mPickID [private] |
F32 LLHUDIcon::mScale [private] |
BOOL LLHUDIcon::mHidden [private] |
Definition at line 93 of file llhudicon.h.
Referenced by getHidden(), renderIcon(), and setHidden().
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().