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

A stats which shows the IG's performance stats. More...

Classes

struct  StatData
 

Public Types

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

Public Member Functions

 DtOsgPerformanceStats (DtDe &de)
 CTOR. More...
 
virtual void reset ()
 
void addLabel (const std::string &group, const std::string &name)
 Add a stats label with specified name and top left location. More...
 
void removeLabel (const std::string &group, const std::string &name)
 
virtual ~DtOsgPerformanceStats ()
 DTOR. More...
 
virtual void updateCallback ()
 Function called via update callback registered with the de. More...
 
virtual void handleKeyEvent (int key, int modifier)
 handle the key event passed from DtStatsHandler More...
 
const GroupMapgroupData ()
 

Public Attributes

boost::signalslib::signal
< void(const std::string &)> 
signal_statsChanged
 Signals when the stats string changed. More...
 

Protected Member Functions

void updateGroupNodeList ()
 
void updateFrameTimes ()
 
void appendToString (const std::string &str)
 append a string to myStatsInString, will add '
' in the end. More...
 
bool findNodes (DtProfileNode *parent, const std::string &name, std::vector< DtProfileNode * > &found)
 

Protected Attributes

DtDemyDe
 
GroupMap myGroupData
 
int myCurrentFrameIndex
 
int myPrevousEvictionCount
 
int myPreviousEvictionMemory
 
std::string myStatsInString
 
int myFramesLowerThan30FPS
 
int myFramesLowerThan60FPS
 
int myFramesRendered
 

Detailed Description

A stats which shows the IG's performance stats.

Member Typedef Documentation

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

Constructor & Destructor Documentation

makVrv::DtOsgPerformanceStats::DtOsgPerformanceStats ( DtDe de)

CTOR.

virtual makVrv::DtOsgPerformanceStats::~DtOsgPerformanceStats ( )
virtual

DTOR.

Member Function Documentation

virtual void makVrv::DtOsgPerformanceStats::reset ( )
virtual
void makVrv::DtOsgPerformanceStats::addLabel ( const std::string &  group,
const std::string &  name 
)

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

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

Function called via update callback registered with the de.

virtual void makVrv::DtOsgPerformanceStats::handleKeyEvent ( int  key,
int  modifier 
)
virtual

handle the key event passed from DtStatsHandler

const GroupMap& makVrv::DtOsgPerformanceStats::groupData ( )
inline
void makVrv::DtOsgPerformanceStats::updateGroupNodeList ( )
protected
void makVrv::DtOsgPerformanceStats::updateFrameTimes ( )
protected
void makVrv::DtOsgPerformanceStats::appendToString ( const std::string &  str)
protected

append a string to myStatsInString, will add '
' in the end.

bool makVrv::DtOsgPerformanceStats::findNodes ( DtProfileNode parent,
const std::string &  name,
std::vector< DtProfileNode * > &  found 
)
protected

Member Data Documentation

boost::signalslib::signal<void(const std::string&)> makVrv::DtOsgPerformanceStats::signal_statsChanged

Signals when the stats string changed.

DtDe& makVrv::DtOsgPerformanceStats::myDe
protected
GroupMap makVrv::DtOsgPerformanceStats::myGroupData
protected
int makVrv::DtOsgPerformanceStats::myCurrentFrameIndex
protected
int makVrv::DtOsgPerformanceStats::myPrevousEvictionCount
protected
int makVrv::DtOsgPerformanceStats::myPreviousEvictionMemory
protected
std::string makVrv::DtOsgPerformanceStats::myStatsInString
protected
int makVrv::DtOsgPerformanceStats::myFramesLowerThan30FPS
protected
int makVrv::DtOsgPerformanceStats::myFramesLowerThan60FPS
protected
int makVrv::DtOsgPerformanceStats::myFramesRendered
protected

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

Document ID: Generated on Tue Sep 21 17:42:52 EDT 2021 from SVN revision 234861
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)