Package libavg :: Module avg :: Class TouchEvent

Class TouchEvent




Raised when a touch event occurs. Touch events happen only when a multi-touch sensitive surface or other camera tracker is active.

Instance Methods
 
getRelatedEvents()
Returns a python tuple containing the events 'related' to this one.

Inherited from Event: __init__

Inherited from unreachable.instance: __new__

Inherited from object: __delattr__, __getattribute__, __hash__, __reduce__, __reduce_ex__, __repr__, __setattr__, __str__

Properties
  area
size of the blob (ro).
  center
Position as double.
  cursorid
  eccentricity
  inertia
  node
The node that the event handler was declared in (ro).
  orientation
  source
TOUCH for actual touches, TRACK for hands above the surface or generic tracking.
  x
x position in the global coordinate system (ro).
  y
y position in the global coordinate system (ro).

Inherited from Event: type, when

Inherited from object: __class__

Method Details

getRelatedEvents()

 
Returns a python tuple containing the events 'related' to this one. For TOUCH events (fingers), the tuple contains one element: the corresponding TRACK event (hand). For TRACK events, the tuple contains all TOUCH events that belong to the same hand.
Returns:
events


Property Details

area

size of the blob (ro).
Get Method:
unreachable(...)

center

Position as double. Used for calibration (ro).
Get Method:
unreachable(...)

cursorid

Get Method:
unreachable(...)

eccentricity

Get Method:
unreachable(...)

inertia

Get Method:
unreachable(...)

node

The node that the event handler was declared in (ro).
Get Method:
unreachable(...)

orientation

Get Method:
unreachable(...)

source

TOUCH for actual touches, TRACK for hands above the surface or generic tracking.
Get Method:
unreachable(...)

x

x position in the global coordinate system (ro).
Get Method:
unreachable(...)

y

y position in the global coordinate system (ro).
Get Method:
unreachable(...)