#include <llhudtext.h>
Inheritance diagram for LLHUDText:


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 85 of file llhudtext.cpp.
References f, FALSE, LLControlGroup::getColor4(), gSavedSettings, mBackgroundColor, mColor, mDoFade, mDropShadow, mFadeDistance, mFadeRange, mOffscreen, mRadius, mZCompare, sTextObjects, and TRUE.
| LLHUDText::~LLHUDText | ( | ) |  [private] | 
Definition at line 116 of file llhudtext.cpp.
| void LLHUDText::addLine | ( | const LLWString & | wtext, | |
| const LLColor4 & | color, | |||
| const LLFontGL::StyleFlags | style = LLFontGL::NORMAL | |||
| ) | 
Definition at line 470 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::addLine | ( | const std::string & | text, | |
| const LLColor4 & | color, | |||
| const LLFontGL::StyleFlags | style = LLFontGL::NORMAL | |||
| ) | 
Definition at line 464 of file llhudtext.cpp.
References utf8str_to_wstring().
Referenced by setString().
| void LLHUDText::addPickable | ( | std::set< LLViewerObject * > & | pick_list | ) |  [static] | 
Definition at line 968 of file llhudtext.cpp.
References sVisibleTextObjects.
Referenced by LLViewerObjectList::renderObjectsForSelect().
| void LLHUDText::clearString | ( | ) | 
| F32 LLHUDText::getDistance | ( | ) | const  [inline, virtual] | 
Reimplemented from LLHUDObject.
Definition at line 118 of file llhudtext.h.
References mLastDistance.
| BOOL LLHUDText::getHidden | ( | ) | const  [inline] | 
| S32 LLHUDText::getLOD | ( | ) |  [inline] | 
| S32 LLHUDText::getMaxLines | ( | ) |  [protected] | 
Definition at line 932 of file llhudtext.cpp.
References mLOD, and mMaxLines.
Referenced by renderText(), and updateSize().
| BOOL LLHUDText::getVisible | ( | ) |  [inline] | 
| void LLHUDText::markDead | ( | ) |  [virtual] | 
Reimplemented from LLHUDObject.
Definition at line 948 of file llhudtext.cpp.
References LLHUDObject::markDead(), and sTextObjects.
| void LLHUDText::render | ( | ) |  [protected, virtual] | 
Implements LLHUDObject.
Definition at line 121 of file llhudtext.cpp.
References FALSE, LLHUDObject::mOnHUDAttachment, and renderText().
| void LLHUDText::renderAllHUD | ( | ) |  [static] | 
Definition at line 954 of file llhudtext.cpp.
References depth, FALSE, and sVisibleHUDTextObjects.
Referenced by render_hud_elements().
| void LLHUDText::renderForSelect | ( | ) |  [protected, virtual] | 
Reimplemented from LLHUDObject.
Definition at line 130 of file llhudtext.cpp.
References LLHUDObject::mOnHUDAttachment, renderText(), and TRUE.
Definition at line 139 of file llhudtext.cpp.
References ALIGN_TEXT_CENTER, ALIGN_VERT_CENTER, ALIGN_VERT_TOP, LLViewerImage::bindTexture(), LLFontGL::BOLD, LLFontGL::DROP_SHADOW, f, FALSE, gCamera, LLControlGroup::getF32(), LLImageGL::getHeight(), LLViewerImageList::getImage(), LLFontGL::getLineHeight(), getMaxLines(), LLViewerCamera::getPixelVectors(), LLControlGroup::getString(), LLImageGL::getWidth(), LLViewerWindow::getWindowHeight(), LLViewerWindow::getWindowWidth(), gImageList, gl_segmented_rect_3d_tex(), gl_segmented_rect_3d_tex_top(), glBegin, glColor4f, glColor4fv, glColor4ubv, glEnd, gSavedSettings, gViewerArt, gViewerWindow, HORIZONTAL_PADDING, hud_render_text(), LLPointer< Type >::isNull(), llabs(), llfloor(), llmax(), llmin(), lltrunc(), mBackgroundColor, mBoldFontp, mColor, mDoFade, mDropShadow, mFadeDistance, mFadeRange, mFontp, mHeight, mHidden, MIPMAP_FALSE, 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, LLUUID::set(), LLColor4::setAlpha(), LLUI::setLineWidth(), LLUI::translate(), TRUE, updateScreenPos(), VALPHA, VERTICAL_PADDING, VX, VY, VZ, LLVector3::y_axis, LLVector3::z_axis, and LLVector3::zero.
Referenced by render(), and renderForSelect().
| void LLHUDText::reshape | ( | ) |  [static] | 
Definition at line 985 of file llhudtext.cpp.
References sTextObjects.
Referenced by LLViewerWindow::rawSnapshot(), and LLViewerWindow::reshape().
Definition at line 553 of file llhudtext.cpp.
References mColor, and mTextSegments.
Referenced by LLTracker::renderBeacon(), and LLViewerObjectList::renderObjectBeacons().
Definition at line 547 of file llhudtext.cpp.
References mFontp.
Referenced by LLTracker::renderBeacon().
Definition at line 123 of file llhudtext.h.
References mHidden.
Referenced by LLViewerObject::hideExtraDisplayItems().
Definition at line 506 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::setLabel | ( | const std::string & | label | ) | 
Definition at line 452 of file llhudtext.cpp.
References addLine(), mColor, and mTextSegments.
Referenced by LLTracker::renderBeacon(), LLViewerObjectList::renderObjectBeacons(), and setStringUTF8().
| void LLHUDText::setStringUTF8 | ( | const std::string & | utf8string | ) | 
| void LLHUDText::setTextAlignment | ( | ETextAlignment | alignment | ) |  [inline] | 
| void LLHUDText::setVertAlignment | ( | EVertAlignment | alignment | ) |  [inline] | 
Definition at line 115 of file llhudtext.h.
References mVertAlignment.
Referenced by LLTracker::renderBeacon().
Definition at line 542 of file llhudtext.cpp.
References mZCompare.
Referenced by LLTracker::renderBeacon(), and LLViewerObjectList::renderObjectBeacons().
| void LLHUDText::updateAll | ( | ) |  [static, protected] | 
Reimplemented from LLHUDObject.
Definition at line 786 of file llhudtext.cpp.
References BUFFER_SIZE, f, gCamera, LLStat::getCurrent(), LLCriticalDamp::getInterpolant(), LLViewerCamera::getVelocityStat(), LLViewerWindow::getWindowHeight(), LLViewerWindow::getWindowWidth(), gViewerWindow, i, lerp(), llmin(), LOD_0_SCREEN_COVERAGE, LOD_1_SCREEN_COVERAGE, LOD_2_SCREEN_COVERAGE, MAX_STABLE_CAMERA_VELOCITY, LLVector2::mV, LLVector2::normVec(), NUM_OVERLAP_ITERATIONS, POSITION_DAMPING_TC, S32, LLVector2::setVec(), SPRING_STRENGTH, sTextObjects, sVisibleHUDTextObjects, sVisibleTextObjects, VX, VY, and LLVector2::zero.
Referenced by LLHUDObject::updateAll().
Definition at line 672 of file llhudtext.cpp.
References ALIGN_VERT_TOP, bottom, BUFFER_SIZE, CHAT_BAR_HEIGHT, f, FALSE, gCamera, gChatBar, LLCamera::getAspect(), 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, LLVector2::normVec(), LLViewerCamera::projectPosAgentToScreen(), S32, LLRectBase< Type >::setCenterAndSize(), LLRectBase< Type >::setLeftTopAndSize(), LLVector2::setVec(), STATUS_BAR_HEIGHT, VX, and VY.
Referenced by renderText().
| void LLHUDText::updateSize | ( | ) | 
Definition at line 735 of file llhudtext.cpp.
References f, LLFontGL::getLineHeight(), getMaxLines(), LLFrameTimer::getStarted(), height, HORIZONTAL_PADDING, HUD_TEXT_MAX_WIDTH, lerp(), llmax(), llmin(), mFontp, mHeight, mLabelSegments, mResizeTimer, mTextSegments, mWidth, S32, LLFrameTimer::start(), LLFrameTimer::stop(), u, VERTICAL_PADDING, and width.
| void LLHUDText::updateVisibility | ( | ) | 
Definition at line 578 of file llhudtext.cpp.
References f, FALSE, gAgent, gCamera, LLCoordFrame::getAtAxis(), 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(), LLCamera::sphereInFrustum(), sVisibleHUDTextObjects, sVisibleTextObjects, TRUE, VX, and VY.
| friend class LLHUDObject  [friend] | 
Definition at line 117 of file llhudtext.h.
| LLColor4 LLHUDText::mBackgroundColor  [private] | 
Definition at line 152 of file llhudtext.h.
Referenced by LLHUDText(), renderText(), and setBackgroundColor().
| const LLFontGL* LLHUDText::mBoldFontp  [private] | 
| LLColor4 LLHUDText::mColor  [private] | 
Definition at line 151 of file llhudtext.h.
Referenced by LLHUDText(), renderText(), setColor(), setLabel(), and setString().
| BOOL LLHUDText::mDoFade  [private] | 
Definition at line 143 of file llhudtext.h.
Referenced by LLHUDText(), renderText(), setDoFade(), and updateVisibility().
| BOOL LLHUDText::mDropShadow  [private] | 
Definition at line 142 of file llhudtext.h.
Referenced by LLHUDText(), renderText(), and setDropShadow().
| F32 LLHUDText::mFadeDistance  [private] | 
Definition at line 145 of file llhudtext.h.
Referenced by LLHUDText(), renderText(), setFadeDistance(), and updateVisibility().
| F32 LLHUDText::mFadeRange  [private] | 
Definition at line 144 of file llhudtext.h.
Referenced by LLHUDText(), renderText(), setFadeDistance(), and updateVisibility().
| const LLFontGL* LLHUDText::mFontp  [private] | 
Definition at line 157 of file llhudtext.h.
Referenced by addLine(), renderText(), setFont(), setLabel(), and updateSize().
| F32 LLHUDText::mHeight  [private] | 
Definition at line 155 of file llhudtext.h.
Referenced by renderText(), updateScreenPos(), and updateSize().
| BOOL LLHUDText::mHidden  [private] | 
Definition at line 173 of file llhudtext.h.
Referenced by getHidden(), renderText(), and setHidden().
| std::vector<LLHUDTextSegment> LLHUDText::mLabelSegments  [private] | 
Definition at line 168 of file llhudtext.h.
Referenced by renderText(), setLabel(), and updateSize().
| F32 LLHUDText::mLastDistance  [private] | 
Definition at line 146 of file llhudtext.h.
Referenced by getDistance(), renderText(), and updateVisibility().
| S32 LLHUDText::mLOD  [private] | 
Definition at line 172 of file llhudtext.h.
Referenced by getLOD(), getMaxLines(), setLOD(), and updateVisibility().
| F32 LLHUDText::mMass  [private] | 
| S32 LLHUDText::mMaxLines  [private] | 
| BOOL LLHUDText::mOffscreen  [private] | 
Definition at line 150 of file llhudtext.h.
Referenced by LLHUDText(), renderText(), and updateVisibility().
| S32 LLHUDText::mOffsetY  [private] | 
| BOOL LLHUDText::mOnHUD  [private] | 
Definition at line 140 of file llhudtext.h.
| LLColor4U LLHUDText::mPickColor  [private] | 
Definition at line 156 of file llhudtext.h.
| LLVector3 LLHUDText::mPositionAgent  [private] | 
Definition at line 160 of file llhudtext.h.
Referenced by renderText(), updateScreenPos(), and updateVisibility().
| LLVector2 LLHUDText::mPositionOffset  [private] | 
| F32 LLHUDText::mRadius  [private] | 
Definition at line 166 of file llhudtext.h.
Referenced by LLHUDText(), renderText(), and updateVisibility().
| LLFrameTimer LLHUDText::mResizeTimer  [private] | 
| LLVector3 LLHUDText::mScale  [private] | 
Definition at line 153 of file llhudtext.h.
| LLRectf LLHUDText::mSoftScreenRect  [private] | 
| LLVector2 LLHUDText::mTargetPositionOffset  [private] | 
Definition at line 162 of file llhudtext.h.
| ETextAlignment LLHUDText::mTextAlignment  [private] | 
| std::vector<LLHUDTextSegment> LLHUDText::mTextSegments  [private] | 
Definition at line 167 of file llhudtext.h.
Referenced by addLine(), clearString(), renderText(), setColor(), setString(), updateSize(), and updateVisibility().
| BOOL LLHUDText::mUseBubble  [private] | 
Definition at line 141 of file llhudtext.h.
Referenced by addLine(), renderText(), setLabel(), and setUseBubble().
| BOOL LLHUDText::mUsePixelSize  [private] | 
| EVertAlignment LLHUDText::mVertAlignment  [private] | 
Definition at line 171 of file llhudtext.h.
Referenced by renderText(), setVertAlignment(), and updateScreenPos().
| BOOL LLHUDText::mVisibleOffScreen  [private] | 
Definition at line 149 of file llhudtext.h.
Referenced by setVisibleOffScreen(), updateScreenPos(), and updateVisibility().
| F32 LLHUDText::mWidth  [private] | 
Definition at line 154 of file llhudtext.h.
Referenced by renderText(), updateScreenPos(), and updateSize().
| BOOL LLHUDText::mZCompare  [private] | 
Definition at line 148 of file llhudtext.h.
Referenced by LLHUDText(), renderText(), and setZCompare().
| 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::sVisibleHUDTextObjects  [static, private] | 
Definition at line 177 of file llhudtext.h.
Referenced by renderAllHUD(), updateAll(), and updateVisibility().
| std::vector< LLPointer< LLHUDText > > LLHUDText::sVisibleTextObjects  [static, private] | 
Definition at line 176 of file llhudtext.h.
Referenced by addPickable(), updateAll(), and updateVisibility().
 1.4.7
 1.4.7