[osg-users] PagedLOD/ProxyNode design discussion

Chris 'Xenon' Hanson xenon at alphapixel.com
Wed Nov 25 10:34:11 PST 2009

Robert Osfield wrote:
>> got another opinion on the PagedLOD and ProxyNode topic. :-)
>> We have been using both nodes for stuff like pseudo loaders as well and
>> I would recommend to change the interface a little bit. There should be
>> a common interface for all pageable nodes like:
>> class PageingNode : public Group {}
>> and then:
>> class ProxyNode : public PageingNode {}
>> class PagedLOD : public PageingNode {}
>> and now one can easily add custom implementations on top of PageingNode
>> like
>> class MyCustomNodeWhichRefreshesTheSubgraphEvery10Seconds : public
>> PageableNode {}
> I can see value in this, but I'm not sure how easy it would be to come
> up with the PagingNode base class - it can't just subclass from
> osg::Group.

  I've seen the same situation -- the DatabasePager is really strictly tied to ProxyNode
and PagedLOD.

  Multiple inheritance also opens a can of worms.

Chris 'Xenon' Hanson, omo sanza lettere                  Xenon AlphaPixel.com
PixelSense Landsat processing now available! http://www.alphapixel.com/demos/
"There is no Truth. There is only Perception. To Perceive is to Exist." - Xen

More information about the osg-users mailing list