Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ inquire_extended_interior_facilities(3P+) — PHIGS 1.1

Media Vault

Software Library

Restoration Projects

Artifacts Sought

INQUIRE EXTENDED INTERIOR FACILITIES(3P+)  —  MISC. REFERENCE MANUAL PAGES

NAME

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

SYNOPSIS

C Syntax

void
pinqextintfacil ( wstype, 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 )
Pwstypewstype;workstation type
Pintis_length;length of interior style list to return
Pintis_start;index of first element of list to return
Pinths_length;length of hatch style list to return
Pinths_start;index of first element of list to return
Pintre_length;length of reflectance equation list to return
Pintre_start;index of first element of list to return
Pintsh_length;length of shading method list to return
Pintsh_start;index of first element of list to return
Pint∗error_ind;OUT error indicator
Pextinterfac∗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

FORTRAN Syntax

SUBROUTINE pqeif ( WKTYPE, ISTYLE, IHATCH, IREFEQ, ISHADE, ERRIND, NSTYLE,
     STYLE, NHATCH, HATCH, NREFEQ, REFEQ, NSHADE, SHADE, NPRE )
INTEGERWKTYPEworkstation type
INTEGERISTYLElist element of interior styles to return
INTEGERIHATCHlist element of hatch styles to return
INTEGERIREFEQlist element of reflectance equation
INTEGERISHADElist element of shading method to return
INTEGERERRINDOUT error indicator
INTEGERNSTYLEOUT number of available interior styles
INTEGERSTYLEOUT ISTYLE−th element of list of available interior styles
INTEGERNHATCHOUT number of available hatch styles
INTEGERHATCHOUT IHATCH−th element of list of available hatch style indices
INTEGERNREFEQOUT number of available reflectance eqns
INTEGERREFEQOUT IREFEQ−th element of list of available reflectance equations
INTEGERNSHADEOUT number of available shading methods
INTEGERSHADEOUT ISHADE−th element of list of available shading methods
INTEGERNPREOUT number of predefined interior indices

Required PHIGS Operating States

(PHOP, ∗, ∗, ∗)

DESCRIPTION

Purpose

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

This is a SunPHIGS Extension function based on PHIGS+ and is not part of the PHIGS standard. 

C Input Parameters

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

wstypeThe 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 Pextinterfac structure which returns the requested information.  Pextinterfac is defined as:

typedef struct {
Pintn_inter;/∗ number of interior styles ∗/
Pinterstyle∗interiors;/∗ list of available interior styles ∗/
Pintlsthatches;/∗ list of available hatch styles ∗/
Pintlstrefeqs;/∗ list of available reflectance equations ∗/
Pintlstshadmeths;/∗ list of available shading methods ∗/
Pintpredefined;/∗ number of predefined interior indices ∗/
} Pextinterfac;

Pinterstyle is defined as:

typedef enum {
PHOLLOW,
PSOLID,
PPATTERN,
PHATCH,
PEMPTY,
PGENERAL
} Pinterstyle;

Pintlist is defined as:

typedef struct {
Pintnumber;/∗ number of Pints in list ∗/
Pint∗integers;/∗ list of integers ∗/
} Pintlst;

Prior to calling this function, the integers field of the Pintlst 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 loctation to store the total length of the interior shading method list in the workstation description table.

FORTRAN Input Parameters

WKTYPE
The workstation type in question.

ISTYLE
The index of the entry desired from the interior style list.

IHATCH
The index of the entry desired from the hatch style list.

IREFEQ
The index of the entry desired from the reflectance equation list.

ISHADE
The index of the entry desired from the interior shading method list.

FORTRAN Output Parameters

ERRIND
The error number of any error detected by this function.

NSTYLE
The number of entries in the list of available interior styles.

STYLE
The requested entry of the interior style list.

NHATCH
The number of entries in the list of available hatch styles.

HATCH
The requested entry of the hatch style list.

NREFEQ
The number of entries in the list of available reflectance equations.

REFEQ
The requested entry of the reflectance equation list.

NSHADE
The number of entries in the list of available interior shading methods.

SHADE
The requested entry of the interior shading method list.

NPREThe number of predefined extended interior bundle table entries. 

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

062Ignoring function, this information is not available for this MO workstation type

SEE ALSO

SET EXTENDED INTERIOR REPRESENTATION (3P+)
INQUIRE EXTENDED INTERIOR REPRESENTATION (3P+)
INQUIRE PREDEFINED EXTENDED INTERIOR REPRESENTATION (3P+)

Sun Release 4.0  —  Last change: 2 August 1989

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