Thanks Robert,

I was expecting this answer ;-)

cheers
Sebastian
HI Sebaastian,

I you want to keep track of internals of DatabasePager it is probably
best to simply subclass from DatabasePager.

Robert.

On 5 March 2012 09:01, Sebastian Messerschmidt
<sebastian.messerschm...@gmx.de>  wrote:
Hello,

I have a fairly big database which needs to be handled via PagedLOD. This
works fine up to a certain point.
In my project I've installed a load callback in order to clone certain nodes
and do my own caching.
Now, in order to cache the nodes correctly I've put a reference to the node
in to a map (std::map<std::string, osg::ref_ptr<Node>>). I need to use the
ref_ptr to be sure the node is still valid.
It works well, up to the point where the DataBasePager removes expired
PagedLODs, as I don't found any way to set a callback to the DataBasePager
that tells me, which node is going to be removed.

Is there any way to get this information (preferably via a callback)? Or do
I have to set an observer to the node and don't manage the nodes as ref_ptr
at this point?

cheers
Sebastian


_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to