Class SoDoubleTapGestureRecognizer

java.lang.Object
com.openinventor.inventor.Inventor
com.openinventor.inventor.gestures.recognizers.SoGestureRecognizer
com.openinventor.inventor.gestures.recognizers.SoDoubleTapGestureRecognizer

public class SoDoubleTapGestureRecognizer extends SoGestureRecognizer
Double tap gesture recognizer. SoDoubleTapGestureRecognizer analyses touch events and recognizes a one finger double-tap gesture. It returns an SoDoubleTapGestureEvent with this gesture is recognized. The finger has to stay in a limitation area from the down event to the end one and must be completed within a maximum elapsed time. This recognizer only generates an END event.

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:
  • Constructor Details

    • SoDoubleTapGestureRecognizer

      public SoDoubleTapGestureRecognizer()
      Constructor.
  • Method Details

    • setMaximumDurationBetweenTap

      public void setMaximumDurationBetweenTap(SbTime t)
      Sets the maximum time that can elapse between the two taps of a double tap. (0.5 seconds by default)
    • getMaximumTapDuration

      public SbTime getMaximumTapDuration()
      Gets tap maximum duration (1.0 seconds by default).
    • setSpatialRestriction

      public void setSpatialRestriction(int c)
      Sets the radius of limitation circle in which the finger has to stay throughout the gesture. (60 pixels by default)
    • getMaximumDurationBetweenTap

      public SbTime getMaximumDurationBetweenTap()
      Gets the maximum time that can elapse between the two taps of a double tap. (0.5 seconds by default)
    • getSpatialRestriction

      public int getSpatialRestriction()
      Gets the radius of limitation circle in which the finger has to stay throughout the gesture (60 pixels by default).
    • setMaximumTapDuration

      public void setMaximumTapDuration(SbTime time)
      Sets tap maximum duration (1.0 seconds by default).