#include <llstatbar.h>
Public Member Functions | |
LLStatBar (const std::string &name, const LLRect &rect) | |
virtual void | draw () |
virtual BOOL | handleMouseDown (S32 x, S32 y, MASK mask) |
const LLString & | getLabel () const |
void | setLabel (const LLString &label) |
void | setUnitLabel (const LLString &unit_label) |
LLRect | getRequiredRect () |
Public Attributes | |
F32 | mMinBar |
F32 | mMaxBar |
F32 | mTickSpacing |
F32 | mLabelSpacing |
U32 | mPrecision |
BOOL | mPerSec |
BOOL | mDisplayBar |
BOOL | mDisplayHistory |
BOOL | mDisplayMean |
F32 | mUpdatesPerSec |
LLStat * | mStatp |
Private Attributes | |
LLFrameTimer | mUpdateTimer |
LLString | mLabel |
LLString | mUnitLabel |
F32 | mValue |
Definition at line 40 of file llstatbar.h.
LLStatBar::LLStatBar | ( | const std::string & | name, | |
const LLRect & | rect | |||
) |
Definition at line 45 of file llstatbar.cpp.
References FALSE, mDisplayBar, mDisplayHistory, mDisplayMean, mLabel, mLabelSpacing, mMaxBar, mMinBar, mPerSec, mPrecision, mStatp, mTickSpacing, mUpdatesPerSec, mValue, NULL, and TRUE.
void LLStatBar::draw | ( | void | ) | [virtual] |
Reimplemented from LLView.
Definition at line 88 of file llstatbar.cpp.
References LLView::draw(), LLStat::getCurrent(), LLStat::getCurrentPerSec(), LLFrameTimer::getElapsedTimeF32(), LLRectBase< Type >::getHeight(), LLStat::getMax(), LLStat::getMaxPerSec(), LLStat::getMean(), LLStat::getMeanPerSec(), LLStat::getMin(), LLStat::getMinPerSec(), LLStat::getNextBin(), LLStat::getNumValues(), LLStat::getPrev(), LLStat::getPrevPerSec(), LLView::getRect(), LLRectBase< Type >::getWidth(), gl_rect_2d(), i, LLFontGL::LEFT, llendl, llfloor(), llwarns, mDisplayBar, mDisplayHistory, mDisplayMean, mLabel, mLabelSpacing, mMaxBar, mMinBar, mPerSec, mPrecision, mStatp, mTickSpacing, mUnitLabel, mUpdatesPerSec, mUpdateTimer, mValue, LLFontGL::renderUTF8(), LLFrameTimer::reset(), LLFontGL::RIGHT, S32, LLFontGL::sMonospace, and LLFontGL::TOP.
Reimplemented from LLView.
Definition at line 63 of file llstatbar.cpp.
References FALSE, LLRectBase< Type >::getHeight(), LLView::getParent(), LLView::getRect(), LLRectBase< Type >::getWidth(), mDisplayBar, mDisplayHistory, LLView::reshape(), and TRUE.
const LLString & LLStatBar::getLabel | ( | void | ) | const |
Definition at line 261 of file llstatbar.cpp.
References mLabel.
Referenced by LLStatView::getStatBar().
void LLStatBar::setLabel | ( | const LLString & | label | ) |
Definition at line 266 of file llstatbar.cpp.
References mLabel.
Referenced by init_stat_view().
void LLStatBar::setUnitLabel | ( | const LLString & | unit_label | ) |
Definition at line 271 of file llstatbar.cpp.
References mUnitLabel.
Referenced by init_stat_view().
LLRect LLStatBar::getRequiredRect | ( | ) | [virtual] |
Reimplemented from LLView.
Definition at line 276 of file llstatbar.cpp.
References mDisplayBar, mDisplayHistory, and LLRectBase< Type >::mTop.
Definition at line 53 of file llstatbar.h.
Referenced by draw(), LLFloaterJoystick::draw(), init_stat_view(), LLStatBar(), and LLFloaterJoystick::postBuild().
Definition at line 54 of file llstatbar.h.
Referenced by draw(), LLFloaterJoystick::draw(), init_stat_view(), LLStatBar(), and LLFloaterJoystick::postBuild().
Definition at line 55 of file llstatbar.h.
Referenced by draw(), init_stat_view(), LLStatBar(), and LLFloaterJoystick::postBuild().
Definition at line 56 of file llstatbar.h.
Referenced by draw(), init_stat_view(), LLStatBar(), and LLFloaterJoystick::postBuild().
Definition at line 59 of file llstatbar.h.
Referenced by draw(), getRequiredRect(), handleMouseDown(), init_stat_view(), and LLStatBar().
Definition at line 60 of file llstatbar.h.
Referenced by draw(), getRequiredRect(), handleMouseDown(), init_stat_view(), and LLStatBar().
Definition at line 64 of file llstatbar.h.
Referenced by LLStatView::addStat(), draw(), and LLStatBar().
LLFrameTimer LLStatBar::mUpdateTimer [private] |
LLString LLStatBar::mLabel [private] |
Definition at line 67 of file llstatbar.h.
Referenced by draw(), getLabel(), LLStatBar(), and setLabel().
LLString LLStatBar::mUnitLabel [private] |
F32 LLStatBar::mValue [private] |