Open Inventor Release 2024.2.0
 
Loading...
Searching...
No Matches
WinTouchEvent MultiTouch

VSG extension WinTouchEvent - This example demonstrates how to use multi-touch device, events and gestures.

SYNOPSIS:

    WinTouchEvent

DESCRIPTION:

    WinTouchEvent demonstrates how to use multi-touch gesture in Win. It provides a Window you can touch with several fingers to manipulate the cone. SoWinTouchScreen is register, touchEvent can be released. Scale factor and rotare recognizers are registered in this touchScreenDevice. So every touch event will be analysed by them and gesture events will be released. A callback collects these events and apply modifications on camera orientation and position, on SoTransform or on cone color. Pinch gesture allow to zoom on the picture changing camera height. Rotate gesture allow to rotate camera around z axis. Double Tap or long tap gesture allow to change cone color. Drag gesture with one finger allow to translate the shape.

SEE ALSO

SoScaleGestureRecognizer SoRotateGestureRecognizer SoDoubleTapGestureRecognizer SoLongTapGestureRecognizer SoWinTouchScreen

FILES:

    • Inventor/MultiTouch/WinTouchEvent/WinTouchEvent.cxx