Class SoScaleGestureEvent


public class SoScaleGestureEvent extends SoGestureEvent
Class for scale (pinch) gesture events. SoScaleGestureEvent represents a pinch gesture in the Open Inventor event model. Touch events are analyzed by a SoScaleGestureRecognizer. When a scale gesture is recognized, the recognizer generates this event. The gesture begins with a BEGIN state event. DELTA state events are generated until the end of the gesture which generates an END state event. See 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 (
    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).

See Also:
  • Constructor Details

    • SoScaleGestureEvent

      public SoScaleGestureEvent()
      Constructor.
  • Method Details

    • getDeltaScaleFactor

      public float getDeltaScaleFactor()
      Gets the ratio between the current fingers distance and the previous distance.
    • getScaleFactor

      public float getScaleFactor()
      Gets the ratio between the current fingers distance and the first distance evaluated after the second down event.