Class SoGestureRecognizer
java.lang.Object
com.openinventor.inventor.Inventor
com.openinventor.inventor.gestures.recognizers.SoGestureRecognizer
- Direct Known Subclasses:
SoDoubleTapGestureRecognizer
,SoLongTapGestureRecognizer
,SoRotateGestureRecognizer
,SoScaleGestureRecognizer
Base class for all gesture recognizers.
A gesture recognizer analyzes touch events and translates them into corresponding gesture events.
Note:
- In order to get touch events for the gesture recognizer(s) to recognize, the application must explicitly register a touch screen device (
invalid reference
SoWinTouchScreen
invalid reference
SoQtTouchScreen
- In order to get gesture events, the application must explicitly register gesture recognizers with the touch screen device's touch manager (
SoTouchManager
).
- See Also:
-
Nested Class Summary
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
-
Method Summary
Modifier and TypeMethodDescriptionIf the specified touch event completes a recognized gesture, returns anSoGestureEvent
, else returns null.Methods inherited from class com.openinventor.inventor.Inventor
dispose, getNativeResourceHandle
-
Method Details
-
recognize
If the specified touch event completes a recognized gesture, returns anSoGestureEvent
, else returns null.
-