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 (
    invalid reference
    SoWinTouchScreen
    ,
    invalid reference
    SoQtTouchScreen
    , etc).
  • In order to get gesture events, the application must explicitly register gesture recognizers with the touch screen device's touch manager (SoTouchManager).

See Also:
  • Method Details

    • recognize

      public SoEvent recognize(SoEvent touchEvent)
      If the specified touch event completes a recognized gesture, returns an SoGestureEvent, else returns null.