Dear Robert,

in a discussion a while ago (http://forum.openscenegraph.org/viewtopic.php?t=14721) I asked if general changes to the scene graph can be monitored in a rather generic fashion.

I now started to enhance the osg::Observer class so that it may not only be used to monitor deletion, but also state changes.
The feature is far from complete, I implemented it for Matrix / PositionAttituteTransform and for modifications to Group's children list. At this early stage, I'd now like to ask you if you would have a look at it to decide if the approach is suitable at all. Being able to monitor the scene graph is a rather important feature to us. But then, it is only useful to us if it eventually goes into the official repos. If you don't find it suitable, what alternative approach would you suggest?

I added an "osgobserver" example which demonstrates how one should use the feature (the example needs C++11 for I feel that we're not going to keep it, anyway. Please tell me if that's a problem).

If you find this useful, I'd be glad to put some more effort into it to make the feature more complete.

For the time being I designed this for backwards compatibility, but I believe that interface changes (e.g. implementing osg::Observer as a template) could simplify the way the feature is used. There may however be caveats to this.

As far as this may apply yet: I don’t require to retain the copyright.

Best regards,
Stefan

Attachment: more_versatile_observer.tar.gz
Description: GNU Zip compressed data

_______________________________________________
osg-submissions mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org

Reply via email to