SoScaleGestureRecognizer Class |
Scale (pinch) gesture recognizer.
Namespace: OIV.Inventor.Gestures.Recognizers
The SoScaleGestureRecognizer type exposes the following members.
Name | Description | |
---|---|---|
SoScaleGestureRecognizer | Constructor. |
Name | Description | |
---|---|---|
Equals | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) | |
GetHashCode |
Overrides GetHashCode().
(Inherited from SoNetBase.) | |
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. | |
ToString | Returns a string that represents the current object. (Inherited from Object.) |
OIV.Inventor.Gestures.Recognizers.SoScaleGestureRecognizer analyses touch events and recognizes a scale (two finger pinch) gesture. It returns an OIV.Inventor.Gestures.Events.SoScaleGestureEvent (pinch) event if this gesture is recognized. The scale event contains the scale factor between the current state and the initial one. This recognizer generates a BEGIN event, followed by DELTA events and finishing with an END event (OIV.Inventor.Gestures.Events.SoGestureEvent.GetGestureState()).
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).