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