#include <llstatgraph.h>
Public Member Functions | |
LLStatGraph (const std::string &name, const LLRect &rect) | |
virtual void | draw () |
void | setLabel (const char *label) |
void | setUnits (const char *units) |
void | setPrecision (const S32 precision) |
void | setStat (LLStat *statp) |
void | setThreshold (const S32 i, F32 value) |
void | setMin (const F32 min) |
void | setMax (const F32 max) |
void | setValue (const LLSD &value) |
Public Attributes | |
LLStat * | mStatp |
BOOL | mPerSec |
Private Attributes | |
F32 | mValue |
F32 | mMin |
F32 | mMax |
LLFrameTimer | mUpdateTimer |
LLString | mLabel |
LLString | mUnits |
S32 | mPrecision |
S32 | mNumThresholds |
F32 | mThresholds [4] |
LLColor4 | mThresholdColors [4] |
Definition at line 41 of file llstatgraph.h.
LLStatGraph::LLStatGraph | ( | const std::string & | name, | |
const LLRect & | rect | |||
) |
Definition at line 46 of file llstatgraph.cpp.
References mMax, mMin, mNumThresholds, mPerSec, mPrecision, mStatp, mThresholdColors, mThresholds, mValue, NULL, LLView::setToolTip(), and TRUE.
void LLStatGraph::draw | ( | void | ) | [virtual] |
Reimplemented from LLView.
Definition at line 66 of file llstatgraph.cpp.
References LLColor4::black, LLGLImmediate::color4fv(), FALSE, gColors, LLControlGroup::getColor(), LLFrameTimer::getElapsedTimeF32(), LLStat::getMean(), LLStat::getMeanPerSec(), LLView::getRect(), gGL, gl_rect_2d(), i, llformat(), llmax(), llmin(), llround(), mLabel, mMax, mMin, mNumThresholds, mPerSec, mPrecision, mStatp, mThresholdColors, mThresholds, mUnits, mUpdateTimer, LLColor4::mV, mValue, LLFrameTimer::reset(), S32, LLView::setToolTip(), and TRUE.
void LLStatGraph::setLabel | ( | const char * | label | ) |
Definition at line 143 of file llstatgraph.cpp.
References mLabel.
Referenced by LLStatusBar::LLStatusBar().
void LLStatGraph::setUnits | ( | const char * | units | ) |
Definition at line 148 of file llstatgraph.cpp.
References mUnits.
Referenced by LLStatusBar::LLStatusBar().
void LLStatGraph::setPrecision | ( | const S32 | precision | ) |
Definition at line 153 of file llstatgraph.cpp.
References mPrecision.
Referenced by LLStatusBar::LLStatusBar().
void LLStatGraph::setStat | ( | LLStat * | statp | ) |
Definition at line 138 of file llstatgraph.cpp.
References mStatp.
Referenced by LLStatusBar::LLStatusBar().
Definition at line 158 of file llstatgraph.cpp.
References mThresholds.
Referenced by LLStatusBar::LLStatusBar(), and LLStatusBar::refresh().
void LLStatGraph::setMin | ( | const F32 | min | ) |
Definition at line 128 of file llstatgraph.cpp.
References mMin.
Referenced by LLStatusBar::LLStatusBar(), and LLStatusBar::refresh().
void LLStatGraph::setMax | ( | const F32 | max | ) |
Definition at line 133 of file llstatgraph.cpp.
References mMax.
Referenced by LLStatusBar::LLStatusBar(), and LLStatusBar::refresh().
void LLStatGraph::setValue | ( | const LLSD & | value | ) | [virtual] |
Reimplemented from LLView.
Definition at line 123 of file llstatgraph.cpp.
References LLSD::asReal(), and mValue.
Definition at line 59 of file llstatgraph.h.
Referenced by draw(), LLStatGraph(), and LLStatusBar::LLStatusBar().
F32 LLStatGraph::mValue [private] |
F32 LLStatGraph::mMin [private] |
F32 LLStatGraph::mMax [private] |
LLFrameTimer LLStatGraph::mUpdateTimer [private] |
LLString LLStatGraph::mLabel [private] |
LLString LLStatGraph::mUnits [private] |
S32 LLStatGraph::mPrecision [private] |
Definition at line 68 of file llstatgraph.h.
Referenced by draw(), LLStatGraph(), and setPrecision().
S32 LLStatGraph::mNumThresholds [private] |
F32 LLStatGraph::mThresholds[4] [private] |
Definition at line 71 of file llstatgraph.h.
Referenced by draw(), LLStatGraph(), and setThreshold().
LLColor4 LLStatGraph::mThresholdColors[4] [private] |