Rotate gesture recognizer. More...
#include <Inventor/gestures/recognizers/SoRotateGestureRecognizer.h>
Public Member Functions | |
SoRotateGestureRecognizer () | |
Constructor. | |
virtual | ~SoRotateGestureRecognizer () |
Destructor. | |
SoEvent * | recognize (SoEvent *touchEvent) |
If two fingers are moving on the screen, it returns the angle between the segment defined by the position of the fingers and the initial one, when the second finger was put down. | |
Rotate gesture recognizer.
SoRotateGestureRecognizer analyses touch events and recognizes a two finger rotate gesture. It generates SoRotateGestureEvent events when this gesture is recognized. This recognizer generates a BEGIN event, followed by DELTA events and finishing with an END event (SoGestureEvent::getGestureState()).
Note:
SoRotateGestureEvent, SoGestureRecognizer, SoScaleGestureRecognizer, SoDoubleTapGestureRecognizer, SoLongTapGestureRecognizer
Definition at line 85 of file SoRotateGestureRecognizer.h.
SoRotateGestureRecognizer::SoRotateGestureRecognizer | ( | ) |
Constructor.
|
virtual |
Destructor.
If two fingers are moving on the screen, it returns the angle between the segment defined by the position of the fingers and the initial one, when the second finger was put down.
If no gesture has been recognized, returns null. Returns a pointer to an internal data object. Do not modify or delete this object.
Implements SoGestureRecognizer.