LLFastTimerView Class Reference

#include <llfasttimerview.h>

Inheritance diagram for LLFastTimerView:

Inheritance graph
[legend]
Collaboration diagram for LLFastTimerView:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 LLFastTimerView (const std::string &name, const LLRect &rect)
virtual ~LLFastTimerView ()
virtual BOOL handleMouseDown (S32 x, S32 y, MASK mask)
virtual BOOL handleRightMouseDown (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 BOOL handleScrollWheel (S32 x, S32 y, S32 clicks)
virtual void draw ()
S32 getLegendIndex (S32 y)
F64 getTime (LLFastTimer::EFastTimerType tidx)

Private Attributes

S32mBarStart
S32mBarEnd
S32 mDisplayMode
S32 mDisplayCenter
S32 mDisplayCalls
S32 mDisplayHz
U64 mAvgCountTotal
U64 mMaxCountTotal
LLRect mBarRect
S32 mScrollIndex
S32 mHoverIndex
S32 mHoverBarIndex
LLFrameTimer mHighlightTimer
S32 mSubtractHidden
S32 mPrintStats


Detailed Description

Definition at line 38 of file llfasttimerview.h.


Constructor & Destructor Documentation

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

LLFastTimerView::~LLFastTimerView (  )  [virtual]

Definition at line 267 of file llfasttimerview.cpp.

References mBarEnd, and mBarStart.


Member Function Documentation

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

BOOL LLFastTimerView::handleRightMouseDown ( S32  x,
S32  y,
MASK  mask 
) [virtual]

Reimplemented from LLFloater.

Definition at line 273 of file llfasttimerview.cpp.

References FALSE, LLRectBase< Type >::getHeight(), llclamp(), MAX_VISIBLE_HISTORY, mBarRect, LLRectBase< Type >::mBottom, mPrintStats, LLRectBase< Type >::pointInRect(), and S32.

Here is the call graph for this function:

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

Reimplemented from LLView.

Definition at line 357 of file llfasttimerview.cpp.

References FALSE.

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

BOOL LLFastTimerView::handleScrollWheel ( S32  x,
S32  y,
S32  clicks 
) [virtual]

Reimplemented from LLView.

Definition at line 399 of file llfasttimerview.cpp.

References LLFastTimer::FTM_HISTORY_NUM, llclamp(), llmin(), MAX_VISIBLE_HISTORY, mScrollIndex, S32, LLFastTimer::sLastFrameIndex, LLFastTimer::sPauseHistory, and TRUE.

Here is the call graph for this function:

void LLFastTimerView::draw ( void   )  [virtual]

Reimplemented from LLFloater.

Definition at line 407 of file llfasttimerview.cpp.

References LLGLImmediate::begin(), LLViewerImage::bindTexture(), LLFontGL::BOLD, LLFontGL::BOTTOM, ft_display_info::color, LLGLImmediate::color4f(), LLGLImmediate::color4fv(), LLFastTimer::countsPerSecond(), ft_display_info::desc, ft_display_info::disabled, LLView::draw(), LLGLImmediate::end(), FALSE, LLGLImmediate::flush(), LLFastTimer::FTM_HISTORY_NUM, LLFastTimer::FTM_NUM_TYPES, LLFastTimer::FTM_OTHER, LLFastTimer::FTM_RENDER_TIMER, FTV_DISPLAY_NUM, LLFrameTimer::getElapsedTimeF32(), LLRectBase< Type >::getHeight(), LLView::getRect(), LLUI::getUIImage(), LLViewerWindow::getVirtualWindowRect(), LLFontGL::getWidth(), LLRectBase< Type >::getWidth(), gFrameIntervalSeconds, gGL, gl_line_2d(), gl_rect_2d(), gl_segmented_rect_2d_fragment_tex(), LLColor4::grey, gViewerWindow, i, j, LLFontGL::LEFT, lerp(), ft_display_info::level, LINE_GRAPH_HEIGHT, LLVertexBuffer::LINE_STRIP, LLVertexBuffer::LINES, llassert, llclamp(), llendl, llfloor(), llformat(), llinfos, llmax(), llmin(), llround(), mAvgCountTotal, MAX_VISIBLE_HISTORY, mBarEnd, mBarRect, mBarStart, LLRectBase< Type >::mBottom, mDisplayCalls, mDisplayCenter, mDisplayHz, mDisplayMode, mHighlightTimer, mHoverBarIndex, mHoverIndex, LLRectBase< Type >::mLeft, mMaxCountTotal, mPrintStats, LLRectBase< Type >::mRight, mScrollIndex, mSubtractHidden, LLRectBase< Type >::mTop, LLColor4::mV, ft_display_info::parent, LLFontGL::renderUTF8(), S32, LLFastTimer::sCallAverage, LLFastTimer::sCallHistory, LLFastTimer::sCountAverage, LLFastTimer::sCountHistory, LLFastTimer::sCurFrameIndex, sinf, LLFastTimer::sLastFrameIndex, LLFontGL::sMonospace, LLFastTimer::sPauseHistory, LLFastTimer::sResetHistory, tut::tc(), ft_display_info::timer, LLFontGL::TOP, LLGLImmediate::vertex2f(), LLGLImmediate::vertex2i(), and LLColor4::white.

Here is the call graph for this function:

S32 LLFastTimerView::getLegendIndex ( S32  y  ) 

Definition at line 285 of file llfasttimerview.cpp.

References FTV_DISPLAY_NUM, LLRectBase< Type >::getHeight(), LLFontGL::getLineHeight(), LLView::getRect(), S32, and LLFontGL::sMonospace.

Referenced by handleHover(), and handleMouseDown().

Here is the call graph for this function:

Here is the caller graph for this function:

F64 LLFastTimerView::getTime ( LLFastTimer::EFastTimerType  tidx  ) 

Definition at line 1124 of file llfasttimerview.cpp.

References LLFastTimer::countsPerSecond(), FTV_DISPLAY_NUM, i, ft_display_info::level, llendl, llwarns, S32, LLFastTimer::sCountAverage, and ft_display_info::timer.

Referenced by update_statistics().

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation

Definition at line 55 of file llfasttimerview.h.

Referenced by draw(), handleHover(), LLFastTimerView(), and ~LLFastTimerView().

Definition at line 56 of file llfasttimerview.h.

Referenced by draw(), handleHover(), LLFastTimerView(), and ~LLFastTimerView().

Definition at line 57 of file llfasttimerview.h.

Referenced by draw(), handleMouseDown(), and LLFastTimerView().

Definition at line 58 of file llfasttimerview.h.

Referenced by draw(), handleMouseDown(), and LLFastTimerView().

Definition at line 59 of file llfasttimerview.h.

Referenced by draw(), handleMouseDown(), and LLFastTimerView().

Definition at line 60 of file llfasttimerview.h.

Referenced by draw(), handleMouseDown(), and LLFastTimerView().

Definition at line 61 of file llfasttimerview.h.

Referenced by draw(), and LLFastTimerView().

Definition at line 62 of file llfasttimerview.h.

Referenced by draw(), and LLFastTimerView().

Definition at line 63 of file llfasttimerview.h.

Referenced by draw(), handleHover(), handleMouseDown(), and handleRightMouseDown().

Definition at line 64 of file llfasttimerview.h.

Referenced by draw(), handleMouseDown(), handleScrollWheel(), and LLFastTimerView().

Definition at line 65 of file llfasttimerview.h.

Referenced by draw(), handleHover(), and LLFastTimerView().

Definition at line 66 of file llfasttimerview.h.

Referenced by draw(), handleHover(), and LLFastTimerView().

Definition at line 67 of file llfasttimerview.h.

Referenced by draw().

Definition at line 68 of file llfasttimerview.h.

Referenced by draw(), handleMouseDown(), and LLFastTimerView().

Definition at line 69 of file llfasttimerview.h.

Referenced by draw(), handleRightMouseDown(), and LLFastTimerView().


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

Generated on Fri May 16 08:44:32 2008 for SecondLife by  doxygen 1.5.5