Hi Andreas, On 10 December 2012 11:59, Andreas Stahl <[email protected]>wrote:
> So I went ahead and tried to rework the problem as one big scene graph and > multiple cameras into it. I might get it to work, but a more flexible event > handling between overlapping views could have really helped. Maybe I'll > give subclassing CompositeViewer a shot, overriding eventtraversal. > If the default behaviour is not what you want then overriding the eventTraversal method would be appropriate - it's why the method is virtual :-) > > One question then still stands however: What is the significance of the > return value of osgGA::GUIEventAdapter::handle and when should it return > true? > The event handler handle() method should return true if the event is handled, but it's also the event handlers responsibility to decide whether it should handle already handled events. Some event handlers don't want to handle already handled events, which other need to handle all events regardless of whether another event handlers has handled it already - examples of this would be a resize or frame event. Have a look through the various event handler handle(..) implementation in the OSG code base to see which event handlers do what. Robert.
_______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

