Pyrogenesis  13997
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Private Types | Private Member Functions | Private Attributes | List of all members
CRendererStatsTable Class Reference

Class CRendererStatsTable: Implementation of AbstractProfileTable to display the renderer stats in-game. More...

Inheritance diagram for CRendererStatsTable:
AbstractProfileTable

Public Member Functions

 CRendererStatsTable (const CRenderer::Stats &st)
 
CStr GetName ()
 GetName: Short descriptive name of this table (should be static). More...
 
CStr GetTitle ()
 GetTitle: Longer, explanatory text (can be dynamic). More...
 
size_t GetNumberRows ()
 GetNumberRows. More...
 
const std::vector
< ProfileColumn > & 
GetColumns ()
 GetColumnDescriptions. More...
 
CStr GetCellText (size_t row, size_t col)
 GetCellText. More...
 
AbstractProfileTableGetChild (size_t row)
 GetChild: Return a row's child table if the child is expandable. More...
 
- Public Member Functions inherited from AbstractProfileTable
virtual ~AbstractProfileTable ()
 
virtual bool IsHighlightRow (size_t row)
 IsHighlightRow. More...
 

Private Types

enum  {
  Row_DrawCalls = 0, Row_TerrainTris, Row_WaterTris, Row_ModelTris,
  Row_OverlayTris, Row_BlendSplats, Row_Particles, Row_VBReserved,
  Row_VBAllocated, Row_ShadersLoaded, NumberRows
}
 

Private Member Functions

 NONCOPYABLE (CRendererStatsTable)
 

Private Attributes

const CRenderer::StatsStats
 Reference to the renderer singleton's stats. More...
 
std::vector< ProfileColumncolumnDescriptions
 Column descriptions. More...
 

Detailed Description

Class CRendererStatsTable: Implementation of AbstractProfileTable to display the renderer stats in-game.

Accesses CRenderer::m_Stats by keeping the reference passed to the constructor.

Definition at line 84 of file Renderer.cpp.

Member Enumeration Documentation

anonymous enum
private
Enumerator
Row_DrawCalls 
Row_TerrainTris 
Row_WaterTris 
Row_ModelTris 
Row_OverlayTris 
Row_BlendSplats 
Row_Particles 
Row_VBReserved 
Row_VBAllocated 
Row_ShadersLoaded 
NumberRows 

Definition at line 105 of file Renderer.cpp.

Constructor & Destructor Documentation

CRendererStatsTable::CRendererStatsTable ( const CRenderer::Stats st)

Definition at line 123 of file Renderer.cpp.

Member Function Documentation

CStr CRendererStatsTable::GetCellText ( size_t  row,
size_t  col 
)
virtual

GetCellText.

Parameters
rowRow index (the first row has index 0).
colColumn index (the first column has index 0).
Returns
Text to be displayed in the given cell.

Implements AbstractProfileTable.

Definition at line 151 of file Renderer.cpp.

AbstractProfileTable * CRendererStatsTable::GetChild ( size_t  row)
virtual

GetChild: Return a row's child table if the child is expandable.

Parameters
rowRow index (the first row has index 0).
Returns
Pointer to the child table if the given row has one. Otherwise, return 0.

Implements AbstractProfileTable.

Definition at line 222 of file Renderer.cpp.

const std::vector< ProfileColumn > & CRendererStatsTable::GetColumns ( )
virtual

GetColumnDescriptions.

Returns
A vector describing all columns of the table.

Implements AbstractProfileTable.

Definition at line 146 of file Renderer.cpp.

CStr CRendererStatsTable::GetName ( )
virtual

GetName: Short descriptive name of this table (should be static).

Returns
Descriptive name of this table.

Implements AbstractProfileTable.

Definition at line 131 of file Renderer.cpp.

size_t CRendererStatsTable::GetNumberRows ( )
virtual

GetNumberRows.

Returns
Number of rows in this table.

Implements AbstractProfileTable.

Definition at line 141 of file Renderer.cpp.

CStr CRendererStatsTable::GetTitle ( )
virtual

GetTitle: Longer, explanatory text (can be dynamic).

Returns
Title for the table.

Implements AbstractProfileTable.

Definition at line 136 of file Renderer.cpp.

CRendererStatsTable::NONCOPYABLE ( CRendererStatsTable  )
private

Member Data Documentation

std::vector<ProfileColumn> CRendererStatsTable::columnDescriptions
private

Column descriptions.

Definition at line 103 of file Renderer.cpp.

const CRenderer::Stats& CRendererStatsTable::Stats
private

Reference to the renderer singleton's stats.

Definition at line 100 of file Renderer.cpp.


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