Hi John,

On 2 March 2015 at 01:21, John Farrier <[email protected]> wrote:

>
> Robert, thanks for the tips.  I've changed my solution as you have you
> suggested.  However, the reason to subclass from Composite Viewer is
> because I see no other way to send an event to all views contained within
> the composite viewer otherwise.  (I could get a list externally and send
> events, but that is a chunk of code that would need repeated every place a
> custom event needs sent.)  Is there a way to pass an event into the
> composite viewer that I've overlooked?
>

I don't know what you have overlooked so trying to guess what is or what is
not something you've looked at and understand is impossible to say.

The osgcluster example gets and send events between the master and slave
instances over UDP packets, the slaves unpack the UDP and pass the events
onto the viewer by injecting events the via the EventQueue.  So have a look
at this example.

In OSG-3.3.x and svn/trunk there is also an osgDB::Device base class that
allows you to create custom Device objects that can be attached to the View
and have it provide the events.

Robert.
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to