![]() |
VR-Forces Developer's Guide
|
PPP: 10/2021:
: Acts on events routed from DtStatsHandlerManager. Since imgui now handles everything, the only purpose of also deriving this from osgViewer::StatsHandler as well, is, in slave mode to route key/mouse events for stats and imgui dragging to vrv/imgui (since vrv does not have an input handler for slaves)

Public Types | |
| enum | ProfilerStatsType { NO_PROFILER_STATS = 0, PERFORMANCE_STATS = 1, FUNCTION_STATS = 2, BOTH_STATS = 3, LAST_PROFILER_STATS = 4 } |
Public Member Functions | |
| DtOsgStatsHandler (DtDe &de) | |
| virtual void | setKeyEventTogglesProfilerStats (int key) |
| virtual int | getKeyEventTogglesProfilerStats (void) |
| virtual DtPerformanceStats * | performanceStats () |
| virtual int | osgStatsType () const |
| virtual bool | handle (const osgGA::GUIEventAdapter &ea, osgGA::GUIActionAdapter &aa) override |
Protected Member Functions | |
| virtual | ~DtOsgStatsHandler () |
| virtual void | turnOffOsgStats (osgViewer::View *view) |
| virtual void | turnOffBothProfilerStats (bool sendSettingsToGui) |
| virtual void | createPerformanceStats () |
| virtual void | deletePerformanceStats () |
| virtual void | sendPerformanceStatsToGUI (unsigned int state) |
| virtual void | turnOffPerformanceStats (bool sendSettingsToGui) |
| virtual void | sendProfilerStatsToGUI (bool enabled) |
| virtual void | updateProfilerStats (bool sendSettingsToGui) |
| virtual void | setPerformanceStatsOverlayEnabled (bool show, bool sendSettingsToGui=true) |
| virtual bool | performanceStatsOverlayEnabled () const |
| virtual void | setProfilerOverlayEnabled (bool show, bool sendSettingsToGui=true) |
| virtual bool | profilerOverlayEnabled () const |
| virtual void | slot_onPerformanceStatsOverlayOnChanged (bool mode) |
| virtual void | slot_onProfilerOverlayOnChanged (bool mode) |
| osg::GraphicsContext * | findValidContext (osg::GraphicsContext *context, osgViewer::View *view) |
Private Member Functions | |
| DtOsgStatsHandler (const DtOsgStatsHandler &other)=delete | |
| DtOsgStatsHandler & | operator= (const DtOsgStatsHandler &other)=delete |
| makVrv::DtOsgStatsHandler::DtOsgStatsHandler | ( | DtDe & | de | ) |
Default constructor - currently does nothing on purpose.
|
protectedvirtual |
destructor is protected since it should only be handled by osg::ref_ptr's
|
privatedelete |
Copy Constructor not implemented – Copy Not Allowed.
|
privatedelete |
Assignment Operator Not implemented – Assignment Not Allowed.
|
virtual |
|
virtual |
|
virtual |
access for imgui
|
virtual |
Accessor for protected _statsType osgViewer::StatsHandler variable.
|
overridevirtual |
Override method for handle() in order to fix a few minor bugs with how window size is handled.
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
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 |
receive signals from the shared state about performance overlays
|
protectedvirtual |
receive signals from the shared state about profiler overlays
|
protected |
helper function
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |