Class SoRotateGestureEvent
- java.lang.Object
-
- com.openinventor.inventor.Inventor
-
- com.openinventor.inventor.events.SoEvent
-
- com.openinventor.inventor.gestures.events.SoGestureEvent
-
- com.openinventor.inventor.gestures.events.SoRotateGestureEvent
-
public class SoRotateGestureEvent extends SoGestureEvent
Class for rotate gesture events.SoRotateGestureEvent
represents a two finger rotate gesture in the Open Inventor event model. Touch events are analyzed by aSoRotateGestureRecognizer
. 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. SeeSoGestureEvent.getGestureState()
.Note:
- In order to get touch events for the gesture recognizer(s) to recognize, the application must explicitly register a touch screen device (
SoWinTouchScreen
,SoQtTouchScreen
, etc). - In order to get gesture events, the application must explicitly register gesture recognizers with the touch screen device's touch manager (
SoTouchManager
).
SoEvent
,SoGestureEvent
,SoScaleGestureEvent
, SoDouleTapGestureEvent,SoLongTapGestureEvent
,SoRotateGestureRecognizer
- In order to get touch events for the gesture recognizer(s) to recognize, the application must explicitly register a touch screen device (
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.openinventor.inventor.gestures.events.SoGestureEvent
SoGestureEvent.GestureStates
-
Nested classes/interfaces inherited from class com.openinventor.inventor.Inventor
Inventor.ConstructorCommand
-
-
Field Summary
-
Fields inherited from class com.openinventor.inventor.Inventor
VERBOSE_LEVEL, ZeroHandle
-
-
Constructor Summary
Constructors Constructor Description SoRotateGestureEvent()
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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.-
Methods inherited from class com.openinventor.inventor.gestures.events.SoGestureEvent
getGestureState
-
Methods inherited from class com.openinventor.inventor.events.SoEvent
getNormalizedPosition, getPosition, getPosition, getPositionFloat, getPositionFloat, getTime, setAltDown, setButton1Down, setCtrlDown, setPosition, setPosition, setShiftDown, setTime, wasAltDown, wasButton1Down, wasCtrlDown, wasShiftDown
-
Methods inherited from class com.openinventor.inventor.Inventor
dispose, getNativeResourceHandle
-
-
-
-
Method Detail
-
getDeltaRotation
public float getDeltaRotation()
Gets the angle between the vector defined by two fingers previous position and the vector defined by their current position.
-
getRotation
public 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.
-
-