INQUIRE COLOUR MODEL FACILITIES(3P) — SUNPHIGS LIBRARY
NAME
INQUIRE COLOUR MODEL FACILITIES − inquire list of workstation colour model facilities.
SYNOPSIS
C Syntax
void
pinqcolourmodelfacil ( type, length, start, error_ind, total_length, models, def )
Pwstypetype;workstation type
Pintlength;length of application list
Pintstart;starting position
Pint∗error_ind;OUT error indicator
Pint∗total_length;OUT length of list in PHIGS
Pintlst∗models;OUT list of colour models
Pint∗def;OUT default colour model
FORTRAN Syntax
SUBROUTINE pqcmdf ( WTYPE, N, ERRIND, OL, CMOD, DFCMOD )
INTEGERWTYPEworkstation type
INTEGERNelement of list of available colour models
INTEGERERRINDOUT error indicator
INTEGEROLOUT number of available colour models
INTEGERCMODOUT Nth available colour model
INTEGERDFCMODOUT default colour model
Required PHIGS Operating States
(PHOP, ∗, ∗, ∗)
DESCRIPTION
Purpose
Use INQUIRE COLOUR MODEL FACILITIES to obtain a list of the colour model facilities for the specified type of workstation from the workstation description table.
C Input Parameters
typeGet the colour model facilities for this workstation type.
lengthThe number of elements for which memory is allocated in the output parameter models. Zero may be specified in order to get the total_length of the list.
startStarting position in the list at which to begin the inquiry.
C Output Parameters
error_ind
A pointer to the location to store the error number of any error detected by this function.
total_length
A pointer to an integer in which to return the total length of the list. This is the value required for length if all the items in the list are to be returned.
modelsA pointer to a Pintlst which returns the portion of the list of available colour models from the workstation description table, starting with start. Pintlst is defined in phigs.h as:
typedef struct {
Pint number;/∗ number of integers ∗/
Pint∗integers;/∗ list of integers ∗/
} Pintlst; The pointer to the list of integers must be initialized to an array of length Pint elements.
defA pointer to an integer in which to return the default colour model.
FORTRAN Input Parameters
WTYPE
Get the colour model facilities for this workstation type.
NGet the Nth element from the list of available colour models.
FORTRAN Output Parameters
ERRIND
The error number of any error detected by this function.
OLThe total length of the list of available colour models.
CMOD
The Nth colour model from the list of available colour models.
DFCMOD
The default colour model.
ERRORS
002Ignoring function, function requires state (PHOP, ∗, ∗, ∗)
051Ignoring function, this information is not yet available for this workstation type; open a workstation of this type and use the specific workstation type
052Ignoring function, workstation type not recognized by the implementation
059Ignoring function, the specified workstation does not have output capability (i.e., the workstation category is neither OUTPUT, OUTIN, nor MO)
062Ignoring function, this information is not available for this MO workstation type
SEE ALSO
SET COLOUR MODEL (3P)
INQUIRE COLOUR FACILITIES (3P)
PHIGS WORKSTATION DESCRIPTION TABLE(7)
Sun Release 4.0 — Last change: 10 July 1989