[ Previous |
Next |
Contents |
Glossary |
Home |
Search ]
The graPHIGS Programming Interface: ISO PHIGS Subroutine Reference
SAMPLE LOCATOR 3 (PHOP,WSOP,*,*)
Purpose
Use
Sample Locator 3
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 which has a matrix that the graPHIGS API used to convert
the location from Device Coordinates (DC)
to World Coordinates (WC).
This subroutine 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.
Language Bindings
C
psample_loc3
(ws_id, loc_num,
view_ind, loc_pos) |
Pint ws_idWorkstation identifier.
Pint loc_numLocator device number
(>=1).
Pint *view_indView index
(>=0).
Ppoint3 *loc_posLocator position in WC.
FORTRAN
PSMLC3
(wkid, lcdnr, viewi,
lpx, lpy, lpz) |
integer wkidWorkstation identifier.
integer lcdnrLocator device number
(>=1).
integer viewiView index
(>=0).
real lpxx coordinate of locator position in WC.
real lpyy coordinate of locator position in WC.
real lpzz coordinate of 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
- 252
- Function Requires Input Device To Be In Sample Mode
Related Subroutines
Inquire Number Of Available Logical Input Devices
Set Locator Mode
[ Previous |
Next |
Contents |
Glossary |
Home |
Search ]