LLStatGraph Class Reference

#include <llstatgraph.h>

Inheritance diagram for LLStatGraph:

Inheritance graph
[legend]
Collaboration diagram for LLStatGraph:

Collaboration graph
[legend]
List of all members.

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

LLStatmStatp
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]

Detailed Description

Definition at line 41 of file llstatgraph.h.


Constructor & Destructor Documentation

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.


Member Function Documentation

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]

Implements LLView.

Definition at line 70 of file llstatgraph.cpp.

References LL_STAT_GRAPH_TAG.

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  ) 

Definition at line 156 of file llstatgraph.cpp.

References mLabel.

void LLStatGraph::setMax ( const F32  max  ) 

Definition at line 146 of file llstatgraph.cpp.

References mMax.

void LLStatGraph::setMin ( const F32  min  ) 

Definition at line 141 of file llstatgraph.cpp.

References mMin.

void LLStatGraph::setPrecision ( const S32  precision  ) 

Definition at line 166 of file llstatgraph.cpp.

References mPrecision.

void LLStatGraph::setStat ( LLStat statp  ) 

Definition at line 151 of file llstatgraph.cpp.

References mStatp.

void LLStatGraph::setThreshold ( const S32  i,
F32  value 
)

Definition at line 171 of file llstatgraph.cpp.

References mThresholds.

void LLStatGraph::setUnits ( const char *  units  ) 

Definition at line 161 of file llstatgraph.cpp.

References mUnits.

void LLStatGraph::setValue ( const F32  value  ) 

Definition at line 136 of file llstatgraph.cpp.

References mValue.


Member Data Documentation

LLString LLStatGraph::mLabel [private]

Definition at line 67 of file llstatgraph.h.

Referenced by draw(), and setLabel().

F32 LLStatGraph::mMax [private]

Definition at line 65 of file llstatgraph.h.

Referenced by draw(), LLStatGraph(), and setMax().

F32 LLStatGraph::mMin [private]

Definition at line 64 of file llstatgraph.h.

Referenced by draw(), LLStatGraph(), and setMin().

S32 LLStatGraph::mNumThresholds [private]

Definition at line 71 of file llstatgraph.h.

Referenced by draw(), and LLStatGraph().

BOOL LLStatGraph::mPerSec

Definition at line 60 of file llstatgraph.h.

Referenced by draw(), and LLStatGraph().

S32 LLStatGraph::mPrecision [private]

Definition at line 69 of file llstatgraph.h.

Referenced by draw(), LLStatGraph(), and setPrecision().

LLStat* LLStatGraph::mStatp

Definition at line 59 of file llstatgraph.h.

Referenced by draw(), LLStatGraph(), and setStat().

LLColor4 LLStatGraph::mThresholdColors[4] [private]

Definition at line 73 of file llstatgraph.h.

Referenced by draw(), and LLStatGraph().

F32 LLStatGraph::mThresholds[4] [private]

Definition at line 72 of file llstatgraph.h.

Referenced by draw(), LLStatGraph(), and setThreshold().

LLString LLStatGraph::mUnits [private]

Definition at line 68 of file llstatgraph.h.

Referenced by draw(), and setUnits().

LLFrameTimer LLStatGraph::mUpdateTimer [private]

Definition at line 66 of file llstatgraph.h.

Referenced by draw().

F32 LLStatGraph::mValue [private]

Definition at line 62 of file llstatgraph.h.

Referenced by draw(), LLStatGraph(), and setValue().


The documentation for this class was generated from the following files:
Generated on Thu Jul 1 06:11:48 2010 for Second Life Viewer by  doxygen 1.4.7