Hi Sacha,

Could you avoid doing a reply to, as the most of your message is
irrelvant and confusing for those trying to follow the thread.

On 2/14/07, Sascha Kuhn <[EMAIL PROTECTED]> wrote:
I try from the example osgKeyboardMouse.osg to change the program code indeed I 
 want to move the viewer with the scroll button.
I add it in the example where it get the callbacks passed from the 
KeyboardMouseCallback to EventQueue.
If I understand this right than I have only to add a inherited class from 
GUIHandler.. to the EvenHandler list
where I can set the ViewMatrix.
What I not understand how can I define in this class that if the mouse scroll 
that it call the method of the inherited class (where I can set the view 
Matrix)?

I am bit confused after reading the above, it sounds like you are
looking for an EventHandler that can be used to control the view
matrix, in which case look at the osgGA::MatrixManipualtor subclass
from osgGA::GUIEventHandler.  There are number of subclasses from this
to learn from such as osgGA::TrackballManipulator, DriveManipulator,
FlightManipulator.

Robert.
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

Reply via email to