[osg-users] Picking as the QuickGuide example only using Viewer as embedded window, does only catch FRAME type, no mouse events!

2008-04-28 Thread erf
I've created the PickHandler as in the QuickGuide book and added to my Viewer ( 
as embedded! ), but I cant catch mouse events, only FRAME type.

Do you know what I'm doing wrong?

Erlend
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] Picking as the QuickGuide example only using Viewer as embedded window, does only catch FRAME type, no mouse events!

2008-04-28 Thread erf
ps.. using osg 2.3.7 on win vista.. could it be some kind of bug with this 
version? do  you think upgrading to 2.4 would solve my problem?

From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED]
Sent: 28. april 2008 16:07
To: osg-users@lists.openscenegraph.org
Subject: [osg-users] Picking as the QuickGuide example only using Viewer as 
embedded window, does only catch FRAME type, no mouse events!

I've created the PickHandler as in the QuickGuide book and added to my Viewer ( 
as embedded! ), but I cant catch mouse events, only FRAME type.

Do you know what I'm doing wrong?

Erlend
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] Picking as the QuickGuide example only using Viewer as embedded window, does only catch FRAME type, no mouse events!

2008-04-28 Thread Paul Martz
EventHandlers use the Chain of Responsibility design pattern. If you have
another EventHandler installed earlier that is taking the mouse events, then
downstream EventHandlers do not receive those events.
 
Not sure why else you might not receive those events.
   -Paul
 


  _  

From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
[EMAIL PROTECTED]
Sent: Monday, April 28, 2008 8:07 AM
To: osg-users@lists.openscenegraph.org
Subject: [osg-users] Picking as the QuickGuide example only using Viewer as
embedded window, does only catch FRAME type, no mouse events!



I've created the PickHandler as in the QuickGuide book and added to my
Viewer ( as embedded! ), but I cant catch mouse events, only FRAME type.

 

Do you know what I'm doing wrong?

 

Erlend

___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] Picking as the QuickGuide example only using Viewer as embedded window, does only catch FRAME type, no mouse events!

2008-04-28 Thread Jeremy Moles

On Mon, 2008-04-28 at 16:07 +0200, [EMAIL PROTECTED] wrote:
 I've created the PickHandler as in the QuickGuide book and added to my
 Viewer ( as embedded! ), but I cant catch mouse events, only FRAME
 type.
 
  
 
 Do you know what I'm doing wrong?

You won't be able to use standard OSG events unless OSG created and
managed the entire window. You'll have to hook into whatever API you
used to create the Window (Qt, GTK, SDL, etc.) and convert the events
there.

The osgviewerSDL demonstrates this pretty well, and I've written an
osgviewerGTK I plan on submitting once Robert gets back which converts
GTK events into OSG events.

 Erlend
 
 
 ___
 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