Re: [osg-users] Early events handling

2017-02-13 Thread Robert Osfield
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  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@lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


[osg-users] Early events handling

2017-02-13 Thread Riccardo Corsi
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@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org