OpenSceneGraph/include/osgGA
Robert Osfield bc5575f83a From Kristofer Tingdahl, "I and my team have gone over the code again, and we feel that we are comfortable in our current proposal for change. It goes deeper than it did before, and I explain why:
There was code in the osgViewer/Viewer.cpp and osgViewer/CompositeViewer.cpp that transformed the Y-coordinates of an event. The code in the composite viewer did however miss the touch-data of the event. I thought that it should really be the GUIEventAdapter that should know about this, and hence I added the
GUIEventAdapter::setMouseYOrientationAndUpdateCoords which is re-computing the coordinates. First I simply added a boolean to the setMouseYOrientation function:

setMouseYOrientation( MouseYOrientation, bool updatecooreds=false );

but then the serializer complained.

This function is called from both the Viewer and the CompositeViewer. We have not tested from the viewer, but I cannot see it would not work from visual inspection.

The other change is in MultiTouchTrackballManipulator::handleMultiTouchDrag. I have removed the normalisation. The reason for that is that it normalised into screen coordinates from 0,0 to 1,1. The problem with that is that if you have a pinch event and you keep the distance say 300 pixels between your fingers, these 300 pixels represent 0.20 of the screen in the horizontal domain, but 0.3 of the screen in the vertical domain. A rotation of the pinch-fingers will hence result in a zoom in, as the normalised distance is changing between them.

A consequence of this is that I have changed the pan-code to use the same algorithm as the middle-mouse-pan.

The rest of it is very similar from previous revision, and there has been some fine-tuning here and there.

"
2014-04-24 17:14:54 +00:00
..
AnimationPathManipulator Ran script to remove trailing spaces and tabs 2012-03-21 17:36:20 +00:00
CameraManipulator Moved Handled propety from GUIEventAdapter to Event base class. 2013-11-15 16:15:09 +00:00
CameraViewSwitchManipulator Ran script to remove trailing spaces and tabs 2012-03-21 17:36:20 +00:00
Device Introduce new osgGA::Event and osgGA::EventHandler base classes that the old GUIEventAdapter and GUIEventHandler now subclass from. 2013-10-25 14:54:15 +00:00
DriveManipulator From Magnus Kessler, "I'm resubmitting a slightly different version of the changes you left out for 2010-09-16 09:49:22 +00:00
Event Moved Handled propety from GUIEventAdapter to Event base class. 2013-11-15 16:15:09 +00:00
EventHandler From Jordi Torres, "We have a code using gcc with -Wextra flag and using OSG as a third party library. It does not compile when importing <osgViewer/Viewer> failing in EventHandler and GUIEventHandler: 2014-01-17 13:59:29 +00:00
EventQueue Introduce new osgGA::Event and osgGA::EventHandler base classes that the old GUIEventAdapter and GUIEventHandler now subclass from. 2013-10-25 14:54:15 +00:00
EventVisitor Introduce new osgGA::Event and osgGA::EventHandler base classes that the old GUIEventAdapter and GUIEventHandler now subclass from. 2013-10-25 14:54:15 +00:00
Export Ran script to remove trailing spaces and tabs 2012-03-21 17:36:20 +00:00
FirstPersonManipulator Changed setTransformation(eye, center, up) paramter ordering to match gluLookAt conventions. 2010-08-16 11:03:24 +00:00
FlightManipulator From Magnus Kessler, typo and documentation fixes 2012-03-29 15:08:15 +00:00
GUIActionAdapter From Sebastian Messerschmidt, "n the trunk version the osgGA::GUIActionAdapter has additional functions for lineIntersection which use osgGA::GUIEventAdapter&, but the class declaration is neither forwarded, nor is the header included. 2014-04-08 11:48:34 +00:00
GUIEventAdapter From Kristofer Tingdahl, "I and my team have gone over the code again, and we feel that we are comfortable in our current proposal for change. It goes deeper than it did before, and I explain why: 2014-04-24 17:14:54 +00:00
GUIEventHandler From Jordi Torres, "We have a code using gcc with -Wextra flag and using OSG as a third party library. It does not compile when importing <osgViewer/Viewer> failing in EventHandler and GUIEventHandler: 2014-01-17 13:59:29 +00:00
KeySwitchMatrixManipulator Moved Handled propety from GUIEventAdapter to Event base class. 2013-11-15 16:15:09 +00:00
MultiTouchTrackballManipulator From Kristofer Tingdahl, made method virtual 2014-01-28 16:49:20 +00:00
NodeTrackerManipulator Refactored NodeTrackerManipulator to use osg::ObserverNodePath rather than it's only local equivilant. 2011-02-03 17:07:01 +00:00
OrbitManipulator Fixed parameter default value to avoid warning 2012-07-11 08:39:11 +00:00
SphericalManipulator Ran script to remove trailing spaces and tabs 2012-03-21 17:36:20 +00:00
StandardManipulator From Wojciech Lewandowski, "We encountered a problem when we tried overloading StandardManipulator class. Linker was unable to find StandardManipulator::AnimationData methods. Prefixing AnimationData with OSGGA_EXPORT removed the issue. 2011-01-11 17:20:25 +00:00
StateSetManipulator Ran script to remove trailing spaces and tabs 2012-03-21 17:36:20 +00:00
TerrainManipulator From Jan Pecvia, improvements to manipulators and added new manipulator to osgviewer 2010-05-27 13:59:34 +00:00
TrackballManipulator From Jan Pecvia, improvements to manipulators and added new manipulator to osgviewer 2010-05-27 13:59:34 +00:00
UFOManipulator Ran script to remove trailing spaces and tabs 2012-03-21 17:36:20 +00:00
Version Ran script to remove trailing spaces and tabs 2012-03-21 17:36:20 +00:00
Widget Added support for serailizing and scripting BoundingBox and BoundingSphere objects 2014-02-10 16:44:13 +00:00