VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Types | Public Member Functions | Protected Member Functions | Protected Attributes | Private Member Functions
makVrv::DtOsgStatsHandler Class Reference

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)

Inheritance diagram for makVrv::DtOsgStatsHandler:
Inheritance graph
[legend]

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 DtPerformanceStatsperformanceStats ()
 
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)
 

Protected Attributes

DtDemyDe
 
int myKeyEventTogglesProfilerStats
 
int myProfilerStatsType
 
DtPerformanceStatsmyPerformanceStats
 
bool myNeedEnableOsgPerformanceInStartup
 
bool myStatsActive
 
DtSignalConnectionManager myConnections
 

Private Member Functions

 DtOsgStatsHandler (const DtOsgStatsHandler &other)=delete
 
DtOsgStatsHandleroperator= (const DtOsgStatsHandler &other)=delete
 

Member Enumeration Documentation

Enumerator
NO_PROFILER_STATS 
PERFORMANCE_STATS 
FUNCTION_STATS 
BOTH_STATS 
LAST_PROFILER_STATS 

Constructor & Destructor Documentation

makVrv::DtOsgStatsHandler::DtOsgStatsHandler ( DtDe de)

Default constructor - currently does nothing on purpose.

virtual makVrv::DtOsgStatsHandler::~DtOsgStatsHandler ( )
protectedvirtual

destructor is protected since it should only be handled by osg::ref_ptr's

makVrv::DtOsgStatsHandler::DtOsgStatsHandler ( const DtOsgStatsHandler other)
privatedelete

Copy Constructor not implemented – Copy Not Allowed.

Member Function Documentation

DtOsgStatsHandler& makVrv::DtOsgStatsHandler::operator= ( const DtOsgStatsHandler other)
privatedelete

Assignment Operator Not implemented – Assignment Not Allowed.

virtual void makVrv::DtOsgStatsHandler::setKeyEventTogglesProfilerStats ( int  key)
virtual
virtual int makVrv::DtOsgStatsHandler::getKeyEventTogglesProfilerStats ( void  )
virtual
virtual DtPerformanceStats* makVrv::DtOsgStatsHandler::performanceStats ( )
virtual

access for imgui

virtual int makVrv::DtOsgStatsHandler::osgStatsType ( ) const
virtual

Accessor for protected _statsType osgViewer::StatsHandler variable.

virtual bool makVrv::DtOsgStatsHandler::handle ( const osgGA::GUIEventAdapter &  ea,
osgGA::GUIActionAdapter &  aa 
)
overridevirtual

Override method for handle() in order to fix a few minor bugs with how window size is handled.

virtual void makVrv::DtOsgStatsHandler::turnOffOsgStats ( osgViewer::View *  view)
protectedvirtual
virtual void makVrv::DtOsgStatsHandler::turnOffBothProfilerStats ( bool  sendSettingsToGui)
protectedvirtual
virtual void makVrv::DtOsgStatsHandler::createPerformanceStats ( )
protectedvirtual
virtual void makVrv::DtOsgStatsHandler::deletePerformanceStats ( )
protectedvirtual
virtual void makVrv::DtOsgStatsHandler::sendPerformanceStatsToGUI ( unsigned int  state)
protectedvirtual
virtual void makVrv::DtOsgStatsHandler::turnOffPerformanceStats ( bool  sendSettingsToGui)
protectedvirtual
virtual void makVrv::DtOsgStatsHandler::sendProfilerStatsToGUI ( bool  enabled)
protectedvirtual
virtual void makVrv::DtOsgStatsHandler::updateProfilerStats ( bool  sendSettingsToGui)
protectedvirtual
virtual void makVrv::DtOsgStatsHandler::setPerformanceStatsOverlayEnabled ( bool  show,
bool  sendSettingsToGui = true 
)
protectedvirtual

Set whether IG performance stats overlay is enabled.

virtual bool makVrv::DtOsgStatsHandler::performanceStatsOverlayEnabled ( ) const
protectedvirtual

Get whether IG performance stats overlay is enabled.

virtual void makVrv::DtOsgStatsHandler::setProfilerOverlayEnabled ( bool  show,
bool  sendSettingsToGui = true 
)
protectedvirtual

Set whether IG function profiler overlay is enabled.

virtual bool makVrv::DtOsgStatsHandler::profilerOverlayEnabled ( ) const
protectedvirtual

Get whether IG function profiler overlay is enabled.

virtual void makVrv::DtOsgStatsHandler::slot_onPerformanceStatsOverlayOnChanged ( bool  mode)
protectedvirtual

receive signals from the shared state about performance overlays

virtual void makVrv::DtOsgStatsHandler::slot_onProfilerOverlayOnChanged ( bool  mode)
protectedvirtual

receive signals from the shared state about profiler overlays

osg::GraphicsContext* makVrv::DtOsgStatsHandler::findValidContext ( osg::GraphicsContext *  context,
osgViewer::View *  view 
)
protected

helper function

Member Data Documentation

DtDe& makVrv::DtOsgStatsHandler::myDe
protected
int makVrv::DtOsgStatsHandler::myKeyEventTogglesProfilerStats
protected
int makVrv::DtOsgStatsHandler::myProfilerStatsType
protected
DtPerformanceStats* makVrv::DtOsgStatsHandler::myPerformanceStats
protected
bool makVrv::DtOsgStatsHandler::myNeedEnableOsgPerformanceInStartup
protected
bool makVrv::DtOsgStatsHandler::myStatsActive
protected
DtSignalConnectionManager makVrv::DtOsgStatsHandler::myConnections
protected

The documentation for this class was generated from the following file:

Document ID: Generated on Wed Mar 27 22:49:11 EDT 2024 from SVN revision 264633
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)