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

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

Classes

struct  StatData

Public Member Functions

 DtOsgPerformanceStats (DtDe &de)
 CTOR.
virtual void reset ()
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 ~DtOsgPerformanceStats ()
 DTOR.
virtual void updateCallback ()
 Function called via update callback registered with the de.
virtual void handleKeyEvent (int key, int modifier)
 handle the key event passed from DtStatsHandler

Public Attributes

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

Protected Types

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

Protected Member Functions

void updateGroupNodeList ()
void updateFrameTimes ()
void appendToString (const std::string &str)
 append a string to myStatsInString, will add '
' in the end.
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 myNumOfLines
int myFramesLowerThan30FPS
int myFramesLowerThan60FPS
int myFramesRendered

Detailed Description

A stats which shows the IG's performance stats.

Member Typedef Documentation

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

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

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::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::myNumOfLines
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 Wed Jul 25 16:57:45 EDT 2018 from SVN revision 190790
Copyright © 2005-2018 VT MÄK. All Rights Reserved (www.mak.com)