LLFrameStatView Class Reference

#include <llframestatview.h>

Inheritance diagram for LLFrameStatView:

Inheritance graph
[legend]
Collaboration diagram for LLFrameStatView:

Collaboration graph
[legend]
List of all members.

Public Types

 MAX_STATS = 30
enum  { MAX_STATS = 30 }

Public Member Functions

 LLFrameStatView (const std::string &name, const LLRect &rect)
virtual ~LLFrameStatView ()
virtual EWidgetType getWidgetType () const
virtual LLString getWidgetTag () const
void setup (const LLFrameStats &frame_stats)
virtual BOOL handleMouseDown (S32 x, S32 y, MASK mask)
virtual BOOL handleMouseUp (S32 x, S32 y, MASK mask)
virtual BOOL handleHover (S32 x, S32 y, MASK mask)
virtual void draw ()
void addStat (LLStat *statp, const char *label, const LLColor4 &color)

Public Attributes

F32 mTotalTime
F32 mTickSpacing
F32 mLabelSpacing
S32 mCenterOn
BOOL mShowPercent

Private Attributes

LLStatmStats [MAX_STATS]
LLColor4 mColors [MAX_STATS]
const char * mLabels [MAX_STATS]
S32 mNumStats

Detailed Description

Definition at line 42 of file llframestatview.h.


Member Enumeration Documentation

anonymous enum

Enumerator:
MAX_STATS 

Definition at line 45 of file llframestatview.h.


Constructor & Destructor Documentation

LLFrameStatView::LLFrameStatView ( const std::string &  name,
const LLRect rect 
)

Definition at line 49 of file llframestatview.cpp.

References FALSE, mCenterOn, mLabelSpacing, mNumStats, mShowPercent, mTickSpacing, mTotalTime, LLView::setVisible(), and TRUE.

LLFrameStatView::~LLFrameStatView (  )  [virtual]

Definition at line 62 of file llframestatview.cpp.


Member Function Documentation

void LLFrameStatView::addStat ( LLStat statp,
const char *  label,
const LLColor4 color 
)

Definition at line 382 of file llframestatview.cpp.

References llendl, llwarns, MAX_STATS, mColors, mLabels, mNumStats, and mStats.

Referenced by setup().

void LLFrameStatView::draw (  )  [virtual]

Reimplemented from LLView.

Definition at line 106 of file llframestatview.cpp.

References bottom, LLView::draw(), end, f, FALSE, LLStat::getBinTime(), LLStat::getCurBin(), LLRectBase< Type >::getHeight(), LLFontGL::getLineHeight(), LLStat::getNumBins(), LLStat::getNumValues(), LLStat::getPrevBeginTime(), LLStat::getPrevTime(), LLFontGL::getWidth(), LLRectBase< Type >::getWidth(), gl_rect_2d(), i, j, LLFontGL::LEFT, left, llfloor(), llmax(), llmin(), MAX_STATS, mCenterOn, mColors, mLabels, mLabelSpacing, mNumStats, LLView::mRect, mShowPercent, mStats, mTickSpacing, mTotalTime, LLFontGL::renderUTF8(), right, S32, LLFontGL::sMonospace, LLFontGL::TOP, top, and TRUE.

LLString LLFrameStatView::getWidgetTag (  )  const [virtual]

Implements LLView.

Definition at line 72 of file llframestatview.cpp.

References LL_FRAME_STAT_VIEW_TAG.

EWidgetType LLFrameStatView::getWidgetType (  )  const [virtual]

Implements LLView.

Definition at line 67 of file llframestatview.cpp.

References WIDGET_TYPE_FRAME_STAT_VIEW.

BOOL LLFrameStatView::handleHover ( S32  x,
S32  y,
MASK  mask 
) [virtual]

Reimplemented from LLView.

Definition at line 100 of file llframestatview.cpp.

References FALSE.

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

Reimplemented from LLView.

Definition at line 88 of file llframestatview.cpp.

References mShowPercent, and TRUE.

BOOL LLFrameStatView::handleMouseUp ( S32  x,
S32  y,
MASK  mask 
) [virtual]

Reimplemented from LLView.

Definition at line 94 of file llframestatview.cpp.

References TRUE.

void LLFrameStatView::setup ( const LLFrameStats frame_stats  ) 

Definition at line 77 of file llframestatview.cpp.

References addStat(), LLFrameStats::getStat(), LLFrameStats::getStatColor(), LLFrameStats::getStatLabel(), gFrameStats, i, LLFrameStats::NUM_STATS, and S32.

Referenced by init_stat_view().


Member Data Documentation

S32 LLFrameStatView::mCenterOn

Definition at line 65 of file llframestatview.h.

Referenced by draw(), and LLFrameStatView().

LLColor4 LLFrameStatView::mColors[MAX_STATS] [private]

Definition at line 70 of file llframestatview.h.

Referenced by addStat(), and draw().

const char* LLFrameStatView::mLabels[MAX_STATS] [private]

Definition at line 71 of file llframestatview.h.

Referenced by addStat(), and draw().

F32 LLFrameStatView::mLabelSpacing

Definition at line 64 of file llframestatview.h.

Referenced by draw(), and LLFrameStatView().

S32 LLFrameStatView::mNumStats [private]

Definition at line 72 of file llframestatview.h.

Referenced by addStat(), draw(), and LLFrameStatView().

BOOL LLFrameStatView::mShowPercent

Definition at line 66 of file llframestatview.h.

Referenced by draw(), handleMouseDown(), init_stat_view(), and LLFrameStatView().

LLStat* LLFrameStatView::mStats[MAX_STATS] [private]

Definition at line 69 of file llframestatview.h.

Referenced by addStat(), and draw().

F32 LLFrameStatView::mTickSpacing

Definition at line 63 of file llframestatview.h.

Referenced by draw(), and LLFrameStatView().

F32 LLFrameStatView::mTotalTime

Definition at line 62 of file llframestatview.h.

Referenced by draw(), and LLFrameStatView().


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