public class SoRotateGestureEvent extends SoGestureEvent
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:
SoTouchManager
).
See also:
SoEvent
, SoGestureEvent
, SoScaleGestureEvent
, SoDouleTapGestureEvent, SoLongTapGestureEvent
, SoRotateGestureRecognizer
SoGestureEvent.GestureStates
Inventor.ConstructorCommand
BEGIN, DELTA, END
VERBOSE_LEVEL, ZeroHandle
Constructor and Description |
---|
SoRotateGestureEvent()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
float |
getDeltaRotation()
Gets the angle between the vector defined by two fingers previous position and the vector defined by their current position.
|
float |
getRotation()
Gets the angle between the vector defined by two fingers position after the second detection and the vector defined by their current position.
|
getGestureState
getNormalizedPosition, getPosition, getPosition, getPositionFloat, getPositionFloat, getTime, setAltDown, setButton1Down, setCtrlDown, setPosition, setPosition, setShiftDown, setTime, wasAltDown, wasButton1Down, wasCtrlDown, wasShiftDown
dispose, getAddress, getNativeResourceHandle, startInternalThreads, stopInternalThreads
public float getDeltaRotation()
public float getRotation()
Generated on January 23, 2025, Copyright © Thermo Fisher Scientific. All rights reserved. http://www.openinventor.com