<div dir="ltr">HI Aaron,<br><div class="gmail_extra"><br><div class="gmail_quote">On 31 August 2015 at 12:50, 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:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">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?<br></blockquote><div><br><br></div><div>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.<br><br></div><div>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.<br><br></div><div>Robert.<br></div><div> </div></div></div></div>