[ Previous | Next | Contents | Glossary | Home | Search ]
The graPHIGS Programming Interface : Subroutine Reference

GPSMLC - Sample Locator

GPSMLC (wsid, device, view, pos)

Purpose

Use GPSMLC to immediately retrieve the current measure of the specified locator device.

The measure consists of a locator position in World Coordinates (WC), and the index of the view table entry whose matrix was used to convert the location to World Coordinates.

Locator input is returned from the view active for input with the highest input priority under the cursor. View 0 is the highest priority view, unless modified by your application.

Parameters

wsid -- specified by user, fullword integer

Workstation identifier.

device -- specified by user, fullword integer

Locator device number (>=1)

view -- returned by the graPHIGS API, fullword integer

View table index.

pos -- returned by the graPHIGS API, 3 short floating-point numbers (WC)

Locator position.

Error Codes

25
SPECIFIED WORKSTATION DOES NOT EXIST
140
DEVICE NUMBER < ONE OR DEVICE NOT AVAILABLE

Related Subroutines

GPLCMO
Set Locator Mode
GPQLI
Inquire List of Logical Input Devices

RCP code

201335553 (X'0C002301')


[ Previous | Next | Contents | Glossary | Home | Search ]