Class SoGestureRecognizer
- java.lang.Object
-
- com.openinventor.inventor.Inventor
-
- com.openinventor.inventor.gestures.recognizers.SoGestureRecognizer
-
- Direct Known Subclasses:
SoDoubleTapGestureRecognizer
,SoLongTapGestureRecognizer
,SoRotateGestureRecognizer
,SoScaleGestureRecognizer
public class SoGestureRecognizer extends Inventor
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 (
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
).
-
-
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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SoEvent
recognize(SoEvent touchEvent)
If the specified touch event completes a recognized gesture, returns anSoGestureEvent
, else returns null.-
Methods inherited from class com.openinventor.inventor.Inventor
dispose, getNativeResourceHandle
-
-
-
-
Method Detail
-
recognize
public SoEvent recognize(SoEvent touchEvent)
If the specified touch event completes a recognized gesture, returns anSoGestureEvent
, else returns null.
-
-