SoScaleGestureEvent Class Reference

Class for scale (pinch) gesture events. More...

#include <Inventor/gestures/events/SoScaleGestureEvent.h>

Inheritance diagram for SoScaleGestureEvent:
SoGestureEvent SoEvent SoTypedObject

List of all members.

Public Member Functions

virtual SoType getTypeId () const
 SoScaleGestureEvent ()
float getScaleFactor () const
float getDeltaScaleFactor () const

Static Public Member Functions

static SoType getClassTypeId ()

Detailed Description

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().



SoEvent, SoGestureEvent, SoDoubleTapGestureEvent, SoLongTapGestureEvent, SoRotateGestureEvent, SoScaleGestureRecognizer

Constructor & Destructor Documentation

SoScaleGestureEvent::SoScaleGestureEvent (  ) 


Member Function Documentation

static SoType SoScaleGestureEvent::getClassTypeId (  )  [static]

Returns the type identifier for this class.

Reimplemented from SoGestureEvent.

float SoScaleGestureEvent::getDeltaScaleFactor (  )  const

Gets the ratio between the current fingers distance and the previous distance.

float SoScaleGestureEvent::getScaleFactor (  )  const

Gets the ratio between the current fingers distance and the first distance evaluated after the second down event.

virtual SoType SoScaleGestureEvent::getTypeId (  )  const [virtual]

Returns the type identifier for this specific instance.

Reimplemented from SoGestureEvent.

The documentation for this class was generated from the following file:

Open Inventor Toolkit reference manual, generated on 18 Apr 2021
Copyright © Thermo Fisher Scientific All rights reserved.