[osg-users] Early events handling

Robert Osfield robert.osfield at gmail.com
Mon Feb 13 07:10:09 PST 2017


HI Riccardo,

If you want custom event handling then simply override the
Viewer/CompositeViewer::eventTraversal() method and implement your own
behaviour.

Robert.

On 13 February 2017 at 15:02, Riccardo Corsi <riccardo.corsi at kairos3d.it> wrote:
> Hi all,
>
> what I'm after is very similar to what the osg viewer does when checking if
> the QUIT event has happened during the last frame - link - with all the
> events collected in a frame available at the same time.
>
> I'd like to do that before the other callbacks (placed as node callback or
> viewer events handler) are invoked, with one event passed at the time.
>
> At the moment, the best workaround that I could come up with is to collect
> all the events in a node callback, and use the FRAME event to know that I
> have finished the collection for the current frame.
>
> Robert, do you think it's advisable to add a new callback/entry point in the
> Viewer and CompositeViewer classed for such usage?
>
> Thank you,
> Riccardo
>
> _______________________________________________
> osg-users mailing list
> osg-users at lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>



More information about the osg-users mailing list