Class for scale (pinch) gesture events. More...
#include <Inventor/gestures/events/SoScaleGestureEvent.h>
Public Member Functions | |
virtual SoType | getTypeId () const |
SoScaleGestureEvent () | |
float | getScaleFactor () const |
float | getDeltaScaleFactor () const |
Static Public Member Functions | |
static SoType | getClassTypeId () |
Class for scale (pinch) gesture events.
SoScaleGestureEvent represents a pinch gesture in the Open Inventor event model. Touch events are analyzed by a SoScaleGestureRecognizer. When a scale gesture is recognized, the recognizer generates this event. The gesture begins with a BEGIN state event. DELTA state events are generated until the end of the gesture which generates an END state event. See SoGestureEvent::getGestureState().
Note:
SoEvent, SoGestureEvent, SoDoubleTapGestureEvent, SoLongTapGestureEvent, SoRotateGestureEvent, SoScaleGestureRecognizer
SoScaleGestureEvent::SoScaleGestureEvent | ( | ) |
Constructor.
static SoType SoScaleGestureEvent::getClassTypeId | ( | ) | [static] |
Returns the type identifier for this class.
Reimplemented from SoGestureEvent.
float SoScaleGestureEvent::getDeltaScaleFactor | ( | ) | const |
Gets the ratio between the current fingers distance and the previous distance.
float SoScaleGestureEvent::getScaleFactor | ( | ) | const |
Gets the ratio between the current fingers distance and the first distance evaluated after the second down event.
virtual SoType SoScaleGestureEvent::getTypeId | ( | ) | const [virtual] |
Returns the type identifier for this specific instance.
Reimplemented from SoGestureEvent.