SoDoubleTapGestureRecognizer Class |
Double tap gesture recognizer.
Namespace: OIV.Inventor.Gestures.Recognizers
The SoDoubleTapGestureRecognizer type exposes the following members.
Name | Description | |
---|---|---|
SoDoubleTapGestureRecognizer | Constructor. |
Name | Description | |
---|---|---|
Equals | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) | |
GetHashCode |
Overrides GetHashCode().
(Inherited from SoNetBase.) | |
GetMaximumDurationBetweenTap | Gets the maximum time that can elapse between the two taps of a double tap. | |
GetMaximumTapDuration | Gets tap maximum duration (1.0 seconds by default). | |
GetSpatialRestriction | Gets the radius of limitation circle in which the finger has to stay throughout the gesture (60 pixels by default). | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
Recognize | If the specified touch event completes a recognized gesture, returns an OIV.Inventor.Gestures.Events.SoGestureEvent, else returns null. | |
SetMaximumDurationBetweenTap | Sets the maximum time that can elapse between the two taps of a double tap. | |
SetMaximumTapDuration | Sets tap maximum duration (1.0 seconds by default). | |
SetSpatialRestriction | Sets the radius of limitation circle in which the finger has to stay throughout the gesture. | |
ToString | Returns a string that represents the current object. (Inherited from Object.) |
OIV.Inventor.Gestures.Recognizers.SoDoubleTapGestureRecognizer analyses touch events and recognizes a one finger double-tap gesture. It returns an OIV.Inventor.Gestures.Events.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 (OIV.Inventor.Touch.Devices.SoWinTouchScreen, SoQtTouchScreen, etc).
In order to get gesture events, the application must explicitly register gesture recognizers with the touch screen device's touch manager (OIV.Inventor.Touch.SoTouchManager).