INQUIRE DIRECT COLOUR MODEL FACILITIES(3P+) — Kubota Pacfic Computer Inc. (29 February 1991)
NAME
INQUIRE DIRECT COLOUR MODEL FACILITIES − inquire list of workstation direct colour facilities
SYNOPSIS
C Syntax
void
pinq_direct_colr_model_facs (type, length, start, error_ind, models, total_length )
Pinttype;workstation type
Pintlength;length of application list
Pintstart;starting position
Pint∗error_ind;OUT error indicator
Pint_list∗models;OUT list of colour models
Pint∗total_length;OUT length of list in PHIGS
Required PHIGS Operating States
(PHOP, ∗, ∗, ∗)
DESCRIPTION
Purpose
INQUIRE DIRECT COLOUR MODEL FACILITIES inquires for a list of workstation direct colour facilities.
C Input Parameters
All of the following data types are predefined in phigs.h.
typeThe workstation type.
lengthThe number of ints in the models output parameter for which the application has allocated memory. length is the number of list elements that the system can return in models→ints. If a value of 0 is used here, no data will be returned in the models→ints list, but the total number of elements will be returned in total_length.
startStarting position of inquiry. The elements in the list, beginning with the item number specified by start, are copied sequentially into models→ints until models→ints is full or all the elements have been copied.
C Output Parameters
error_ind
A pointer to the location for storing the error number of any error detected by this function.
modelsA pointer to a Pint_list that returns the portion of the list of available colour models from the workstation description table, starting with start. Pint_list is defined in phigs.h as:
typedef struct {
Pint num_ints; /∗ number of integers ∗/
Pint∗ints;/∗ list of integers ∗/
} Pint_list; Constants defined for colour model are:
0 PINDIRECT
1 PMODEL_RGB Red, Green, Blue
2 PMODEL_CIELUV CIE
3 PMODEL_HSV Hue, Saturation, Value
4 PMODEL_HLS Hue, Lightness, Saturation
The pointer to the list of integers must be initialized to an array of length Pint elements.
total_length
A pointer to an integer in which the system returns the total number of elements in the list. This is the value required for length if all elements in the list are to be returned.
Execution
If the inquired information is available; then the error indicator is returned as zero, and values are returned in the output parameters.
If the inquired information is not available; then the values returned in the output parameters are undefined, and the error indicator is set to one of the following error numbers to indicate the reason for nonavailability.
Since this is an inquiry function, ERROR HANDLING is not invoked when an error is detected by this function.
ERRORS
002Ignoring function, function requires state (PHOP, ∗, ∗, ∗)
051Ignoring function, this information unavailable for this workstation type
052Ignoring function, workstation type not recognized by the implementation
SEE ALSO
INQUIRE COLOUR MODEL FACILITIES (3P)
PHIGS WORKSTATION DESCRIPTION TABLE (7P)
September 02, 1992