[osg-submissions] enhanced statshandler for compositeViewer

Stephan Maximilian Huber ratzfatz at digitalmind.de
Fri Sep 28 08:44:32 PDT 2007


Hi Robert,

attached you'll find an enhanced version of the statshandler, so it 
works with the composite-viewer (and a modified 
osgcompositeviewer-example to test the code).

* I refactored some code and moved some methods from Viewer to View 
(getCameras and getContexts)
* I modified the stats-handler to accept osgViewer::View
* i enhanced the composite-viewer-class to collect various statistics.

known limitations:
* most stats are not collected per view, they are collected per frame 
and distributed to attached views (fps, update and event)
* no handling for the various threading-modes of composite-viewer, for 
now it displays "threading-mode: nunknown"

I am not sure if I chose the right solution to add the hud-camera to a 
compositeviewer's view, you know the code better than I, please review 
this bit of code carefully.

I hope you'll find the submission useful,

thanks,
Stephan


-------------- next part --------------
A non-text attachment was scrubbed...
Name: stats_for_composite-viewer.zip
Type: application/x-zip-compressed
Size: 53719 bytes
Desc: not available
Url : http://lists.openscenegraph.org/pipermail/osg-submissions-openscenegraph.org/attachments/20070928/dbc2a143/attachment-0001.bin 


More information about the osg-submissions mailing list