[osg-users] Monitoring the DatabasePager
Robert Osfield
robert.osfield at gmail.com
Tue Aug 18 11:26:11 PDT 2015
Hi Aaron,
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.
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.
Robert.
On 18 August 2015 at 18:49, Aaron Andersen <aaron at fosslib.net> wrote:
> Hello,
>
> 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.
>
> Thank you,
> Aaron
>
> _______________________________________________
> osg-users mailing list
> osg-users at lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20150818/622d97ce/attachment-0003.htm>
More information about the osg-users
mailing list