Robert Osfield wrote on Wednesday, May 20, 2009 8:34 AM: > On Wed, May 20, 2009 at 1:01 PM, Serge Lages <[email protected]> wrote: >> I was just wondering why there is no more a requestNodeFile method in >> osgDB/DatabasePager taking only 5 parameters (setting options to NULL >> directly). Is it normal or is it maybe a copy past error ? > > The PagedLOD node now has it's won optional Options object that can be > assigned to it, and then passed on automaticaly to the DatabasePager > via the NodeVisitor::DatabaseRequestHandler which now has the Options* > parameter inbuilt. PagedLOD has a NULL for Options so the original > behavior is kept the same. Your own code that calls the > DatabaseRequestHandler can also just use NULL too, unless you want a > specific Options object used. > > The new scheme should be more flexible but at the same time retain the > original default behaviour.
Should NodeVisitor::DatabaseRequestHandler::requestNodeFile still have the options argument default to 0 (requestNodeFile(..., const osg::Referenced* options=0))? I'm not sure if that'll cause any problems, but it doesn't match osgDB::DatabasePager. Fixed version of NodeVisitor attached to make it match. -- Bryan Thrall FlightSafety International [email protected]
NodeVisitor
Description: NodeVisitor
_______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

