[ Previous |
Next |
Contents |
Glossary |
Home |
Search ]
The graPHIGS Programming Interface: ISO PHIGS Subroutine Reference
REQUEST LOCATOR 3 (PHOP,WSOP,*,*)
Purpose
Use
Request Locator 3
to have the graPHIGS API execute a request to the
specified locator device.
The graPHIGS API returns the locator position and the index of
the view which the graPHIGS API used to convert the location
from Device Coordinates (DC)
to World Coordinates (WC).
The graPHIGS API returns the locator input from the view
with the highest input priority under the cursor.
View zero is the highest priority view unless modified by
your application.
A status of NONE means that a break action
occurred.
Otherwise, the graPHIGS API returns a status of
OK together with the logical
input value which is the current measure
of the locator device.
Language Bindings
C
preq_loc3
(ws_id, loc_num,
in_status, view_ind, loc_pos) |
Pint ws_idWorkstation identifier.
Pint loc_numLocator device number
(>=1).
Pin_status *in_statusInput status
(0=PIN_STATUS_NONE,
1=PIN_STATUS_OK).
Pint *view_indView index
(>=0).
Ppoint3 *loc_posLocator position in WC.
FORTRAN
PRQLC3
(wkid, lcdnr, stat,
viewi, px, py,
pz) |
integer wkidWorkstation identifier.
integer lcdnrLocator device number
(>=1).
integer statInput status
(0=PNONE, 1=POK).
integer viewiView index
(>=0).
real pxx coordinate of the locator position in WC.
real pyy coordinate of the locator position in WC.
real pzz coordinate of the locator position in WC.
Errors
- 3
- Function Requires State (PHOP,WSOP,*,*)
- 54
- Specified Workstation Is Not Open
- 61
- Specified Workstation Is Not Of Category Input Or Outin
- 250
- Specified Device Not Available On Workstation
- 251
- Function Requires Input Device To Be In Request Mode
Related Subroutines
Initialize Locator 3
Inquire Number Of Available Logical Input Devices
Set Locator Mode
[ Previous |
Next |
Contents |
Glossary |
Home |
Search ]