| SoLongTapGestureRecognizer Class |
Long tap gesture recognizer.
Namespace: OIV.Inventor.Gestures.Recognizers
The SoLongTapGestureRecognizer type exposes the following members.
| Name | Description | |
|---|---|---|
| SoLongTapGestureRecognizer | Constructor. |
| Name | Description | |
|---|---|---|
| Equals | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) | |
| GetHashCode |
Overrides GetHashCode().
(Inherited from SoNetBase.) | |
| GetMinimumLongTapDuration | Gets the minimum duration of a long tap. | |
| GetSpatialRestriction | Gets the radius of the limitation circle in which the finger has to stay throughout the gesture. | |
| 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. | |
| SetMinimumLongTapDuration | Sets the minimum duration of a long tap. | |
| SetSpatialRestriction | Sets the radius of the 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.SoLongTapGestureRecognizer analyses touch events and recognizes a one finger long-tap (touch-and-hold) gesture. It returns an OIV.Inventor.Gestures.Events.SoLongTapGestureEvent with the long tap duration if this gesture is recognized. The finger has to stay in a limitation area from the down event to the up event and must stay down for a minimum period of 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).