[ Previous |
Next |
Contents |
Glossary |
Home |
Search ]
The graPHIGS Programming Interface: ISO PHIGS Subroutine Reference
INITIALIZE LOCATOR 3
(PHOP,WSOP,*,*)
Purpose
Use
Initialize Locator 3
to initialize the specified locator device.
The Initialize Locator 3 subroutine stores the initial
locator position, initial view index, prompt/echo
type, echo volume, and locator data record in the workstation
state list for the specified device.
Two positions are required for some locator
prompt/echo types: the initial locator position,
which remains fixed during input operation, and the current
locator position, which varies dynamically as you use the
locator.
This function supports the following prompt/echo types:
Type One designates the current position of the locator
using a workstation-dependent technique.
Type Two, the cross hair, designates the current position of the
locator by spanning the display surface or device echo area
with both a vertical and a horizontal line.
The lines intersect at the current locator position.
Whether the cross hair spans the
entire display surface or only the echo area depends on the
capabilities of the workstation.
Type Three designates the current position of the locator
using a tracking cross.
Type Four designates the current position of the locator
using a rubber band line connecting the initial locator position
given by this subroutine and the current locator position.
Note:
The locator device must be in Request mode.
Language Bindings
C
pinit_loc3
(ws_id, loc_num, init_view_ind,
init_loc_pos, pet, echo_vol, loc_data) |
Pint ws_idWorkstation identifier.
Pint loc_numLocator device number (>=1).
Pint init_view_indInitial view index (>=0).
const Ppoint3 *init_loc_posInitial locator position in WC.
Pint petPrompt and echo type.
const Plimit3 *echo_volEcho volume in DC.
const Ploc_data3 *loc_dataData record.
FORTRAN
PINLC3
(wkid, lcdnr, iviewi,
ipx, ipy, ipz,
pet, evol, ldr,
datrec) |
integer wkidWorkstation identifier.
integer lcdnrLocator device number (>=1).
integer iviewiInitial view index (>=0).
real ipxx coordinate of the initial locator position in WC.
real ipyy coordinate of the initial locator position in WC.
real ipzz coordinate of the initial locator position in WC.
integer petPrompt and echo type.
real evol(6)Echo volume
(XMIN, XMAX, YMIN, YMAX, ZMIN, ZMAX).
integer ldrDimension of the data record array.
character*80 datrec(ldr)Data record.
The PPREC parameters to build a
locator input data record for
PET=4 are as follows:
(IL=7, IA=unused, linetype ASF,
line width scale factor ASF, polyline color index ASF,
polyline index, line type, polyline color index,
RL=1, RA=line width scale factor, SL=0,
LSTR=(), STR=()).
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
- 254
- Invalid Echo Area/Volume: XMIN>=XMAX, YMIN>=YMAX OR ZMIN>ZMAX
- 255
- Echo Area/Volume Boundary Point(s) Outside Device Range
- 253
- Prompt/Echo Type Not Available On Specified Workstation
- 260
- Input Device Data Record Field Is In Error
- 261
- Initial Value Is Invalid
- 114
- View Index Value < ZERO
Related Subroutines
Inquire Locator Device State 3
Inquire Default Locator Device Data 3
Inquire Display Space Size
Inquire Number Of Available Logical Input Devices
Pack Data Record
Set Locator Mode
[ Previous |
Next |
Contents |
Glossary |
Home |
Search ]