Previous Next Up Title Contents Index Functions Index Top Library

SAMPLE LOCATOR

psample_loc


CALL SEQUENCE

void psample_loc (ws_id, loc_dev, view_index, loc_pos)

INPUT PARAMETERS

Pint	ws_id,
Pint	loc_dev,

OUTPUT PARAMETERS

Pint	*view_index,
Ppoint	*loc_pos

ARGUMENTS

ws_id,
workstation identifier
loc_dev,
Locator device number
view_index,
View index
loc_pos
Locator position

TYPES

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

PHIGS STATE

(PHOP, WSOP, *, *).

EFFECT

Restricts the 3D sample locator function to 2D.

Reads the current 2D position of the graphic cursor in WC space on the active input device loc_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
252
Ignoring function, the function requires the input device to be in SAMPLE mode

SEE ALSO

sample locator 3, set locator mode, initialize locator, request locator, get locator, await event, inquire locator device state, inquire default locator device state, locator without interaction (ext)


Previous Next Up Title Contents Index Functions Index Top Library