<div dir="ltr">Hi Aaron,<div><br></div><div>There is the osgDB::ReadFileCallback that you can assign to the osgDB::Registry::instance(), this callback would then take over responsibility of doing the file reading, you can still defer the actual reading to Registry::readNodeImplementation(..) that will handle loading and calling of the plugins that do the actual loading. </div><div><br></div><div>To know when a subgraph is loaded you simply create you ReadFileCallback that calls the readNodeImplementation() to load the subgraph, then right after you can do what you want with the subgraph, then return what you want from the callback. The DatabasePager threawd will invoke your ReadFileCallback (by calling Registry::readNode(,,)) and then schedule the subgraph it returns to be merged with the main subgraph accoding to your incremental compile options.</div><div><br></div><div>Robert.</div></div><div class="gmail_extra"><br><div class="gmail_quote">On 18 August 2015 at 18:49, Aaron Andersen <span dir="ltr"><<a href="mailto:aaron@fosslib.net" target="_blank">aaron@fosslib.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello,<br>
<br>
Is there a way to have some sort of notification when the DatabasePager completes loading a node? I'd like to know when a ProxyNode or PagedLOD node has completed loading. Any callback I can register? I've browsed the DatabasePager code a bit and didn't notice anything obvious in the public API.<br>
<br>
Thank you,<br>
Aaron<br>
<br>
_______________________________________________<br>
osg-users mailing list<br>
<a href="mailto:osg-users@lists.openscenegraph.org" target="_blank">osg-users@lists.openscenegraph.org</a><br>
<a href="http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org" rel="noreferrer" target="_blank">http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org</a><br>
</blockquote></div><br></div>