LLMemoryView Class Reference

#include <llmemoryview.h>

Inheritance diagram for LLMemoryView:

Inheritance graph
[legend]
Collaboration diagram for LLMemoryView:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 LLMemoryView (const std::string &name, const LLRect &rect)
virtual ~LLMemoryView ()
virtual EWidgetType getWidgetType () const
virtual LLString getWidgetTag () const
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 ()

Private Member Functions

void setDataDumpInterval (float delay)
void dumpData ()

Private Attributes

float mDelay
LLFrameTimer mDumpTimer

Detailed Description

Definition at line 37 of file llmemoryview.h.


Constructor & Destructor Documentation

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

Definition at line 53 of file llmemoryview.cpp.

References FALSE, mDumpTimer, LLFrameTimer::reset(), and LLView::setVisible().

LLMemoryView::~LLMemoryView (  )  [virtual]

Definition at line 67 of file llmemoryview.cpp.


Member Function Documentation

void LLMemoryView::draw (  )  [virtual]

Reimplemented from LLView.

Definition at line 148 of file llmemoryview.cpp.

References bottom, mtv_display_info::color, mtv_display_info::desc, LLView::draw(), dumpData(), f, LLRectBase< Type >::getHeight(), LLFontGL::getWidth(), LLRectBase< Type >::getWidth(), gl_rect_2d(), height, i, LLFontGL::LEFT, left, llformat(), llmax(), mtv_display_info::memtype, LLView::mRect, MTV_DISPLAY_NUM, LLMemType::MTYPE_NUM_TYPES, LLMemType::MTYPE_OTHER, LLFontGL::renderUTF8(), right, S32, LLColor4::setAlpha(), LLFontGL::sMonospace, LLMemType::sTotalMem, LLFontGL::TOP, top, LLColor4::white, width, x, and y.

void LLMemoryView::dumpData (  )  [private]

Definition at line 267 of file llmemoryview.cpp.

References LLFrameTimer::getElapsedTimeF32(), i, llformat(), mDelay, mDumpTimer, LLMemType::MTYPE_NUM_TYPES, LLFrameTimer::reset(), S32, LLMemType::sMaxTotalMem, and LLMemType::sTotalMem.

Referenced by draw().

LLString LLMemoryView::getWidgetTag (  )  const [virtual]

Implements LLView.

Definition at line 76 of file llmemoryview.cpp.

References LL_MEMORY_VIEW_TAG.

EWidgetType LLMemoryView::getWidgetType (  )  const [virtual]

Implements LLView.

Definition at line 71 of file llmemoryview.cpp.

References WIDGET_TYPE_MEMORY_VIEW.

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

Reimplemented from LLView.

Definition at line 101 of file llmemoryview.cpp.

References FALSE.

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

Reimplemented from LLView.

Definition at line 81 of file llmemoryview.cpp.

References MASK_CONTROL, MASK_SHIFT, and TRUE.

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

Reimplemented from LLView.

Definition at line 95 of file llmemoryview.cpp.

References TRUE.

void LLMemoryView::setDataDumpInterval ( float  delay  )  [private]

Definition at line 262 of file llmemoryview.cpp.

References mDelay.


Member Data Documentation

float LLMemoryView::mDelay [private]

Definition at line 55 of file llmemoryview.h.

Referenced by dumpData(), and setDataDumpInterval().

LLFrameTimer LLMemoryView::mDumpTimer [private]

Definition at line 56 of file llmemoryview.h.

Referenced by dumpData(), and LLMemoryView().


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