#include <llhudtext.h>
Definition at line 58 of file llhudtext.h.
typedef enum LLHUDText::e_text_alignment LLHUDText::ETextAlignment |
typedef enum LLHUDText::e_vert_alignment LLHUDText::EVertAlignment |
typedef std::set<LLPointer<LLHUDText> >::iterator LLHUDText::TextObjectIterator [private] |
Definition at line 178 of file llhudtext.h.
typedef std::vector<LLPointer<LLHUDText> >::iterator LLHUDText::VisibleTextObjectIterator [private] |
Definition at line 179 of file llhudtext.h.
LLHUDText::LLHUDText | ( | const U8 | type | ) | [protected] |
Definition at line 87 of file llhudtext.cpp.
References FALSE, mColor, mDoFade, mDropShadow, mFadeDistance, mFadeRange, mOffscreen, mRadius, mZCompare, sTextObjects, and TRUE.
LLHUDText::~LLHUDText | ( | ) | [private] |
Definition at line 117 of file llhudtext.cpp.
void LLHUDText::setStringUTF8 | ( | const std::string & | utf8string | ) |
Definition at line 449 of file llhudtext.cpp.
References setString(), and utf8str_to_wstring().
void LLHUDText::setString | ( | const LLWString & | wstring | ) |
Definition at line 454 of file llhudtext.cpp.
References addLine(), mColor, and mTextSegments.
Referenced by LLTracker::renderBeacon(), LLViewerObjectList::renderObjectBeacons(), and setStringUTF8().
void LLHUDText::clearString | ( | ) |
void LLHUDText::addLine | ( | const std::string & | text, | |
const LLColor4 & | color, | |||
const LLFontGL::StyleFlags | style = LLFontGL::NORMAL | |||
) |
Definition at line 466 of file llhudtext.cpp.
References utf8str_to_wstring().
Referenced by setString().
void LLHUDText::addLine | ( | const LLWString & | wtext, | |
const LLColor4 & | color, | |||
const LLFontGL::StyleFlags | style = LLFontGL::NORMAL | |||
) |
Definition at line 472 of file llhudtext.cpp.
References gNoRender, HUD_TEXT_MAX_WIDTH, HUD_TEXT_MAX_WIDTH_NO_BUBBLE, LLFontGL::maxDrawableChars(), mFontp, mTextSegments, mUseBubble, S32, TRUE, and utf8str_to_wstring().
void LLHUDText::setLabel | ( | const std::string & | label | ) |
Definition at line 503 of file llhudtext.cpp.
References utf8str_to_wstring().
void LLHUDText::setLabel | ( | const LLWString & | label | ) |
Definition at line 508 of file llhudtext.cpp.
References HUD_TEXT_MAX_WIDTH, HUD_TEXT_MAX_WIDTH_NO_BUBBLE, LLFontGL::maxDrawableChars(), mColor, mFontp, mLabelSegments, mUseBubble, LLFontGL::NORMAL, S32, TRUE, and utf8str_to_wstring().
void LLHUDText::setDropShadow | ( | const BOOL | do_shadow | ) |
void LLHUDText::setFont | ( | const LLFontGL * | font | ) |
Definition at line 549 of file llhudtext.cpp.
References mFontp.
Referenced by LLTracker::renderBeacon().
void LLHUDText::setColor | ( | const LLColor4 & | color | ) |
Definition at line 555 of file llhudtext.cpp.
References mColor, and mTextSegments.
Referenced by LLTracker::renderBeacon(), and LLViewerObjectList::renderObjectBeacons().
void LLHUDText::setUsePixelSize | ( | const BOOL | use_pixel_size | ) |
void LLHUDText::setZCompare | ( | const BOOL | zcompare | ) |
Definition at line 544 of file llhudtext.cpp.
References mZCompare.
Referenced by LLTracker::renderBeacon(), and LLViewerObjectList::renderObjectBeacons().
void LLHUDText::setDoFade | ( | const BOOL | do_fade | ) |
void LLHUDText::setVisibleOffScreen | ( | BOOL | visible | ) | [inline] |
void LLHUDText::setMaxLines | ( | S32 | max_lines | ) | [inline] |
void LLHUDText::updateVisibility | ( | ) |
Definition at line 576 of file llhudtext.cpp.
References FALSE, gAgent, LLCoordFrame::getAtAxis(), LLSingleton< LLViewerCamera >::getInstance(), LLCamera::getNear(), LLCoordFrame::getOrigin(), LLViewerCamera::getPixelVectors(), LLAgent::getPosAgentFromGlobal(), mDoFade, mFadeDistance, mFadeRange, mLastDistance, mLOD, mOffscreen, LLHUDObject::mOnHUDAttachment, mPositionAgent, LLHUDObject::mPositionGlobal, mPositionOffset, mRadius, LLHUDObject::mSourceObject, mTextSegments, LLVector2::mV, LLVector3::mV, LLHUDObject::mVisible, mVisibleOffScreen, LLVector3::normVec(), projected_vec(), sVisibleHUDTextObjects, sVisibleTextObjects, TRUE, VX, and VY.
Referenced by updateAll().
Definition at line 670 of file llhudtext.cpp.
References ALIGN_VERT_TOP, BUFFER_SIZE, CHAT_BAR_HEIGHT, FALSE, gChatBar, LLCamera::getAspect(), LLSingleton< LLViewerCamera >::getInstance(), LLViewerCamera::getPixelVectors(), LLView::getVisible(), LLViewerWindow::getWindowDisplayHeight(), LLViewerWindow::getWindowDisplayWidth(), gViewerWindow, llabs(), llclamp(), llmax(), MENU_BAR_HEIGHT, mHeight, mPositionAgent, mSoftScreenRect, LLVector2::mV, mVertAlignment, mVisibleOffScreen, mWidth, LLCoord::mX, LLCoord::mY, S32, LLRectBase< Type >::setCenterAndSize(), LLRectBase< Type >::setLeftTopAndSize(), LLVector2::setVec(), STATUS_BAR_HEIGHT, VX, and VY.
Referenced by renderText(), and updateAll().
void LLHUDText::updateSize | ( | ) |
Definition at line 733 of file llhudtext.cpp.
References LLFontGL::getLineHeight(), getMaxLines(), LLFrameTimer::getStarted(), HORIZONTAL_PADDING, HUD_TEXT_MAX_WIDTH, lerp(), llmax(), llmin(), mFontp, mHeight, mLabelSegments, mResizeTimer, mTextSegments, mWidth, S32, LLFrameTimer::start(), LLFrameTimer::stop(), and VERTICAL_PADDING.
Referenced by updateAll().
void LLHUDText::setMass | ( | F32 | mass | ) | [inline] |
Definition at line 112 of file llhudtext.h.
References llmax(), and mMass.
void LLHUDText::setTextAlignment | ( | ETextAlignment | alignment | ) | [inline] |
void LLHUDText::setVertAlignment | ( | EVertAlignment | alignment | ) | [inline] |
Definition at line 114 of file llhudtext.h.
References mVertAlignment.
Referenced by LLTracker::renderBeacon().
void LLHUDText::markDead | ( | ) | [virtual] |
Reimplemented from LLHUDObject.
Definition at line 946 of file llhudtext.cpp.
References LLHUDObject::markDead(), and sTextObjects.
F32 LLHUDText::getDistance | ( | ) | const [inline, virtual] |
Reimplemented from LLHUDObject.
Definition at line 117 of file llhudtext.h.
References mLastDistance.
void LLHUDText::setUseBubble | ( | BOOL | use_bubble | ) | [inline] |
S32 LLHUDText::getLOD | ( | ) | [inline] |
BOOL LLHUDText::getVisible | ( | ) | [inline] |
BOOL LLHUDText::getHidden | ( | ) | const [inline] |
void LLHUDText::setHidden | ( | BOOL | hide | ) | [inline] |
Definition at line 122 of file llhudtext.h.
References mHidden.
Referenced by LLViewerObject::hideExtraDisplayItems().
void LLHUDText::setOnHUDAttachment | ( | BOOL | on_hud | ) | [inline] |
void LLHUDText::renderAllHUD | ( | ) | [static] |
Definition at line 952 of file llhudtext.cpp.
References FALSE, and sVisibleHUDTextObjects.
Referenced by render_hud_elements().
void LLHUDText::addPickable | ( | std::set< LLViewerObject * > & | pick_list | ) | [static] |
Definition at line 966 of file llhudtext.cpp.
References sVisibleTextObjects.
Referenced by LLViewerObjectList::renderObjectsForSelect().
void LLHUDText::reshape | ( | ) | [static] |
Definition at line 983 of file llhudtext.cpp.
References mLabelSegments, mTextSegments, and sTextObjects.
Referenced by LLViewerWindow::rawSnapshot(), and LLViewerWindow::reshape().
static void LLHUDText::setDisplayText | ( | BOOL | flag | ) | [inline, static] |
Definition at line 127 of file llhudtext.h.
References sDisplayText.
Referenced by LLViewerWindow::thumbnailSnapshot().
void LLHUDText::render | ( | ) | [protected, virtual] |
Implements LLHUDObject.
Definition at line 122 of file llhudtext.cpp.
References FALSE, LLHUDObject::mOnHUDAttachment, renderText(), and sDisplayText.
void LLHUDText::renderForSelect | ( | ) | [protected, virtual] |
Reimplemented from LLHUDObject.
Definition at line 131 of file llhudtext.cpp.
References LLHUDObject::mOnHUDAttachment, renderText(), and TRUE.
void LLHUDText::renderText | ( | BOOL | for_select | ) | [protected] |
Reset the default color to white. The renderer expects this to be the default.
Definition at line 140 of file llhudtext.cpp.
References ALIGN_TEXT_CENTER, ALIGN_VERT_CENTER, ALIGN_VERT_TOP, LLGLImmediate::begin(), LLViewerImage::bindTexture(), LLFontGL::BOLD, LLGLImmediate::color4f(), LLGLImmediate::color4fv(), LLGLImmediate::color4ubv(), LLFontGL::DROP_SHADOW, LLGLImmediate::end(), FALSE, LLControlGroup::getColor4(), LLControlGroup::getF32(), LLSingleton< LLViewerCamera >::getInstance(), LLFontGL::getLineHeight(), getMaxLines(), LLViewerCamera::getPixelVectors(), LLUI::getUIImage(), LLViewerWindow::getWindowHeight(), LLViewerWindow::getWindowWidth(), gGL, gl_segmented_rect_3d_tex(), gl_segmented_rect_3d_tex_top(), gSavedSettings, gViewerWindow, HORIZONTAL_PADDING, hud_render_text(), LLPointer< Type >::isNull(), LLVertexBuffer::LINES, llabs(), llfloor(), llmax(), llmin(), lltrunc(), mBoldFontp, mColor, mDoFade, mDropShadow, mFadeDistance, mFadeRange, mFontp, mHeight, mHidden, mLabelSegments, mLastDistance, mOffscreen, mOffsetY, LLHUDObject::mOnHUDAttachment, mPositionAgent, mPositionOffset, mRadius, LLHUDObject::mSourceObject, mTextAlignment, mTextSegments, mUseBubble, LLColor4U::mV, LLVector3::mV, LLVector2::mV, LLColor4::mV, mVertAlignment, LLHUDObject::mVisible, mWidth, mZCompare, LLUI::popMatrix(), LLViewerCamera::projectPosAgentToScreen(), LLUI::pushMatrix(), S32, LLColor4::setAlpha(), LLUI::setLineWidth(), LLUI::translate(), TRUE, LLImageGL::unbindTexture(), updateScreenPos(), VALPHA, LLGLImmediate::vertex3fv(), VERTICAL_PADDING, VX, VY, VZ, LLVector3::y_axis, LLVector3::z_axis, and LLVector3::zero.
Referenced by render(), and renderForSelect().
void LLHUDText::updateAll | ( | ) | [static, protected] |
Reimplemented from LLHUDObject.
Definition at line 784 of file llhudtext.cpp.
References BUFFER_SIZE, LLVector2::clearVec(), LLRectBase< Type >::getCenterX(), LLRectBase< Type >::getCenterY(), LLStat::getCurrent(), LLRectBase< Type >::getHeight(), LLSingleton< LLViewerCamera >::getInstance(), LLCriticalDamp::getInterpolant(), LLViewerCamera::getVelocityStat(), LLRectBase< Type >::getWidth(), LLViewerWindow::getWindowHeight(), LLViewerWindow::getWindowWidth(), gViewerWindow, i, LLRectBase< Type >::intersectWith(), lerp(), llmin(), LOD_0_SCREEN_COVERAGE, LOD_1_SCREEN_COVERAGE, LOD_2_SCREEN_COVERAGE, MAX_STABLE_CAMERA_VELOCITY, mMass, mSoftScreenRect, mTargetPositionOffset, mUseBubble, LLVector2::mV, LLVector2::normVec(), NUM_OVERLAP_ITERATIONS, POSITION_DAMPING_TC, LLRectBase< Type >::rectInRect(), S32, setLOD(), LLVector2::setVec(), SPRING_STRENGTH, sTextObjects, LLRectBase< Type >::stretch(), sVisibleHUDTextObjects, sVisibleTextObjects, updateScreenPos(), updateSize(), updateVisibility(), VX, VY, and LLVector2::zero.
Referenced by LLHUDObject::updateAll().
void LLHUDText::setLOD | ( | S32 | lod | ) | [protected] |
Definition at line 921 of file llhudtext.cpp.
References mLOD.
Referenced by updateAll().
S32 LLHUDText::getMaxLines | ( | ) | [protected] |
Definition at line 930 of file llhudtext.cpp.
References mLOD, and mMaxLines.
Referenced by renderText(), and updateSize().
friend class LLHUDObject [friend] |
Definition at line 116 of file llhudtext.h.
BOOL LLHUDText::mOnHUD [private] |
Definition at line 140 of file llhudtext.h.
BOOL LLHUDText::mUseBubble [private] |
Definition at line 141 of file llhudtext.h.
Referenced by addLine(), renderText(), setLabel(), setUseBubble(), and updateAll().
BOOL LLHUDText::mDropShadow [private] |
Definition at line 142 of file llhudtext.h.
Referenced by LLHUDText(), renderText(), and setDropShadow().
BOOL LLHUDText::mDoFade [private] |
Definition at line 143 of file llhudtext.h.
Referenced by LLHUDText(), renderText(), setDoFade(), and updateVisibility().
F32 LLHUDText::mFadeRange [private] |
Definition at line 144 of file llhudtext.h.
Referenced by LLHUDText(), renderText(), setFadeDistance(), and updateVisibility().
F32 LLHUDText::mFadeDistance [private] |
Definition at line 145 of file llhudtext.h.
Referenced by LLHUDText(), renderText(), setFadeDistance(), and updateVisibility().
F32 LLHUDText::mLastDistance [private] |
Definition at line 146 of file llhudtext.h.
Referenced by getDistance(), renderText(), and updateVisibility().
BOOL LLHUDText::mUsePixelSize [private] |
BOOL LLHUDText::mZCompare [private] |
Definition at line 148 of file llhudtext.h.
Referenced by LLHUDText(), renderText(), and setZCompare().
BOOL LLHUDText::mVisibleOffScreen [private] |
Definition at line 149 of file llhudtext.h.
Referenced by setVisibleOffScreen(), updateScreenPos(), and updateVisibility().
BOOL LLHUDText::mOffscreen [private] |
Definition at line 150 of file llhudtext.h.
Referenced by LLHUDText(), renderText(), and updateVisibility().
LLColor4 LLHUDText::mColor [private] |
Definition at line 151 of file llhudtext.h.
Referenced by LLHUDText(), renderText(), setColor(), setLabel(), and setString().
LLVector3 LLHUDText::mScale [private] |
Definition at line 152 of file llhudtext.h.
F32 LLHUDText::mWidth [private] |
Definition at line 153 of file llhudtext.h.
Referenced by renderText(), updateScreenPos(), and updateSize().
F32 LLHUDText::mHeight [private] |
Definition at line 154 of file llhudtext.h.
Referenced by renderText(), updateScreenPos(), and updateSize().
LLColor4U LLHUDText::mPickColor [private] |
Definition at line 155 of file llhudtext.h.
const LLFontGL* LLHUDText::mFontp [private] |
Definition at line 156 of file llhudtext.h.
Referenced by addLine(), renderText(), setFont(), setLabel(), and updateSize().
const LLFontGL* LLHUDText::mBoldFontp [private] |
LLRectf LLHUDText::mSoftScreenRect [private] |
LLVector3 LLHUDText::mPositionAgent [private] |
Definition at line 159 of file llhudtext.h.
Referenced by renderText(), updateScreenPos(), and updateVisibility().
LLVector2 LLHUDText::mPositionOffset [private] |
LLVector2 LLHUDText::mTargetPositionOffset [private] |
F32 LLHUDText::mMass [private] |
S32 LLHUDText::mMaxLines [private] |
S32 LLHUDText::mOffsetY [private] |
F32 LLHUDText::mRadius [private] |
Definition at line 165 of file llhudtext.h.
Referenced by LLHUDText(), renderText(), and updateVisibility().
std::vector<LLHUDTextSegment> LLHUDText::mTextSegments [private] |
Definition at line 166 of file llhudtext.h.
Referenced by addLine(), clearString(), renderText(), reshape(), setColor(), setString(), updateSize(), and updateVisibility().
std::vector<LLHUDTextSegment> LLHUDText::mLabelSegments [private] |
Definition at line 167 of file llhudtext.h.
Referenced by renderText(), reshape(), setLabel(), and updateSize().
LLFrameTimer LLHUDText::mResizeTimer [private] |
ETextAlignment LLHUDText::mTextAlignment [private] |
EVertAlignment LLHUDText::mVertAlignment [private] |
Definition at line 170 of file llhudtext.h.
Referenced by renderText(), setVertAlignment(), and updateScreenPos().
S32 LLHUDText::mLOD [private] |
Definition at line 171 of file llhudtext.h.
Referenced by getLOD(), getMaxLines(), setLOD(), and updateVisibility().
BOOL LLHUDText::mHidden [private] |
Definition at line 172 of file llhudtext.h.
Referenced by getHidden(), renderText(), and setHidden().
BOOL LLHUDText::sDisplayText = TRUE [static, private] |
std::set< LLPointer< LLHUDText > > LLHUDText::sTextObjects [static, private] |
Definition at line 175 of file llhudtext.h.
Referenced by LLHUDText(), markDead(), reshape(), and updateAll().
std::vector< LLPointer< LLHUDText > > LLHUDText::sVisibleTextObjects [static, private] |
Definition at line 176 of file llhudtext.h.
Referenced by addPickable(), updateAll(), and updateVisibility().
std::vector< LLPointer< LLHUDText > > LLHUDText::sVisibleHUDTextObjects [static, private] |
Definition at line 177 of file llhudtext.h.
Referenced by renderAllHUD(), updateAll(), and updateVisibility().