Class for rotate gesture events. More...
#include <Inventor/gestures/events/SoRotateGestureEvent.h>
Public Member Functions | |
virtual SoType | getTypeId () const |
SoRotateGestureEvent () | |
float | getRotation () const |
float | getDeltaRotation () const |
Static Public Member Functions | |
static SoType | getClassTypeId () |
Class for rotate gesture events.
SoRotateGestureEvent represents a two finger rotate gesture in the Open Inventor event model. Touch events are analyzed by a SoRotateGestureRecognizer. When a rotate 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, SoScaleGestureEvent, SoDouleTapGestureEvent, SoLongTapGestureEvent, SoRotateGestureRecognizer
SoRotateGestureEvent::SoRotateGestureEvent | ( | ) |
Constructor.
static SoType SoRotateGestureEvent::getClassTypeId | ( | ) | [static] |
Returns the type identifier for this class.
Reimplemented from SoGestureEvent.
float SoRotateGestureEvent::getDeltaRotation | ( | ) | const |
Gets the angle between the vector defined by two fingers previous position and the vector defined by their current position.
float SoRotateGestureEvent::getRotation | ( | ) | const |
Gets the angle between the vector defined by two fingers position after the second detection and the vector defined by their current position.
virtual SoType SoRotateGestureEvent::getTypeId | ( | ) | const [virtual] |
Returns the type identifier for this specific instance.
Reimplemented from SoGestureEvent.