SoDoubleTapGestureEvent Class |
Class for double-tap gesture events.
Namespace: OIV.Inventor.Gestures.Events
The SoDoubleTapGestureEvent type exposes the following members.
Name | Description | |
---|---|---|
SoDoubleTapGestureEvent | Constructor. |
Name | Description | |
---|---|---|
Equals | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) | |
GetGestureState | Gets the gesture event state (Begin,Delta,End). | |
GetHashCode |
Overrides GetHashCode().
(Inherited from SoNetBase.) | |
GetNormalizedPosition | Gets the normalized location of the cursor when the event occurred, relative to the specified viewport region. | |
GetPosition | Returns the window pixel location of the cursor when the event occurred as integer values. | |
GetPosition(SbViewportRegion) | Gets the viewport pixel location of the cursor when the event occurred, relative to the origin of the specified viewport region, as integer values. | |
GetPositionFloat | Returns the window pixel location of the cursor when the event occurred as float values. | |
GetPositionFloat(SbViewportRegion) | Gets the viewport pixel location of the cursor when the event occurred, relative to the origin of the specified viewport region, as float values. | |
GetTime | Gets the time at which the event occurred. | |
GetTrackerInfo | Gets whether an event object has associated tracker information. | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
SetAltDown | Sets whether the ALT key was down when the event occurred. | |
SetButton1Down | Sets whether mouse Button 1 was down when the event occurred. | |
SetCtrlDown | Sets whether the CTRL key was down when the event occurred. | |
SetPosition(SbVec2f) | Float version of OIV.Inventor.Events.SoEvent.SetPosition(OIV.Inventor.SbVec2s). | |
SetPosition(SbVec2s) | Sets the window pixel location of the cursor when the event occurred. | |
SetShiftDown | Sets whether the shift key was down when the event occurred. | |
SetTime | Sets the time at which the event occurred. | |
ToString | Returns a string that represents the current object. (Inherited from Object.) | |
WasAltDown | Returns true if the ALT key was down when the event occurred. | |
WasButton1Down | Returns true if mouse button 1 was down when the event occurred. | |
WasCtrlDown | Returns true if the CTRL key was down when the event occurred. | |
WasShiftDown | Returns true if the shift key was down when the event occurred. |
OIV.Inventor.Gestures.Events.SoDoubleTapGestureEvent represents a double-tap gesture event in the Open Inventor event model. Touch events are analyzed by a OIV.Inventor.Gestures.Recognizers.SoDoubleTapGestureRecognizer. When a double-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 OIV.Inventor.Gestures.Recognizers.SoDoubleTapGestureRecognizer). Currently only double tap gestures are recognized.
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).