INQUIRE PREDEFINED INTERIOR REPRESENTATION(3P) — SUNPHIGS LIBRARY
NAME
INQUIRE PREDEFINED INTERIOR REPRESENTATION − inquire a predefined interior representation for a workstation type
SYNOPSIS
C Syntax
void
pinqpredintrep ( type, index, error_ind, bundle )
Pwstypetype;workstation type
Pintindex;predefined index
Pint∗error_ind;OUT error indicator
Pinterbundl∗bundle;OUT predefined interior rep
FORTRAN Syntax
SUBROUTINE pqpir ( WTYPE, PII, ERRIND, STYLE, STYLID, COLI )
INTEGERWTYPEworkstation type
INTEGERPIIpredefined interior index
INTEGERERRINDOUT error indicator
INTEGERSTYLEOUT interior style
INTEGERSTYLIDOUT interior style index
INTEGERCOLIOUT interior colour index
Required PHIGS Operating States
(PHOP, ∗, ∗, ∗)
DESCRIPTION
Purpose
Use INQUIRE PREDEFINED INTERIOR REPRESENTATION to determine the predefined interior representation for a specified workstation type at a given interior index.
C Input Parameters
type
Type of workstation.
index
Entry to be returned from the workstation table of predefined interior representations.
C Output Parameters
error_ind
A pointer to the location to store the error number of any error detected by this function.
bundleA pointer to a Pinterbundl structure in which the system returns the interior representation at index in the workstation table of predefined interior representations. Pinterbundl is defined in phigs.h as:
typedef struct {
Pinterstylestyle;/∗ interior style ∗/
Pintindex;/∗ interior style index ∗/
Pintcolour;/∗ interior colour index ∗/
} Pinterbundl;
Pinterstyle is defined in phigs.h as:
typedef enum {
PHOLLOW,
PSOLID,
PPATTERN,
PHATCH,
PEMPTY,
PGENERAL
} Pinterstyle;
See SET INTERIOR STYLE for a description of each style.
FORTRAN Input Parameters
WTYPE
Type of workstation.
PII
Entry to be returned from the workstation table of predefined interior representations.
FORTRAN Output Parameters
ERRIND
The error number of any error detected by this function.
STYLE
The interior style at index PII in the workstation table of predefined interior representations. Valid values for the interior style are defined in phigs77.h as:
0PHOLLOHollow
1PSOLIDSolid
2PPATTRPatterned
3PHATCHHatched
4PISEMPEmpty
5PGENERGeneral
STYLID
The interior style index at index PII in the workstation table of predefined interior representations.
COLIThe interior colour index at index PII in the workstation table of predefined interior representations.
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
100Ignoring function, the bundle index value is less than one
102Ignoring function, the specified representation has not be predefined on this workstation
Sun Release 4.0 — Last change: 27 January 1989