CALL PINPK3 (WKID, PKDNR, ISTAT, IPPD, PP, PET, EVOL, LDR, DATREC, PPORDR)
POK: 1 (OK) PNPICK: 2 (NO PICK)
- Structure identifier - Pick identifier - Element number
PPOTOP: 0 (TOP FIRST) PPOBOT: 1 (BOTTOM FIRST)
This function initializes the PICK input device (designation of graphic elements on the screen) number PKDNR for workstation WKID.
The pick aperture is centered on the graphics cursor and follows its movement. When the pick input device (the mouse for example) is validated, the primitive (or part of it) contained in the pick aperture is selected.
Device number 1 is available and is associated with the mouse.
Echo type number 1 displays an X cursor.
Initial pick path and data record parameters are unused.
Example:
C Sample program for initialization of a pick device program pick include 'PHIGS.H' integer wkid,pkdnr,istat,ippd,pp(3,1),pet,ldr,ppordr character*80 datrec real evol(6),reqwin(6),curwin(6),reqvie(6) C Open PHIGS session call POPPH(6,-1) C Open workstation wkid = 1 call POPWK(wkid,1,8887) c Get back Device Coordinates of the workstation call PQWKT3(wkid,ierr,updst,reqwin,curwin,reqvie,evol) C Initialize pick device number 1 with echo type number 1 pkdnr = 1 istat = PNPICK ippd = 0 pet = 1 ldr = 0 ppordr = PPOTOP call PINPK3(wkid,pkdnr,istat,ippd,pp,pet, evol,ldr,datrec,ppordr) C Close workstation call PCLWK(wkid) C Close PHIGS session call PCLPH end
initialize pick, set pick mode, request pick 3, sample pick 3, get pick 3, inquire pick device state 3, inquire default pick device state 3, inquire number of available logical input devices