UIinteractor


Synopsis

base class of mouse picking objects

group UIinteractor<lang="cxx"> {
group+IPort2 &view<NEcolor0=0x00ff00> {
group handle {
#ifdef MSDOS
int+read widget;
#else
ptr+read widget;
#endif
};
};
int x<val_state=4>;
int y<val_state=4>;
int time<val_state=4>;
ptr local_ptr;
omethod+notify_deinst delete<NEvisible=0, lang="cxx",interruptable=0>
= "UIinteractDestroy";
};

Description

UIinteractor is the base class of the two "mouse picking" objects, UIonePoint and UItwoPoint.

It provides a mapping from an event sequence ("gesture") to an action. Once a UIwindow connection is established with the viewport, the X and Y position of the interactor is updated to indicate the current pointer position.

These objects return an X and Y location within a rendering view. For example, the user picks a point on a surface with the cursor, and that location is passed to an object that translates the XY coordinate back into the coordinates of the original object. Alternately, the user picks two points on an image, a start and end point, and those locations are returned to an object that translates the coordinates back into the original image coordinates to draw a line.

Subobjects

group+Port *view

A reference to the widget id of the connected view object, such as a GDview (defined in the Visualization Techniques manual under DefaultView).

x; y

Integers. The x and y location within the view window.

time

Integer. The event time.

Example

 

File

v/UI.v

See Also

Related modules:

•      See UIonePoint

•      See UItwoPoint