#include <llframestatview.h>
Inheritance diagram for LLFrameStatView:
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 | |
LLStat * | mStats [MAX_STATS] |
LLColor4 | mColors [MAX_STATS] |
const char * | mLabels [MAX_STATS] |
S32 | mNumStats |
Definition at line 42 of file llframestatview.h.
anonymous enum |
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.
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.
Reimplemented from LLView.
Definition at line 88 of file llframestatview.cpp.
References mShowPercent, and 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().
LLColor4 LLFrameStatView::mColors[MAX_STATS] [private] |
const char* LLFrameStatView::mLabels[MAX_STATS] [private] |
S32 LLFrameStatView::mNumStats [private] |
Definition at line 72 of file llframestatview.h.
Referenced by addStat(), draw(), and LLFrameStatView().
Definition at line 66 of file llframestatview.h.
Referenced by draw(), handleMouseDown(), init_stat_view(), and LLFrameStatView().
LLStat* LLFrameStatView::mStats[MAX_STATS] [private] |