Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

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

NAME

INQUIRE POLYLINE FACILITIES PLUS−  inquire workstation type extended polyline facilities

SYNOPSIS

C Syntax

void
pinq_line_facs_plus ( type, lt_length, lt_start, sm_length, sm_start, error_ind, tot_lt_length, tot_sm_length, facilities)
Pinttype;workstation type
Pintlt_length;number of line types to return
Pintlt_start;starting position
Pintsm_length; number of shading methods to return
Pintsm_start;starting position
Pint∗error_ind;OUT error indicator
Pint∗tot_lt_length;OUT length of line type list in PHIGS
Pint∗tot_sm_length;OUT length of shading method list in PHIGS
Pline_facs_plus∗facilities; OUT extended polyline facilities

Required PHIGS Operating States

(PHOP, ∗, ∗, ∗)

DESCRIPTION

Purpose

INQUIRE POLYLINE FACILITIES PLUS returns the extended polyline support available from a specified workstation type. 

C Input Parameters

typeThe workstation type. 

lt_length
The number of line types to return.

lt_start
The index of first line type to return.

sm_length
The number of shading methods to return.

sm_start
The index of first shading method to return.

C Output Parameters

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

tot_lt_length
A pointer to the location to store the total number of line types available.

tot_sm_length
A pointer to the location to store the total number of shading methods available.

facilities
A pointer to the Pline_facs_plus structure that returns the requested information. Pline_facs_plus is defined as:

typedef struct {
Pint_listtypes;/∗ list of available line types ∗/
Pintnum_widths;/∗ number of available line widths ∗/
Pfloatnom_width;/∗ nominal line width ∗/
Pfloatmin_width;/∗ minimum line width ∗/
Pfloatmax_width;/∗ maximum line width ∗/
Pintnum_pred_inds;/∗ number of predefined bundles ∗/
Pint_listshads;/∗ list of shading methods ∗/
} Pline_facs_plus;

Pint_list is defined as:

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

Prior to calling this function, the ints field of the Pint_list structures must contain a pointer to an application supplied buffer. This buffer must be at least as large as the corresponding length parameter.  Defined shading methods are:

1PSD_NONENo Shading
2PSD_COLOURColour Interpolation Shading

Execution

If the inquired information is available, the error indicator is returned as zero and the requested information is 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 below 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, ∗, ∗, ∗)

052Ignoring function, workstation type not recognized by the implementation

051Ignoring function, this information is not yet available for this workstation type; open a workstation of this type and use the specific workstation type

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 POLYLINE REPRESENTATION PLUS (3P+)
INQUIRE POLYLINE REPRESENTATION PLUS (3P+)
INQUIRE PREDEFINED POLYLINE REPRESENTATION PLUS (3P+)

September 02, 1992

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