![]() |
VR-Forces 4.6 Class Documentation
|
Public Types | |
| typedef std::vector < DtSimulationAddress > | DtFrameRateRequesters |
| typedef DtFrameRateRequesters::iterator | DtFrameRateRequestersIter |
| typedef DtFrameRateRequesters::const_iterator | DtFrameRateRequestersConstIter |
Public Member Functions | |
| DtFrameRateMonitor () | |
| Default constructor; note that if this form is used and a sim manager is not set, reports will not be sent (but console output can still be generated.) | |
| DtFrameRateMonitor (DtSimManager *simManager) | |
| standard constructor | |
| DtFrameRateMonitor (const DtFrameRateMonitor &orig) | |
| copy constructor; report timer is currently not copied. | |
| const DtFrameRateMonitor & | operator= (const DtFrameRateMonitor &orig) |
| assignment operator; see copy constructor above. | |
| virtual bool | init () |
| Calls register callbacks. | |
| virtual void | setSimManager (DtSimManager *simManager) |
| If the default constructor was used, you can supply a sim manager later; however, if you do, you must also call registerInterfaceCallbacks(). | |
| virtual bool | registerInterfaceCallbacks () |
| virtual double | meanFrameRate () |
| virtual double | medianFrameRate () |
| virtual double | standardDeviationFrameRate () |
| virtual double | minimumFrameRate () |
| virtual double | maximumFrameRate () |
| virtual double | simTimeToRealTimeRatio () |
| virtual void | addSample (double frameTime) |
| If the frameTime is > 0, it calculates the current frame rate as 1/frameTime. | |
| virtual double | lastSample () const |
| virtual void | reset (bool sendReport=false) |
| Clear out the array of frame rates and start over. | |
| virtual void | setNumberOfFramesToAverage (unsigned int numFramesToAverage) |
| Can also be set in a frameRateRequestMessage. A zero turns off averaging. | |
| virtual unsigned int | numberOfFramesToAverage () |
| virtual void | setReportMean (bool reportMean) |
| virtual bool | reportMean () const |
| virtual void | setReportMedian (bool reportMedian) |
| virtual bool | reportMedian () const |
| virtual void | setReportStandardDeviation (bool reportStandardDeviation) |
| virtual bool | reportStandardDeviation () const |
| virtual void | setReportMinimum (bool reportMinimum) |
| virtual bool | reportMinimum () const |
| virtual void | setReportMaximum (bool reportMaximum) |
| virtual bool | reportMaximum () const |
| virtual void | setReportToConsole (bool reportToConsole) |
| virtual bool | reportToConsole () const |
| virtual void | setReportSimTimeToRealTimeRatio (bool reportSimTimeToRealTimeRatio) |
| virtual bool | reportSimTimeToRealTimeRatio () const |
| virtual void | processFrameRateRequestMessage (DtSimInterfaceMessage *message) |
| handles requests | |
| virtual void | generateReport () |
| Send report to requester. | |
| virtual void | pause () |
| When paused, will not add samples to the. | |
| virtual void | resume () |
| virtual bool | isPaused () const |
| When paused, will not add samples to the. | |
| virtual | ~DtFrameRateMonitor () |
| destructor | |
Static Public Member Functions | |
| static void | frameRateRequestCallback (DtSimMessage *msg, void *usr) |
| static void | reportTimerCallback (DtTimer *timer) |
Protected Member Functions | |
| virtual void | removeTimer () |
| virtual void | setTimer (double period) |
Protected Attributes | |
| double | myCurrentFrameRate |
| If not currently averaging, this is returned for mean or median requests set by tick. | |
| bool | myReportMeanFlag |
| The values of these will determine what gets put into a report. | |
| bool | myReportMedianFlag |
| bool | myReportStandardDeviationFlag |
| bool | myReportMinimumFlag |
| bool | myReportMaximumFlag |
| bool | myReportToConsoleFlag |
| bool | myReportSimTimeToRealTimeRatioFlag |
| DtAverager | myAverager |
| DtSimManager * | mySimManager |
| DtPeriodicTimer * | myReportTimer |
| double | myCurrentResponsePeriod |
| DtTime | myLastReportTimerCbSimTime |
| DtTime | myLastReportTimerCbRealTime |
| DtTime | mySimTimeRealTimeRatio |
| DtFrameRateRequesters | myRequesters |
| Contains simulation addresses of everyone who has requested reports. | |
Private Attributes | |
| bool | myIsPaused |
| When paused, the frame rate logger will ignore any specified samples. | |
| typedef std::vector<DtSimulationAddress> DtFrameRateMonitor::DtFrameRateRequesters |
| typedef DtFrameRateRequesters::iterator DtFrameRateMonitor::DtFrameRateRequestersIter |
| typedef DtFrameRateRequesters::const_iterator DtFrameRateMonitor::DtFrameRateRequestersConstIter |
| DtFrameRateMonitor::DtFrameRateMonitor | ( | ) |
Default constructor; note that if this form is used and a sim manager is not set, reports will not be sent (but console output can still be generated.)
| DtFrameRateMonitor::DtFrameRateMonitor | ( | DtSimManager * | simManager | ) |
standard constructor
| DtFrameRateMonitor::DtFrameRateMonitor | ( | const DtFrameRateMonitor & | orig | ) |
copy constructor; report timer is currently not copied.
|
virtual |
destructor
| const DtFrameRateMonitor& DtFrameRateMonitor::operator= | ( | const DtFrameRateMonitor & | orig | ) |
assignment operator; see copy constructor above.
|
virtual |
Calls register callbacks.
|
virtual |
If the default constructor was used, you can supply a sim manager later; however, if you do, you must also call registerInterfaceCallbacks().
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
If the frameTime is > 0, it calculates the current frame rate as 1/frameTime.
Then it adds this frameTime (either 0 or calculated value) to its averager as another sample point.
|
virtual |
|
virtual |
Clear out the array of frame rates and start over.
If sendReport is true, will send out a frame rate report if there are any requestors
|
virtual |
Can also be set in a frameRateRequestMessage. A zero turns off averaging.
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
handles requests
|
virtual |
Send report to requester.
|
virtual |
When paused, will not add samples to the.
|
virtual |
|
virtual |
When paused, will not add samples to the.
|
static |
|
static |
|
protectedvirtual |
|
protectedvirtual |
|
protected |
If not currently averaging, this is returned for mean or median requests set by tick.
|
protected |
The values of these will determine what gets put into a report.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
Contains simulation addresses of everyone who has requested reports.
|
private |
When paused, the frame rate logger will ignore any specified samples.