Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

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

NAME

INQUIRE INTERIOR FACILITIES PLUS − inquire extended interior facilities of a workstation type

SYNOPSIS

C Syntax

void
pinq_int_facs_plus ( type, is_length, is_start, hs_length, hs_start, re_length, re_start, sh_length,
     sh_start, error_ind, facil, tot_is_length, tot_hs_length, tot_re_length, tot_sh_length )
Pinttype;workstation type
Pintis_length;length of application’s interior style list
Pintis_start;starting position
Pinths_length;length of application’s hatch style list
Pinths_start;starting position
Pintre_length;length of application’s reflectance equation list
Pintre_start;starting position
Pintsh_length;length of application’s shading method list
Pintsh_start;starting position
Pint∗error_ind;OUT error indicator
Pint_facs_plus∗facil; OUT extended interior facilities
Pint∗tot_is_length;OUT total length of interior styles list
Pint∗tot_hs_length;OUT total length of hatch styles list
Pint∗tot_re_length;OUT total length of reflectance equation list
Pint∗tot_sh_length;OUT total length of shading method list

Required PHIGS Operating States

(PHOP, ∗, ∗, ∗)

DESCRIPTION

Purpose

INQUIRE INTERIOR FACILITIES PLUS returns the extended interior support available from a specified workstation type. 

C Input Parameters

All of the following data types are predefined in phigs.h. 

typeThe workstation type in question. 

is_length
The number of entries to return from the list of interior styles.

is_start
Starting position of the portion of the list to return.

hs_length
The number of entries to return from the list of hatch styles.

hs_start
Starting position of the portion of the list to return.

re_length
The number of entries to return from the list of reflectance equations.

re_start
Starting position of the portion of the list to return.

sh_length
The number of entries to return from the list of interior shading method.

sh_start
Starting position of the portion of the list to return.

C Output Parameters

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

facilA pointer to a Pint_facs_plus structure which returns the requested information.  Pint_facs_plus is defined in phigs.h as follows:

typedef struct {
Pintnum_int_styles;/∗ number of interior styles ∗/
Pint_style∗int_styles;/∗ list of available interior styles ∗/
Pint_listhatch_styles;/∗ list of available hatch styles ∗/
Pintnum_pred_inds; /∗ number of predefined interior indices ∗/
Pint_listrefl_eqns;/∗ list of available reflectence equations ∗/
Pint_listshad_meths;/∗ list of available shading methods ∗/
} Pint_facs_plus;

Pint_style is defined in phigs.h as follows:

typedef enum {
PSTYLE_HOLLOW,
PSTYLE_SOLID,
PSTYLE_PAT,
PSTYLE_HATCH,
PSTYLE_EMPTY,
} Pint_style;

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;

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

tot_is_length
A pointer to the location to store the total length of the interior style list in the workstation description table.

tot_hs_length
A pointer to the location to store the total length of the hatch style list in the workstation description table.

tot_re_length
A pointer to the location to store the total length of the reflectance equation list in the workstation description table.

tot_sh_length
A pointer to the location to store the total length of the interior shading method list in the workstation description table.

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 non-availability. 

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

September 02, 1992

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