[osg-users] More than one NodeCallback on the same node

Vincent Bourdier vincent.bourdier at gmail.com
Tue Jul 22 07:22:56 PDT 2008


Hi Robert,

Thanks for the explanations.
Can it be considerer as two callback at the same level ? or the nodecallback
and the nested nodecallback are diferents ?

What about the link which was about CompositeNodeCallback ? (
http://lists.openscenegraph.org/htdig.cgi/osg-users-openscenegraph.org/2007-October/003905.html
)

thanks,

Regards,
Vincent.


2008/7/22 Robert Osfield <robert.osfield at gmail.com>:

> HI Vinvent,
>
> A nested callback, is simply a NodeCallback which has another
> NodeCallback nested in side it.  There is an _nestedCallback pointer
> in NodeCallback to provide the hooks for doing this.
>
> A nested set of NodeCallback's can be any length - it effectively just
> a linked list.
>
> Robert.
>
> On Tue, Jul 22, 2008 at 2:17 PM, Vincent Bourdier
> <vincent.bourdier at gmail.com> wrote:
> > Hi all,
> >
> > I'm trying to add more than one nodeCallback on a single node. It would
> be
> > very useful for my application.
> >
> > First way :
> >
> > In the archive, I founded this :
> >
> http://lists.openscenegraph.org/htdig.cgi/osg-users-openscenegraph.org/2007-October/003905.html
> > I didn't saw it in OSG sources, so I suppose it hasn't been implemented ?
> >
> > Other way to do it :
> >
> > In the explanation, I found the following code :
> >
> >> if (node->getUpdateCallback())
> >> node->getUpdateCallback()->addNestedCallback(callback);
> >> else
> >> node->setUpdateCallback(callback);
> >
> > What is the difference between a "nested" callback and a normal
> nodeCallback
> > ?
> > How many nested callback is it possible to add ?
> >
> > Thanks a lot,
> >
> > Regards,
> >    Vincent.
> >
> > _______________________________________________
> > osg-users mailing list
> > osg-users at lists.openscenegraph.org
> >
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
> >
> >
> _______________________________________________
> osg-users mailing list
> osg-users at lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20080722/dc68dc41/attachment-0003.htm>


More information about the osg-users mailing list