Class SoLongTapGestureEvent


public class SoLongTapGestureEvent extends SoGestureEvent
Class for long tap gesture events. SoLongTapGestureEvent represents a long tap (touch-and-hold) gesture event in the Open Inventor event model. Touch events are analyzed by a SoLongTapGestureRecognizer. When a long tap gesture is recognized, the recognizer generates this event. It's a gesture with only END state (only one event is generated, at the end of the gesture). The finger has to stay within a limitation area and the gesture must be completed within a time limit (see SoLongTapGestureRecognizer).

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).

SoEvent, SoGestureEvent, SoRotateGestureEvent, SoScaleGestureEvent, SoDoubleTapGestureEvent; SoLongTapGestureRecognizer

  • Constructor Details

    • SoLongTapGestureEvent

      public SoLongTapGestureEvent()
      Constructor.
  • Method Details

    • getDuration

      public SbTime getDuration()
      Returns duration of long tap.
    • setDuration

      public void setDuration(SbTime time)
      Sets duration of long tap (in seconds)