> > > I'm new to openSceneGraph and I tell you, dear developers, it is hard to > > learn due to extreme poor class and method documentation. Look at the > > doxygen doc and you will see what I mean. > > We all know what you mean, but improving it is a large task that is > being done incrementally when people have time. This has been discussed > a lot in the past. I guessed that already ;-) But things will not really improve if developers don't comment at creation time.
> > In the mean time, learn to read the source, you'll learn much faster > that way. > > > Is there any method to manipulate the manipulator accordingly? > > Look at the code for osgGA::TrackballManipulator, you'll see that it > only responds to mouse events. You can subclass it and override its > handle() method, respond to keyboard events there and call the base > class version of osgGA::TrackballManipulator::handle() afterwards so the > mouse events will continue to work. > > Hope this helps, This will help definitively! Since I'm using Adapterwidget to QGLWidget I have to handle any events anyway myself. So what about using TrackballManipulator::setRotation(...) or TrackballManipulator::setDistance(...) Do they work incrementally? (No comments on doc :-( Or can I use TB->setByMatrix(TB->getMatrix() * myRotationMatrix) _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

