gmlSensitiveWidget Class Reference

Detailed Description

GUI buttons that triggers using a hysteresis filter. The displayed objects are gmlCanvas polygon items.

Public Member Functions

constructor canvas projector args

canvas : gmlCanvas instance
The gmlCanvas where the widget will be displayed
projector : gmlVisionProjector instance
The projector used to convert between camera coordinates and canvas coordinates
args : list
Arguments passed to the displayed polygon item

destructor

coords args

Call the coords method of the canvas for the widget, with arguments args.

configure args

Call the itemconfigure method of the canvas for the widget, with arguments args.

bind script

Arrange for script to be executed when the widget's activate method is called.

reverse

Return the widget's coordinates in camera coordinates.

activate

Signal that the widget is activated (equivalent to a button press).

send status

Signal the widget current occlusion status: 1 if the widget is occluded, 0 if it's not occluded.