VR-Forces Development_Version Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
List of all members | Classes | Public Member Functions | Static Public Attributes | Protected Types | Protected Member Functions | Protected Attributes
makVrv::DtOsgPerformanceStatsOverlay Class Reference

An overlay which shows the IG's performance stats. More...

Classes

struct  StatData

Public Member Functions

 DtOsgPerformanceStatsOverlay (DtDe &de, DtOsgRenderer &renderer)
 CTOR.
void addLabel (const std::string &group, const std::string &name)
 Add a stats label with specified name and top left location.
void removeLabel (const std::string &group, const std::string &name)
virtual ~DtOsgPerformanceStatsOverlay ()
 DTOR.
virtual void updateCallback ()
 Function called via update callback registered with the de.

Static Public Attributes

static const unsigned int overlayLayerId = 33
 This overlay will use layer id = 33.

Protected Types

typedef std::vector< StatData * > StatList
typedef std::map< std::string,
StatList * > 
GroupMap

Protected Member Functions

void updateGroupNodeList ()
void updateFrameTimes ()
DtWindowTextAgent * makeLine (double x, double y)
void printLine (const std::string &line)
bool findNodes (DtProfileNode *parent, std::string name, std::vector< DtProfileNode * > &found)

Protected Attributes

int myCurrentLine
DtDemyDe
DtOsgRenderermyRenderer
GroupMap myGroupData
std::vector< DtWindowTextAgent * > myLines
int myCurrentFrameIndex
int myPrevousEvictionCount
int myPreviousEvictionMemory

Detailed Description

An overlay which shows the IG's performance stats.

Member Typedef Documentation

typedef std::map<std::string, StatList*> makVrv::DtOsgPerformanceStatsOverlay::GroupMap
protected

Constructor & Destructor Documentation

makVrv::DtOsgPerformanceStatsOverlay::DtOsgPerformanceStatsOverlay ( DtDe de,
DtOsgRenderer renderer 
)

CTOR.

virtual makVrv::DtOsgPerformanceStatsOverlay::~DtOsgPerformanceStatsOverlay ( )
virtual

DTOR.

Member Function Documentation

void makVrv::DtOsgPerformanceStatsOverlay::addLabel ( const std::string &  group,
const std::string &  name 
)

Add a stats label with specified name and top left location.

void makVrv::DtOsgPerformanceStatsOverlay::removeLabel ( const std::string &  group,
const std::string &  name 
)
virtual void makVrv::DtOsgPerformanceStatsOverlay::updateCallback ( )
virtual

Function called via update callback registered with the de.

void makVrv::DtOsgPerformanceStatsOverlay::updateGroupNodeList ( )
protected
void makVrv::DtOsgPerformanceStatsOverlay::updateFrameTimes ( )
protected
DtWindowTextAgent* makVrv::DtOsgPerformanceStatsOverlay::makeLine ( double  x,
double  y 
)
protected
void makVrv::DtOsgPerformanceStatsOverlay::printLine ( const std::string &  line)
protected
bool makVrv::DtOsgPerformanceStatsOverlay::findNodes ( DtProfileNode parent,
std::string  name,
std::vector< DtProfileNode * > &  found 
)
protected

Member Data Documentation

const unsigned int makVrv::DtOsgPerformanceStatsOverlay::overlayLayerId = 33
static

This overlay will use layer id = 33.

int makVrv::DtOsgPerformanceStatsOverlay::myCurrentLine
protected
DtDe& makVrv::DtOsgPerformanceStatsOverlay::myDe
protected
DtOsgRenderer& makVrv::DtOsgPerformanceStatsOverlay::myRenderer
protected
GroupMap makVrv::DtOsgPerformanceStatsOverlay::myGroupData
protected
std::vector<DtWindowTextAgent*> makVrv::DtOsgPerformanceStatsOverlay::myLines
protected
int makVrv::DtOsgPerformanceStatsOverlay::myCurrentFrameIndex
protected
int makVrv::DtOsgPerformanceStatsOverlay::myPrevousEvictionCount
protected
int makVrv::DtOsgPerformanceStatsOverlay::myPreviousEvictionMemory
protected

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

Document ID: Generated on Tue Mar 8 22:13:38 EST 2016 from SVN revision 162938
Copyright © 2005-2015 VT MÄK. All Rights Reserved (www.mak.com)