SoQtTouchpad Class Reference

Touchpad device driver for Open Inventor. More...

#include <SoQtTouchpad.h>

List of all members.

Public Types

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

Public Member Functions

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

Static Public Member Functions

static void initClass ()


Detailed Description

Touchpad device driver for Open Inventor.

...

events ...

Author:
Felix Ritter
Date:
2009

Definition at line 39 of file SoQtTouchpad.h.


Member Enumeration Documentation

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.
ALL  All Touchpad events.

Definition at line 49 of file SoQtTouchpad.h.


Constructor & Destructor Documentation

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

Constructor.

SoQtTouchpad::~SoQtTouchpad (  ) 

Destructor.


Member Function Documentation

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

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

These functions will enable/disable this device for the passed widget.

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

static void SoQtTouchpad::initClass (  )  [static]

virtual const SoEvent* SoQtTouchpad::translateEvent ( QEvent *  event  )  [virtual]

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:

Generated on Sat Sep 3 18:39:32 2011 for MeVisLab Toolbox Reference by  doxygen 1.5.8