SoDoubleTapGestureRecognizer Class Reference

Double tap gesture recognizer. More...

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

Inheritance diagram for SoDoubleTapGestureRecognizer:
SoGestureRecognizer

List of all members.

Public Member Functions

 SoDoubleTapGestureRecognizer ()
virtual ~SoDoubleTapGestureRecognizer ()
SoEventrecognize (SoEvent *touchEvent)
SbTime getMaximumTapDuration () const
SbTime getMaximumDurationBetweenTap () const
int getSpatialRestriction (void) const
void setMaximumTapDuration (SbTime time)
void setMaximumDurationBetweenTap (SbTime t)
void setSpatialRestriction (int c)

Detailed Description

Double tap gesture recognizer.

SoDoubleTapGestureRecognizer analyses touch events and recognizes a one finger double-tap gesture. It returns an SoDoubleTapGestureEvent with this gesture is recognized. The finger has to stay in a limitation area from the down event to the end one and must be completed within a maximum elapsed time. This recognizer only generates an END event.

Note:

SEE ALSO

SoGestureRecognizer, SoLongTapGestureRecognizer, SoRotateGestureRecognizer, SoScaleGestureRecognizer, SoDoubleTapGestureEvent

See related examples:

QtTouchEvent, WinTouchEvent


Constructor & Destructor Documentation

SoDoubleTapGestureRecognizer::SoDoubleTapGestureRecognizer (  ) 

Constructor.

virtual SoDoubleTapGestureRecognizer::~SoDoubleTapGestureRecognizer (  )  [virtual]

Destructor.


Member Function Documentation

SbTime SoDoubleTapGestureRecognizer::getMaximumDurationBetweenTap (  )  const

Gets the maximum time that can elapse between the two taps of a double tap.

(0.5 seconds by default)

SbTime SoDoubleTapGestureRecognizer::getMaximumTapDuration (  )  const

Gets tap maximum duration (1.0 seconds by default).

int SoDoubleTapGestureRecognizer::getSpatialRestriction ( void   )  const

Gets the radius of limitation circle in which the finger has to stay throughout the gesture (60 pixels by default).

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

If a double tap gesture is recognized, returns an SoDoubleTapGestureEvent, else returns null.

Returns a pointer to an internal data object. Do not modify or delete this object.

Implements SoGestureRecognizer.

void SoDoubleTapGestureRecognizer::setMaximumDurationBetweenTap ( SbTime  t  ) 

Sets the maximum time that can elapse between the two taps of a double tap.

(0.5 seconds by default)

void SoDoubleTapGestureRecognizer::setMaximumTapDuration ( SbTime  time  ) 

Sets tap maximum duration (1.0 seconds by default).

void SoDoubleTapGestureRecognizer::setSpatialRestriction ( int  c  ) 

Sets the radius of limitation circle in which the finger has to stay throughout the gesture.

(60 pixels by default)


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

Open Inventor Toolkit reference manual, generated on 15 Mar 2023
Copyright © Thermo Fisher Scientific All rights reserved.
http://www.openinventor.com/