Scale (pinch) gesture recognizer. More...
#include <Inventor/gestures/recognizers/SoScaleGestureRecognizer.h>
Public Member Functions | |
SoScaleGestureRecognizer () | |
Constructor. | |
virtual | ~SoScaleGestureRecognizer () |
Destructor. | |
SoEvent * | recognize (SoEvent *touchEvent) |
If two fingers are "pinching" on the screen, it returns an event with the ratio between the current distance between fingers and the initial distance when the second finger was put down. | |
Scale (pinch) gesture recognizer.
SoScaleGestureRecognizer analyses touch events and recognizes a scale (two finger pinch) gesture. It returns an SoScaleGestureEvent (pinch) event if this gesture is recognized. The scale event contains the scale factor between the current state and the initial one. This recognizer generates a BEGIN event, followed by DELTA events and finishing with an END event (SoGestureEvent::getGestureState()).
Note:
SoGestureRecognizer, SoRotateGestureRecognizer, SoDoubleTapGestureRecognizer, SoLongTapGestureRecognizer, SoScaleGestureEvent
Definition at line 87 of file SoScaleGestureRecognizer.h.
SoScaleGestureRecognizer::SoScaleGestureRecognizer | ( | ) |
Constructor.
|
virtual |
Destructor.
If two fingers are "pinching" on the screen, it returns an event with the ratio between the current distance between fingers and the initial distance 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.