![]() |
VR-Forces 4.0.4 Class Documentation
|
Manager for sets of performance stats. More...

Public Types | |
| typedef std::vector< std::string > | NameList |
| List of stats set names. | |
Public Member Functions | |
| virtual | ~DtPerformanceStatsManager () |
| DTOR. | |
| virtual void | add (const std::string &statsSetName, DtStatsSet *statsSet) |
| Add a new stats set to the manager. | |
| virtual void | remove (const std::string &statsSetName) |
| Remove a stats set from the manager. | |
| virtual DtStatsSet * | find (const std::string &statsSetName) |
| Find a stats set by name. | |
| virtual void | setActive (const std::string &statsSetName) |
| Set the currently active stats set by name. | |
| virtual DtStatsSet * | activeSet () |
| Get the currently active stats set. | |
| virtual void | tickStats (double tickTime) |
| Update the stats sets with the last tick time. | |
| NameList | names () const |
| Make a list of the current stats set names. | |
Static Public Member Functions | |
| static DtPerformanceStatsManager & | instance (DtDe &de) |
| Get the performance stats manager instance for the display engine. | |
Protected Types | |
| typedef boost::unordered_map < std::string, DtStatsSet * > | PerformanceStatsMap |
Protected Member Functions | |
| DtPerformanceStatsManager (DtDe &de) | |
| The CTOR. | |
Protected Attributes | |
| DtDe & | myDe |
| DtPerformanceStatsManagerSignaler & | mySignaler |
| DtStatsSet * | myActiveStatsSet |
| PerformanceStatsMap | myStatsSets |
Manager for sets of performance stats.
Provides centralized access to stats sets and controls which set is currently displayed
| typedef std::vector<std::string> makVrv::DtPerformanceStatsManager::NameList |
List of stats set names.
typedef boost::unordered_map<std::string, DtStatsSet*> makVrv::DtPerformanceStatsManager::PerformanceStatsMap [protected] |
| virtual makVrv::DtPerformanceStatsManager::~DtPerformanceStatsManager | ( | ) | [virtual] |
DTOR.
| makVrv::DtPerformanceStatsManager::DtPerformanceStatsManager | ( | DtDe & | de | ) | [protected] |
The CTOR.
| static DtPerformanceStatsManager& makVrv::DtPerformanceStatsManager::instance | ( | DtDe & | de | ) | [static] |
Get the performance stats manager instance for the display engine.
| virtual void makVrv::DtPerformanceStatsManager::add | ( | const std::string & | statsSetName, |
| DtStatsSet * | statsSet | ||
| ) | [virtual] |
Add a new stats set to the manager.
Transfers ownership If no stats set is currently active, also sets the active stats set to the newly added set.
| virtual void makVrv::DtPerformanceStatsManager::remove | ( | const std::string & | statsSetName | ) | [virtual] |
Remove a stats set from the manager.
Frees the stats set's memory
| virtual DtStatsSet* makVrv::DtPerformanceStatsManager::find | ( | const std::string & | statsSetName | ) | [virtual] |
Find a stats set by name.
Returns null if no matching set is found
| virtual void makVrv::DtPerformanceStatsManager::setActive | ( | const std::string & | statsSetName | ) | [virtual] |
Set the currently active stats set by name.
Throws DtInvalidInput if no matching set exists Currently active stats set is displayed by the performance stats overlay (or other display mechanism)
| virtual DtStatsSet* makVrv::DtPerformanceStatsManager::activeSet | ( | ) | [virtual] |
Get the currently active stats set.
Can return null if no sets exist
| virtual void makVrv::DtPerformanceStatsManager::tickStats | ( | double | tickTime | ) | [virtual] |
Update the stats sets with the last tick time.
This defines the boundary of the frame that we use to calculate stats
Make a list of the current stats set names.
DtDe& makVrv::DtPerformanceStatsManager::myDe [protected] |