On 5/13/07, Robert Osfield <[EMAIL PROTECTED]> wrote:
Hi Serge, On 5/13/07, Serge Lages <[EMAIL PROTECTED]> wrote: > Hum finally it's a bit more complicated for me to not be able to retrieve > the databasepager. > Have you any suggestion on the best way to retrieve, when I am traversing a > node, which database pager is called when I do a > nv.getDatabaseRequestHandler()->requestNodeFile ? DatabasePager subclasses from DatabaseRequestHandler, and its the DatabasePager itself that is attached the visitor so you can do: osgDB::DatabasePager* pager = dynamic_cast<osgDB::DatabasePager*>( nv.getDatabaseRequestHandler()); This will work with osgProducer or osgViewer based apps.
Thank you very much Robert, I never noticed that the DatabasePager subclasses from DatabaseRequestHandler, it will really simplify my life. :) -- Serge Lages http://www.magrathea-engine.org
_______________________________________________ osg-users mailing list [email protected] http://openscenegraph.net/mailman/listinfo/osg-users http://www.openscenegraph.org/
