SAMPLE LOCATOR
CALL SEQUENCE
void psample_loc(
Pint ws_id, /* workstation identifier */
Pint loc_dev, /* locator device number */
Pint *view_index, /* (out) view index */
Ppoint *loc_pos /* (out) 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)