[osg-users] Reading files and callbacks
Robert Osfield
robert.osfield at gmail.com
Mon Aug 31 06:37:49 PDT 2015
HI Aaron,
On 31 August 2015 at 12:50, Aaron Andersen <aaron at fosslib.net> wrote:
> Might it make sense to add an optional callback to either the
> PagedLOD+ProxyNode classes or to the DatabasePager for when loading of a
> node is complete? If so, would patches be accepted?
>
The osgDB::ReadFileCallback allows you to report when a subgraph is loaded
by allowing you to call the standard osgDB::Registry::readFile(..) and then
process the subgraph, do any optional signally you want and return the
processed subgraph.
However, if you actually want to take charge of when the subgraph is
actually merged then there isn't presently a callback from it but you can
subclass from osgDB::DatabasePager and override the
DartabasePager::updateSceneGraph() method there merged loaded subgraphs
with the main scene graph.
Robert.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20150831/d22f1550/attachment-0003.htm>
More information about the osg-users
mailing list