LLStatBar Class Reference

#include <llstatbar.h>

Inheritance diagram for LLStatBar:

Inheritance graph
[legend]
Collaboration diagram for LLStatBar:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 LLStatBar (const std::string &name, const LLRect &rect)
virtual EWidgetType getWidgetType () const
virtual LLString getWidgetTag () const
virtual void draw ()
virtual BOOL handleMouseDown (S32 x, S32 y, MASK mask)
const LLStringgetLabel () 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
LLStatmStatp

Private Attributes

LLFrameTimer mUpdateTimer
LLString mLabel
LLString mUnitLabel
F32 mValue

Detailed Description

Definition at line 40 of file llstatbar.h.


Constructor & Destructor Documentation

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.


Member Function Documentation

void LLStatBar::draw (  )  [virtual]

Reimplemented from LLView.

Definition at line 98 of file llstatbar.cpp.

References bottom, LLView::draw(), f, 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(), LLRectBase< Type >::getWidth(), gl_rect_2d(), i, LLFontGL::LEFT, left, llendl, llfloor(), llwarns, mDisplayBar, mDisplayHistory, mDisplayMean, mLabel, mLabelSpacing, mMaxBar, mMinBar, mPerSec, mPrecision, LLView::mRect, mStatp, mTickSpacing, mUnitLabel, mUpdatesPerSec, mUpdateTimer, mValue, LLFontGL::renderUTF8(), LLFrameTimer::reset(), LLFontGL::RIGHT, right, S32, LLFontGL::sMonospace, LLFontGL::TOP, top, and width.

const LLString & LLStatBar::getLabel (  )  const

Definition at line 271 of file llstatbar.cpp.

References mLabel.

LLRect LLStatBar::getRequiredRect (  )  [virtual]

Reimplemented from LLView.

Definition at line 286 of file llstatbar.cpp.

References mDisplayBar, mDisplayHistory, and LLRectBase< Type >::mTop.

LLString LLStatBar::getWidgetTag (  )  const [virtual]

Implements LLView.

Definition at line 93 of file llstatbar.cpp.

References LL_STAT_BAR_TAG.

EWidgetType LLStatBar::getWidgetType (  )  const [virtual]

Implements LLView.

Definition at line 88 of file llstatbar.cpp.

References WIDGET_TYPE_STAT_BAR.

BOOL LLStatBar::handleMouseDown ( S32  x,
S32  y,
MASK  mask 
) [virtual]

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.

void LLStatBar::setLabel ( const LLString label  ) 

Definition at line 276 of file llstatbar.cpp.

References mLabel.

Referenced by init_stat_view().

void LLStatBar::setUnitLabel ( const LLString unit_label  ) 

Definition at line 281 of file llstatbar.cpp.

References mUnitLabel.

Referenced by init_stat_view().


Member Data Documentation

BOOL LLStatBar::mDisplayBar

Definition at line 62 of file llstatbar.h.

Referenced by draw(), getRequiredRect(), handleMouseDown(), init_stat_view(), and LLStatBar().

BOOL LLStatBar::mDisplayHistory

Definition at line 63 of file llstatbar.h.

Referenced by draw(), getRequiredRect(), handleMouseDown(), init_stat_view(), and LLStatBar().

BOOL LLStatBar::mDisplayMean

Definition at line 64 of file llstatbar.h.

Referenced by draw(), init_stat_view(), and LLStatBar().

LLString LLStatBar::mLabel [private]

Definition at line 70 of file llstatbar.h.

Referenced by draw(), getLabel(), LLStatBar(), and setLabel().

F32 LLStatBar::mLabelSpacing

Definition at line 59 of file llstatbar.h.

Referenced by draw(), init_stat_view(), LLStatBar(), and LLFloaterJoystick::show().

F32 LLStatBar::mMaxBar

Definition at line 57 of file llstatbar.h.

Referenced by draw(), LLFloaterJoystick::draw(), init_stat_view(), LLStatBar(), and LLFloaterJoystick::show().

F32 LLStatBar::mMinBar

Definition at line 56 of file llstatbar.h.

Referenced by draw(), LLFloaterJoystick::draw(), init_stat_view(), LLStatBar(), and LLFloaterJoystick::show().

BOOL LLStatBar::mPerSec

Definition at line 61 of file llstatbar.h.

Referenced by draw(), init_stat_view(), and LLStatBar().

U32 LLStatBar::mPrecision

Definition at line 60 of file llstatbar.h.

Referenced by draw(), init_stat_view(), and LLStatBar().

LLStat* LLStatBar::mStatp

Definition at line 67 of file llstatbar.h.

Referenced by LLStatView::addStat(), draw(), and LLStatBar().

F32 LLStatBar::mTickSpacing

Definition at line 58 of file llstatbar.h.

Referenced by draw(), init_stat_view(), LLStatBar(), and LLFloaterJoystick::show().

LLString LLStatBar::mUnitLabel [private]

Definition at line 71 of file llstatbar.h.

Referenced by draw(), and setUnitLabel().

F32 LLStatBar::mUpdatesPerSec

Definition at line 66 of file llstatbar.h.

Referenced by draw(), and LLStatBar().

LLFrameTimer LLStatBar::mUpdateTimer [private]

Definition at line 69 of file llstatbar.h.

Referenced by draw().

F32 LLStatBar::mValue [private]

Definition at line 72 of file llstatbar.h.

Referenced by draw(), and LLStatBar().


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