SoScaleGestureRecognizer Class Reference

Scale (pinch) gesture recognizer. More...

#include <Inventor/gestures/recognizers/SoScaleGestureRecognizer.h>

Inheritance diagram for SoScaleGestureRecognizer:
SoGestureRecognizer

List of all members.

Public Member Functions

 SoScaleGestureRecognizer ()
virtual ~SoScaleGestureRecognizer ()
SoEventrecognize (SoEvent *touchEvent)

Detailed Description

Scale (pinch) gesture recognizer.

SoScaleGestureRecognizer analyses touch events and recognizes a scale (two finger pinch) gesture. It returns an 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 (SoGestureEvent::getGestureState()).

Note:

SEE ALSO

SoGestureRecognizer, SoRotateGestureRecognizer, SoDoubleTapGestureRecognizer, SoLongTapGestureRecognizer, SoScaleGestureEvent

See related examples:

QtTouchEvent, WinTouchEvent


Constructor & Destructor Documentation

SoScaleGestureRecognizer::SoScaleGestureRecognizer (  ) 

Constructor.

virtual SoScaleGestureRecognizer::~SoScaleGestureRecognizer (  )  [virtual]

Destructor.


Member Function Documentation

SoEvent* SoScaleGestureRecognizer::recognize ( SoEvent touchEvent  )  [virtual]

If two fingers are "pinching" on the screen, it returns an event with the ratio between the current distance between fingers and the initial distance when the second finger was put down.

If no gesture has been recognized, returns null. Returns a pointer to an internal data object. Do not modify or delete this object.

Implements SoGestureRecognizer.


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

Open Inventor Toolkit reference manual, generated on 28 Oct 2019
Copyright © Thermo Fisher Scientific All rights reserved.
http://www.openinventor.com/