DragGestureRecognizer - This example demonstrates how to use create new gesture events and recognizer.
SYNOPSIS:
DESCRIPTION:
DragGestureRecognizer demonstrates how to create new gesture events and recognizer. It provides a simple class of drag event and a class of drag recognizer. SoDragGestureEvent contains the dragged distance. The recognizer has to analyze every touch event and: Begin with a BEGIN gesture event when two fingers are touching the screen. Release DELTA event when this two fingers move. Release END gesture event when one finger, at least, is removed from the monitor. Computed distance is the length of the line defined by the center between two fingers.
SEE ALSO
SoTouchEvent, SoQtTouchScreen
FILES:
-
Inventor/examples/MultiTouch/DragGestureRecognizer/DragGestureRecognizer.cxx
-
Inventor/examples/MultiTouch/DragGestureRecognizer/SoDragGestureEvent.cxx
-
Inventor/examples/MultiTouch/DragGestureRecognizer/SoDragGestureEvent.h
-
Inventor/examples/MultiTouch/DragGestureRecognizer/SoDragGestureRecognizer.cxx
-
Inventor/examples/MultiTouch/DragGestureRecognizer/SoDragGestureRecognizer.h