On Tue, 2009-12-01 at 18:13 +0100, Serge Lages wrote:
> Hi Jeremy
> 
> On Tue, Dec 1, 2009 at 6:06 PM, Jeremy Moles <jer...@emperorlinux.com>
> wrote:
>         On Tue, 2009-12-01 at 17:37 +0100, Serge Lages wrote:
>         > Thanks Robert, I've totally missed the osgWidget part, it is
>         clearly
>         > the place for such mechanism.
>         >
>         > The interactive image plugin we're developping is not a
>         browser but is
>         > not so far from it, do you think it can be valuable to have
>         an
>         > InteractiveImage base class for sharing features between
>         browsers and
>         > other interactive images ?
>         >
>         > I have another question : to get events from our images,
>         we've
>         > implemented from the osg::Image base class the "update"
>         method. But
>         > what's the better way to call this update method ? Currently
>         our
>         > "quick and dirty" method is to put a custom update callback
>         to the
>         > geode or the geometry using the image which call explicitly
>         the
>         > update. Is there any other way to have this update method
>         called ?
>         
>         
>         I'd be very interested in your opinion on this as well,
>         Robert. I often
>         find myself wishing that Image objects had an update() method
>         as well,
>         but I don't know if I'm misusing OSG or it makes the most
>         sense for you
>         to put logic in the "parent" Geode instead, like Sergey is
>         doing.
>         
>         
>         
> 
> The update method already exists (Image file line 327) :
> virtual void update(NodeVisitor* /*nv*/) {} 
> 
> But I think there is no visitors to call it (but I've probably missed
> something too).

It's called by ImageSequence, actually, and does kind of the same thing
you and I are talking about, I think. :)

> -- 
> Serge Lages
> http://www.tharsis-software.com
> _______________________________________________
> osg-users mailing list
> osg-users@lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
-- 
Follow us on Twitter! http://twitter.com/emperorlinux

EmperorLinux, Inc.
http://www.emperorlinux.com
1-888-651-6686

_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to