Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

INQUIRE COLOUR MAPPING FACILITIES(3P+)  —  Kubota Pacfic Computer Inc. (29 February 1991)

NAME

INQUIRE COLOUR MAPPING FACILITIES − inquire colour mapping facilities for the specified workstation type

SYNOPSIS

C Syntax

void
pinq_colr_map_facs ( type, length, start, error_ind, colr_map_facs, total_length )
Pinttype;workstation type
Pintlength;length of application list
Pintstart;starting position
Pint∗error_ind;OUT error indicator
Pcolr_map_facs∗colr_map_facs; OUT colour mapping facilities
Pint∗total_length;OUT total length of list

Required PHIGS Operating States

(PHOP, ∗, ∗, ∗)

DESCRIPTION

Purpose

INQUIRE COLOUR MAPPING FACILITIES returns the available colour mapping facilities for a specified workstation type. 

C Input Parameter

typeThe workstation type. 

lengthThe number of Pint entries in the array the application has allocated and assigned to colr_map_facs→methods.ints.  If zero is specified then the list of available colour mapping methods will not be returned, but the number of available colour mapping methods will be returned in the total_length argument. 

startStarting position of inquiry.  The elements in the list, beginning with the item number specified by start, are copied sequentially into colr_map_facs→methods.ints until colr_maps_facs→methods.ints is full or all the elements have been copied. 

C Output Parameters

error_ind
A pointer to the location to store the error number of any error detected by this function.

colr_map_facs
A pointer to to the variable in which to store the colour mapping facilities. Pcolr_map_facs is defined in phigs.h as:

typedef struct {
Pint_listmeths;/∗ available colour mapping methods ∗/
Pintnum_pred_inds;/∗ number of predefined indices ∗/
 } Pcolr_map_facs;

num_pred_ind returns the number of predfined colour mapping representations. 

meths returns the number and list of available colour mapping methods for the specified workstation type.  Pint_list is defined in phigs.h as follows:

typedef struct {
Pintnum_ints;/∗ number of Pints in list ∗/
Pint∗ints;/∗ list of integers        ∗/
} Pint_list;
fi

The num_ints component specifies the number of elements in the list.
The ints component is a pointer to a list num_ints long.

The application must allocate memory for length elements in the
list of ints.

The pre-defined colour mapping methods in phigs.h are:

1PCOLR_MAP_TRUE
2PCOLR_MAP_PSEUDO
3PCOLR_MAP_PSEUDO_N

total_length
A pointer to the integer in which to return the length of the list. This is the value required for length if all the items in the list are to be returned. 

Execution

If the inquired information is available, the error indicator is returned as zero and values are returned in the output parameters. 

If the inquired information is not available, 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 is not yet available for this generic 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 MAPPING REPRESENTATION (3P+)
SET COLOUR MAPPING INDEX (3P+)

September 02, 1992

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026