INITIALIZE LOCATOR
CALL SEQUENCE
void pinit_loc (ws_id, loc_dev, init_view_index, init_loc_pos, pet, echo_area, loc_data_rec)
INPUT PARAMETERS
Pint ws_id,
Pint loc_dev,
Pint init_view_index,
const Ppoint *init_loc_pos,
Pint pet,
const Plimit *echo_area,
const Ploc_data *loc_data_rec
ARGUMENTS
- ws_id,
Workstation identifier
- loc_dev,
Locator device number
- init_view_index,
- Initial view index
- init_loc_pos,
- Initial locator position
- pet,
Prompt and echo type
- echo_area,
Echo area
- loc_data_rec
- Data record
TYPES
typedef struct {
Pfloat x; /* x coordinate */
Pfloat y; /* y coordinate */
} Ppoint;
typedef struct {
Pfloat x_min; /* minimum x */
Pfloat x_max; /* maximum x */
Pfloat y_min; /* minimum y */
Pfloat y_max; /* maximum y */
} Plimit;
typedef struct {
union Ploc_pets {
struct Ploc_pet_r1 {
int impl_dep;
} pet_r1;
struct Ploc_pet_r2 {
int impl_dep;
} pet_r2;
struct Ploc_pet_r3 {
int impl_dep;
} pet_r3;
struct Ploc_pet_r4 {
Pline_attrs line_attrs; /* polyline attributes */
} pet_r4;
struct Ploc_pet_r5 {
Pline_fill_ctrl_flag line_fill_ctrl_flag; /* control flag */
union Ploc_attrs {
Pline_attrs line_attrs; /* polyline attributes */
Pint_attrs int_attrs; /* interior attributes */
struct Ploc_fill_set {
Pint_attrs int_attrs; /* interior attributes */
Pedge_attrs edge_attrs; /* edge attributes */
} fill_set;
} attrs;
} pet_r5;
struct Ploc_pet_r6 {
int impl_dep;
} pet_r6;
} pets;
} Ploc_data;
PHIGS STATE
(PHOP, WSOP, *, *).
EFFECT
Restricts the 3D initialize locator function to 2D. This function initializes
the locator input device (designation of a point on a plane) number
loc_dev for workstation ws_id .
ERRORS
- 3
Ignoring function, function requires state (PHOP, WSOP,*,*)
- 54
- Ignoring function, the specified workstation is not open
- 61
- Ignoring function, specified workstation is neither of category INPUT nor
of category OUTIN
- 250
- Ignoring function, the specified device is not available on the specified
workstation
- 251
- Ignoring function, the function requires the input device to be in REQUEST
mode
- 254
- Ignoring function, invalid echo area volume: XMIN>>=XMAX,
YMIN>>=YMAX or ZMIN>>ZMAX
- 255
- Ignoring function, one of the echo area volume boundary points is outside
the range of the device
- 253
- Ignoring function, the specified prompt echo type is not available on the
specified workstation
- 260
- Ignoring function, one of the fields within the input device data record is
in error
- 261
- Ignoring function, initial value is invalid
- 114
- Ignoring function, the view index value is less than zero
SEE ALSO
initialize locator 3, set locator mode, request locator, sample locator, get
locator, inquire locator device state, inquire default locator device state,
inquire number of available logical input devices