Previous Next Up Title Contents Index Functions Index Top Library

INQUIRE DEFAULT CHOICE DEVICE DATA 3

PINQ_DEF_CHOICE_DATA3


CALL SEQUENCE

void pinq_def_choice_data3(
)

TYPES

typedef void * Pstore;

typedef struct {
	Pfloat 	x;	/* x coordinate	*/
	Pfloat 	y;	/* y coordinate	*/
	Pfloat 	z;	/* z coordinate	*/
} Ppoint3;

typedef struct {
	Pint		num_ints;	/* number of Pints in list 	*/
	Pint		*ints;	/* list of integers	*/
} 	Pint_list;

typedef struct {
	Pfloat	x_min;	/* minimum x 	*/
	Pfloat	x_max;	/* maximum x 	*/
	Pfloat	y_min;	/* minimum y 	*/
	Pfloat	y_max;	/* maximum y 	*/
	Pfloat	z_min;	/* minimum z 	*/
	Pfloat	z_max;	/* maximum z 	*/
}	Plimit3;

typedef struct {
	union Pchoice3_pets {
		struct Pchoice3_pet_r1 {
			Pint	num_prompts;	/* number of prompts	*/
			Ppr_switch	prompts[P_NBCHOICE-1];
			char	*strings[P_NBCHOICE];
		} pet_r1;
		struct Pchoice3_pet_r2 {
			Pint	num_prompts;	/* number of prompts	*/
			char	*prompts;	/* array of prompts	*/
		} pet_r2;
		struct Pchoice3_pet_r3 {
			Pint	num_strings;	/* number of choice strings	*/
			char	**strings;	/* array of choice strings	*/
		} pet_r3;
		struct Pchoice3_pet_r4 {
			Pint	num_strings;	/* number of choice strings	*/
			char	**strings;	/* array of choice strings	*/
		} pet_r4;
		struct Pchoice3_pet_r5 {
			Pint	struct_id;	/* structure identifier	*/
			Pint	struct_id;	/* number of pick identifiers	*/
			Pint	*pick_ids;	/* array of pick identifiers	*/
		} pet_r5;
		Pint impl_dep;
	} pets;
} Pchoice_data3;

PHIGS STATE

(PHOP, *, *, *).

EFFECT

Returns the predefined 3D values associated with CHOICE input device number device. If the data is available, error indicator is returned as 0.

The data is read from the workstation description table of type ws_type.

The memory referenced by *choice_data_rec is managed by store.

ERRORS

2
Ignoring function, function requires state (PHOP, *,*,*)
52
Ignoring function, workstation type not recognized by the implementation
51
Ignoring function, this information is not yet available for this generic workstation type: open a workstation of this type and use the specific workstation type
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

SEE ALSO

initialize choice 3, set choice mode, inquire choice device state, create store.


Previous Next Up Title Contents Index Functions Index Top Library