Re: [osg-users] PagedLOD node page callback

2008-01-28 Thread Guerrero, Michael (CIV)
: [osg-users] PagedLOD node page callback Hi Guerro, Hope I understand you correctly - but couldn't you just use node-getParent() perhaps cast it if(node-asGroup()) osg::Group* group = dynamic_castosg::Group*(node); ..or maybe getnodePath() to find what your

Re: [osg-users] PagedLOD node page callback

2008-01-26 Thread Tanja Paul
the methods. - Original Message - From: Guerrero, Michael (CIV) [EMAIL PROTECTED] To: OpenSceneGraph Users osg-users@lists.openscenegraph.org Sent: Friday, January 25, 2008 2:12 PM Subject: Re: [osg-users] PagedLOD node page callback Hi guys, I implemented an osgDB::Registry::ReadCallback

Re: [osg-users] PagedLOD node page callback

2008-01-25 Thread Robert Osfield
Hi Paul, osg::observer_ptr is the only public example of osg::Observer in action that I can think of. Robert. On Jan 25, 2008 12:26 AM, Paul Pocock [EMAIL PROTECTED] wrote: Hi Robert, I was wondering how you would use osg::Observer and are there any examples. Would you construct it as

Re: [osg-users] PagedLOD node page callback

2008-01-24 Thread Paul Pocock
Hi Robert, I was wondering how you would use osg::Observer and are there any examples. Would you construct it as osg::observer_ptrosg::Object pagedLODObserver ? and catch page unloads by testing for objectDeleted() ? On Thu, 2008-01-24 at 09:01 +, Robert Osfield wrote: Hi

Re: [osg-users] PagedLOD node page callback

2008-01-24 Thread Robert Osfield
Hi Michael, To monitor file loads you just need to assign a custom osdDB::Registry::ReadCallback to the Registry.. To catch unloads you have two routes, add an custom osg::Observer to PagedLOD objects to get informed when they get deleted or to create your own DatabasePager subclass. Robert.

[osg-users] PagedLOD node page callback

2008-01-23 Thread Guerrero, Michael (CIV)
Hi, I'm searching for a convenient way to be alerted when a PagedLOD node gets either paged in or out. Is there a preferred method of doing this? Thanks, Michael ___ osg-users mailing list osg-users@lists.openscenegraph.org