Previous Next Up Title Contents Index Functions Index Top Library

INITIALIZE VALUATOR

pinit_val


CALL SEQUENCE

void pinit_val (ws_id, val_dev, init_value, pet, echo_area, val_data_rec)

INPUT PARAMETERS

Pint	ws_id,
Pint	val_dev,
Pfloat	init_value,
Pint 	pet,
const Plimit	*echo_area,
const Pval_data	*val_data_rec

ARGUMENTS

ws_id,
Workstation identifier
val_dev,
Valuator device number
init_value,
Initial valuator value
pet,
Prompt and echo type
echo_area,
Echo area
val_data_rec
Data record

TYPES

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 {
	Pfloat		low_value;	/* low value of valuator range	*/
	Pfloat		high_value;	/* high value of valuator range	*/
	union Pval_pets {
		struct Pval_pet_r1 {
			char	*string;
		} pet_r1;
		int	impl_dep;
	} pets;
} Pval_data;

PHIGS STATE

(PHOP, WSOP, *, *).

EFFECT

Restricts the 3D initialize valuator function to 2D.

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

SEE ALSO

initialize valuator 3, set valuator mode, request valuator, sample valuator, get valuator, inquire valuator device state, inquire default valuator device state, inquire number of available logical input devices


Previous Next Up Title Contents Index Functions Index Top Library