#include <llstatgraph.h>
Inheritance diagram for LLStatGraph:


Public Member Functions | |
| LLStatGraph (const std::string &name, const LLRect &rect) | |
| virtual EWidgetType | getWidgetType () const |
| virtual LLString | getWidgetTag () const |
| 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 F32 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 45 of file llstatgraph.cpp.
References f, mMax, mMin, mNumThresholds, mPerSec, mPrecision, mStatp, mThresholdColors, mThresholds, mValue, NULL, LLView::setToolTip(), and TRUE.
| void LLStatGraph::draw | ( | ) | [virtual] |
Reimplemented from LLView.
Definition at line 75 of file llstatgraph.cpp.
References LLColor4::black, f, FALSE, gColors, LLControlGroup::getColor(), LLFrameTimer::getElapsedTimeF32(), LLRectBase< Type >::getHeight(), LLStat::getMean(), LLStat::getMeanPerSec(), LLView::getVisible(), LLRectBase< Type >::getWidth(), gl_rect_2d(), glColor4fv, i, llmax(), llmin(), llround(), mLabel, mMax, mMin, mNumThresholds, mPerSec, mPrecision, LLView::mRect, mStatp, mThresholdColors, mThresholds, mUnits, mUpdateTimer, LLColor4::mV, mValue, range, LLFrameTimer::reset(), S32, LLView::setToolTip(), and TRUE.
| LLString LLStatGraph::getWidgetTag | ( | ) | const [virtual] |
| EWidgetType LLStatGraph::getWidgetType | ( | ) | const [virtual] |
Implements LLView.
Definition at line 65 of file llstatgraph.cpp.
References WIDGET_TYPE_STAT_GRAPH.
| void LLStatGraph::setLabel | ( | const char * | label | ) |
| void LLStatGraph::setUnits | ( | const char * | units | ) |
LLString LLStatGraph::mLabel [private] |
F32 LLStatGraph::mMax [private] |
F32 LLStatGraph::mMin [private] |
S32 LLStatGraph::mNumThresholds [private] |
S32 LLStatGraph::mPrecision [private] |
Definition at line 69 of file llstatgraph.h.
Referenced by draw(), LLStatGraph(), and setPrecision().
LLColor4 LLStatGraph::mThresholdColors[4] [private] |
F32 LLStatGraph::mThresholds[4] [private] |
Definition at line 72 of file llstatgraph.h.
Referenced by draw(), LLStatGraph(), and setThreshold().
LLString LLStatGraph::mUnits [private] |
LLFrameTimer LLStatGraph::mUpdateTimer [private] |
F32 LLStatGraph::mValue [private] |
1.4.7