[ Previous |
Next |
Contents |
Glossary |
Home |
Search ]
The graPHIGS Programming Interface: ISO PHIGS Subroutine Reference
SAMPLE PICK (PHOP,WSOP,*,*)
Purpose
Use
Sample Pick
to immediately retrieve the current measure of
the specified pick device.
The graPHIGS API returns the pick path information in the order
specified in
the Initialize Pick subroutine,
that is,
TOP FIRST or BOTTOM FIRST.
If your application has not called Initialize Pick,
then the pick path order defaults to TOP FIRST.
If the measure of the pick device indicates no
pick, then the graPHIGS API returns a status of NOPICK
Otherwise, the graPHIGS API returns a status of OK
together with a pick path
which is set according to the current measure of the pick device.
Each entry in the pick path consists of a structure identifier,
a pick identifier, and an element position.
Language Bindings
C
psample_pick
(ws_id, pick_num,
depth, pick_in_status, pick) |
Pint ws_idWorkstation identifier.
Pint pick_numPick device number
(>=1).
Pint depthMaximum depth of pick path to return.
Pin_status *pick_in_statusPick input status
(1=PIN_STATUS_OK,
2=PIN_STATUS_NO_IN).
Ppick_path *pickPick path.
FORTRAN
PSMPK
(wkid, pkdnr, ippd,
stat, ppd, pp) |
integer wkidWorkstation identifier.
integer pkdnrPick device number
(>=1).
integer ippdMaximum depth of pick path to return.
integer statPick input status
(1=POK, 2=PNPICK).
integer ppdDepth of the actual pick path.
integer pp (3,ippd)Pick path.
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 Pick Mode
[ Previous |
Next |
Contents |
Glossary |
Home |
Search ]