MeVisLab Toolbox Reference
SoQtTouchpad Class Reference

Touchpad device driver for Open Inventor. More...

#include <SoQtTouchpad.h>

Inheritance diagram for SoQtTouchpad:

Public Types

enum  Mask {
  MAGNIFY = 0x01 , ROTATE = 0x02 , PAN = 0x04 , SWIPE = 0x08 ,
  DOUBLETAP = 0x10 , HOLDWHILEPAN = 0x20 , PINCH = 0x40 , ALL = 0xFF
}
 Event mask values. More...
 

Public Member Functions

 SoQtTouchpad (Mask mask=SoQtTouchpad::ALL)
 Constructor. More...
 
 ~SoQtTouchpad () override
 Destructor. More...
 
virtual const SoEvent * translateEvent (QEvent *event) override
 This converts a window system event into an SoEvent. More...
 
These functions will enable/disable this device for the passed widget.
virtual void enable (QWidget *w, SoQtEventHandler *f, void *data) override
 
virtual void disable (QWidget *w, SoQtEventHandler *f, void *data) override
 

Static Public Member Functions

static void initClass ()
 

Detailed Description

Touchpad device driver for Open Inventor.

...

events ...

Author
Felix Ritter
Date
2009

Definition at line 44 of file SoQtTouchpad.h.

Member Enumeration Documentation

◆ Mask

Event mask values.

Bitwise OR these to specify whichEvents this device should queue.

Enumerator
MAGNIFY 

Touchpad magnify.

ROTATE 

Touchpad rotate.

PAN 

Touchpad pan.

SWIPE 

Touchpad swipe.

DOUBLETAP 

Touchpad double tap.

HOLDWHILEPAN 

Touchpad hold while pan.

PINCH 

Touchpad pinch.

ALL 

All Touchpad events.

Definition at line 53 of file SoQtTouchpad.h.

Constructor & Destructor Documentation

◆ SoQtTouchpad()

SoQtTouchpad::SoQtTouchpad ( Mask  mask = SoQtTouchpad::ALL)

Constructor.

◆ ~SoQtTouchpad()

SoQtTouchpad::~SoQtTouchpad ( )
override

Destructor.

Member Function Documentation

◆ disable()

virtual void SoQtTouchpad::disable ( QWidget *  w,
SoQtEventHandler *  f,
void *  data 
)
overridevirtual

◆ enable()

virtual void SoQtTouchpad::enable ( QWidget *  w,
SoQtEventHandler *  f,
void *  data 
)
overridevirtual

The callback function f will be invoked when events occur in w. data is the clientData which will be passed.

◆ initClass()

static void SoQtTouchpad::initClass ( )
static

◆ translateEvent()

virtual const SoEvent* SoQtTouchpad::translateEvent ( QEvent *  event)
overridevirtual

This converts a window system event into an SoEvent.

The function returns NULL if the event is not from this device.


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