[osg-users] Passing event too multiple views in CompositeViewer

2014-05-02 Thread Patrik Andersson
Hi, I've got two views with their own cameras, set up under a Composite Viewer. Each of the view is assigned a CameraManipulator. I would like to set the home position for both views by pressing a key, but when I press the key only one view got a new home position. How can I pass the same event t

Re: [osg-users] Passing event too multiple views in CompositeViewer

2014-05-02 Thread Robert Osfield
Hi Patrik, What you could do is create an event handling that responds to the event key by calling home on all the views. Robert. On 2 May 2014 08:46, Patrik Andersson wrote: > Hi, > > I've got two views with their own cameras, set up under a Composite Viewer. > Each of the view is assigned a C

Re: [osg-users] Passing event too multiple views in CompositeViewer

2014-05-02 Thread Patrik Andersson
Thank you Robert, Do you mean that I shall create an event-handler which provide access to the composite viewer and its views and add the event-handler to each view? Patrik On Fri, May 2, 2014 at 10:57 AM, Robert Osfield wrote: > Hi Patrik, > > What you could do is create an event handling tha

Re: [osg-users] Passing event too multiple views in CompositeViewer

2014-05-02 Thread Robert Osfield
On 2 May 2014 12:01, Patrik Andersson wrote: > Thank you Robert, > > Do you mean that I shall create an event-handler which provide access to the > composite viewer and its views and add the event-handler to each view? That's how I'd do it, you should be able to use a single event handler, just a

Re: [osg-users] Passing event too multiple views in CompositeViewer

2014-05-02 Thread Patrik Andersson
Thank you! On Fri, May 2, 2014 at 1:04 PM, Robert Osfield wrote: > On 2 May 2014 12:01, Patrik Andersson > wrote: > > Thank you Robert, > > > > Do you mean that I shall create an event-handler which provide access to > the > > composite viewer and its views and add the event-handler to each vie