On Tue, 2011-07-26 at 20:13 +0200, Daniel Cámpora wrote: > Hello again :), > > > Jeremy Moles wrote: > > > > > > > From the addremove example from the sources, I see we can either set a > > > mask within the widget (like in "Button"), or add callbacks in the > > > Window. Is there a preference on doing this? E.g., in the addremove > > > example the clickable items change their color from within the widget, > > > whereas in the canvas example this is triggered by a callback in the > > > Window. Are there any efficiency considerations on this? > > > > > > > You MUST set an event mask to get the events in the first place. This > > seems like two different questions, perhaps? :) > > > > > Sorry, I was confused by the addremove example. I'm familiar with the > nodemasks, but I found the example a little bit confusing given the fact it > overrides methods to be traversed by the EventHandler (which is hidden in the > createExample method) and sets callbacks. > > Thanks!
I get a lot of questions about this via e-mail. In the next version of osgWidget, I plan on making only ONE way to respond to events. I got a bit carried away back in those days... :) > Daniel > > ------------------ > Read this topic online here: > http://forum.openscenegraph.org/viewtopic.php?p=41638#41638 > > > > > > _______________________________________________ > osg-users mailing list > [email protected] > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org > _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

