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

enum  { MAX_STATS = 30 }

Public Member Functions

 LLFrameStatView (const std::string &name, const LLRect &rect)
virtual ~LLFrameStatView ()
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 48 of file llframestatview.cpp.

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

Here is the call graph for this function:

LLFrameStatView::~LLFrameStatView (  )  [virtual]

Definition at line 61 of file llframestatview.cpp.


Member Function Documentation

void LLFrameStatView::setup ( const LLFrameStats frame_stats  ) 

Definition at line 66 of file llframestatview.cpp.

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

Referenced by init_stat_view().

Here is the call graph for this function:

Here is the caller graph for this function:

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

Reimplemented from LLView.

Definition at line 77 of file llframestatview.cpp.

References mShowPercent, and TRUE.

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

Reimplemented from LLView.

Definition at line 83 of file llframestatview.cpp.

References TRUE.

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

Reimplemented from LLView.

Definition at line 89 of file llframestatview.cpp.

References FALSE.

void LLFrameStatView::draw ( void   )  [virtual]

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

Definition at line 371 of file llframestatview.cpp.

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

Referenced by setup().

Here is the caller graph for this function:


Member Data Documentation

Definition at line 59 of file llframestatview.h.

Referenced by draw(), and LLFrameStatView().

Definition at line 60 of file llframestatview.h.

Referenced by draw(), and LLFrameStatView().

Definition at line 61 of file llframestatview.h.

Referenced by draw(), and LLFrameStatView().

Definition at line 62 of file llframestatview.h.

Referenced by draw(), and LLFrameStatView().

Definition at line 63 of file llframestatview.h.

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

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

Definition at line 66 of file llframestatview.h.

Referenced by addStat(), and draw().

LLColor4 LLFrameStatView::mColors[MAX_STATS] [private]

Definition at line 67 of file llframestatview.h.

Referenced by addStat(), and draw().

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

Definition at line 68 of file llframestatview.h.

Referenced by addStat(), and draw().

Definition at line 69 of file llframestatview.h.

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


The documentation for this class was generated from the following files:

Generated on Fri May 16 08:48:05 2008 for SecondLife by  doxygen 1.5.5