Rotate gesture recognizer. More...
#include <Inventor/gestures/recognizers/SoRotateGestureRecognizer.h>
Public Member Functions | |
SoRotateGestureRecognizer () | |
virtual | ~SoRotateGestureRecognizer () |
SoEvent * | recognize (SoEvent *touchEvent) |
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
SoRotateGestureRecognizer::SoRotateGestureRecognizer | ( | ) |
Constructor.
virtual SoRotateGestureRecognizer::~SoRotateGestureRecognizer | ( | ) | [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.