![]() |
VR-Forces 4.6 Class Documentation
|
osgViewer::StatsHandler derived class used to fix a few problems that class has in VR-Vantage More specifically fixes a problem with stats sizing and multiple windows. More...

Public Types | |
| enum | ProfilerStatsType { NO_PROFILER_STATS = 0, PERFORMANCE_STATS = 1, FUNCTION_STATS = 2, BOTH_STATS = 3, LAST_PROFILER_STATS = 4 } |
Public Member Functions | |
| DtStatsHandler (DtDe &de) | |
| Default constructor - currently does nothing on purpose. | |
| virtual void | addTransform (const osg::Matrix &transform) |
| virtual void | clearTransforms () |
| virtual void | setKeyEventTogglesProfilerStats (int key) |
| virtual int | getKeyEventTogglesProfilerStats () |
| virtual int | getStatsType () |
| Accessor for protected _statsType osgViewer::StatsHandler variable. | |
| virtual bool | handle (const osgGA::GUIEventAdapter &ea, osgGA::GUIActionAdapter &aa) |
| Override method for handle() in order to fix a few minor bugs with how window size is handled. | |
Protected Member Functions | |
| virtual | ~DtStatsHandler () |
| destructor is protected since it should only be handled by osg::ref_ptr's | |
| osg::Matrix | make2DWindowingTransform (osg::Vec2 lowerLeft1, osg::Vec2 upperRight1, osg::Vec2 lowerLeft2, osg::Vec2 upperRight2) |
| virtual void | updateTransformMatrix () |
| virtual void | initializeTransforms () |
| virtual void | turnOffOsgStats (osgViewer::View *view) |
| virtual void | turnOffBothProfilerStats (bool sendSettingsToGui) |
| virtual void | createPerformanceStats () |
| virtual void | deletePerformanceStats () |
| virtual void | sendPerformanceStatsToGUI (bool enabled) |
| virtual void | turnOffPerformanceStats (bool sendSettingsToGui) |
| virtual void | createProfilerStats () |
| virtual void | deleteProfilerStats () |
| virtual void | sendProfilerStatsToGUI (bool enabled) |
| virtual void | turnOffProfilerStats (bool sendSettingsToGui) |
| virtual void | updateProfilerStats (bool sendSettingsToGui) |
| virtual void | setUpProfilerStatsScene () |
| virtual void | initialize () |
| This will set up the graph we need to diaplay the stats in osg, it will automatically get called When we first toggle the stats. | |
| virtual void | passKeyEventToStats (int key, int modifier) |
| Pass the key event to the stats so they can handler it. | |
| virtual void | setPerformanceStatsOverlayEnabled (bool show, bool sendSettingsToGui=true) |
| Set whether IG performance stats overlay is enabled. | |
| virtual bool | performanceStatsOverlayEnabled () const |
| Get whether IG performance stats overlay is enabled. | |
| virtual void | setProfilerOverlayEnabled (bool show, bool sendSettingsToGui=true) |
| Set whether IG function profiler overlay is enabled. | |
| virtual bool | profilerOverlayEnabled () const |
| Get whether IG function profiler overlay is enabled. | |
| virtual void | slot_updateDtOsgPerformanceStats (const std::string &string) |
| slot when the stats information of the DtOsgPerformanceStats updated | |
| virtual void | slot_updateDtOsgProfilerStats (const std::string &string, int numOfLines) |
| slot when the stats information of the DtOsgProfilerStats updated | |
| virtual void | slot_onPerformanceStatsOverlayOnChanged (bool mode) |
| receive signals from the shared state about performance overlays | |
| virtual void | slot_onProfilerOverlayOnChanged (bool mode) |
| receive signals from the shared state about profiler overlays | |
Private Member Functions | |
| DtStatsHandler (const DtStatsHandler &other) | |
| Copy Constructor not implemented – Copy Not Allowed. | |
| DtStatsHandler & | operator= (const DtStatsHandler &other) |
| Assignment Operator Not implemented – Assignment Not Allowed. | |
osgViewer::StatsHandler derived class used to fix a few problems that class has in VR-Vantage More specifically fixes a problem with stats sizing and multiple windows.
Also fixes a problem with the event handler and a passthrough switch error. Lastly exposes the _statsType variable to allow recreation of the stats handler while maintaining the current visible stats.
| makVrv::DtStatsHandler::DtStatsHandler | ( | DtDe & | de | ) |
Default constructor - currently does nothing on purpose.
|
protectedvirtual |
destructor is protected since it should only be handled by osg::ref_ptr's
|
private |
Copy Constructor not implemented – Copy Not Allowed.
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
protected |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
This will set up the graph we need to diaplay the stats in osg, it will automatically get called When we first toggle the stats.
Do not call it twice.
Pass the key event to the stats so they can handler it.
|
protectedvirtual |
Set whether IG performance stats overlay is enabled.
|
protectedvirtual |
Get whether IG performance stats overlay is enabled.
|
protectedvirtual |
Set whether IG function profiler overlay is enabled.
|
protectedvirtual |
Get whether IG function profiler overlay is enabled.
|
protectedvirtual |
slot when the stats information of the DtOsgPerformanceStats updated
|
protectedvirtual |
slot when the stats information of the DtOsgProfilerStats updated
| numOfLines | the number of lines(' ') in this string |
|
protectedvirtual |
receive signals from the shared state about performance overlays
|
protectedvirtual |
receive signals from the shared state about profiler overlays
|
private |
Assignment Operator Not implemented – Assignment Not Allowed.
|
virtual |
Accessor for protected _statsType osgViewer::StatsHandler variable.
|
virtual |
Override method for handle() in order to fix a few minor bugs with how window size is handled.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |