Previous Next Up Title Contents Index Functions Index Top Library

REQUEST STROKE

preq_stroke


CALL SEQUENCE

void preq_stroke (ws_id, stroke_dev, status, view_index, stroke)

INPUT PARAMETERS

Pint	ws_id,
Pint	stroke_dev

OUTPUT PARAMETERS

Pin_status 	*status,
Pint	*view_index,
Ppoint_list	*stroke

ARGUMENTS

ws_id,
workstation identifier
stroke_dev,
Stroke device number
status,
Input status
view_index,
View index
stroke
Stroke positions

TYPES

typedef enum {
	PIN_STATUS_NONE, 
	PIN_STATUS_OK, 
	PIN_STATUS_NO_IN
} Pin_status;

typedef struct {
	Pint	num_points;	/* number of Ppoints in the list	*/
	Ppoint	*points;	/* list of points	*/
} Ppoint_list;

typedef struct {
	Pfloat 	x;	/* x coordinate	*/
	Pfloat 	y;	/* y coordinate	*/
} Ppoint;

PHIGS STATE

(PHOP, WSOP, *, *).

EFFECT

Request a set of 2D points in WC space by successive user action on the active input device stroke_dev .

ERRORS

3
Ignoring function, function requires state (PHOP, WSOP,*,*)
54
Ignoring function, the specified workstation is not open
61
Ignoring function, specified workstation is neither of category INPUT nor of category OUTIN
250
Ignoring function, the specified device is not available on the specified workstation
251
Ignoring function, the function requires the input device to be in REQUEST mode

SEE ALSO

set stroke mode, initialize stroke, sample stroke, get stroke, await event, inquire stroke device state, inquire default stroke device state 3


Previous Next Up Title Contents Index Functions Index Top Library