INQUIRE INTERIOR REPRESENTATION(3P) — SUNPHIGS LIBRARY
NAME
INQUIRE INTERIOR REPRESENTATION − inquire an interior representation on a workstation
SYNOPSIS
C Syntax
void
pinqintrep ( ws, index, type, error_ind, rep )
Pintws;workstation identifier
Pintindex;interior index
Pinqtypetype;type of returned value
Pint∗error_ind;OUT error indicator
Pinterbundl∗rep;OUT interior representation
FORTRAN Syntax
SUBROUTINE pqir ( WKID, II, TYPE, ERRIND, INTS, ISTYLI, COLI )
INTEGERWKIDworkstation identifier
INTEGERIIinterior index
INTEGERTYPEtype of returned values (PSET, PREALI)
INTEGERERRINDOUT error indicator
INTEGERINTSOUT interior style
INTEGERISTYLIOUT interior style index
INTEGERCOLIOUT interior colour index
Required PHIGS Operating States
(PHOP, WSOP, ∗, ∗)
DESCRIPTION
Purpose
Use INQUIRE INTERIOR REPRESENTATION to determine the current attribute values for a specified entry in a specified workstation’s table of defined interior representations.
See the description of the subroutine SET INTERIOR REPRESENTATION for information on the meaning of these attribute values.
C Input Parameters
wsWorkstation identifier.
indexEntry to be returned from the workstation’s table of interior representations; if this entry is not present in the table and the type of returned value parameter is REALIZED, the representation for interior index 1 is returned.
typeAn enumerated value specifying whether the inquired values are to be returned as the values originally specified by the application (SET), or as the values actually being used by the workstation if any of the application-specified values had to be mapped to ones available on the workstation (REALIZED). Valid values are defined in phigs.h as:
PSET(return application-specified value)
PREALIZED(return value available on the workstation)
C Output Parameters
error_ind
A pointer to the location to store the error number of any error detected by this function.
repA pointer to a Pinterbundl structure in which the system returns the interior representation at index in the workstation’s table of interior representations. Pinterbundl is defined in phigs.h as follows:
typedef struct {
Pinterstylestyle;/∗ interior style ∗/
Pintindex;/∗ interior style index ∗/
Pintcolour;/∗ interior colour index ∗/
} Pinterbundl;
FORTRAN Input Parameters
WKIDWorkstation identifier.
IIEntry to be returned from the workstation’s table of interior representations; if this entry is not present in the table and the type of returned value parameter is REALIZED, the representation for interior index 1 is returned.
TYPEAn enumerated value specifying whether the inquired values are to be returned as the values originally specified by the application (SET), or as the values actually being used by the workstation if any of the application-specified values had to be mapped to ones available on the workstation (REALIZED). Valid values are defined in phigs.h as:
PSET(return application-specified value)
PREALI(return value available on the workstation)
FORTRAN Output Parameters
ERRIND
The error number of any error detected by this function.
INTSThe interior style at index II in the workstation’s table of interior representations.
STYLI
The interior style index at index II in the workstation’s table of interior representations.
COLIThe interior colour index at index II in the workstation’s table of interior representations.
ERRORS
003Ignoring function, function requires state (PHOP, WSOP, ∗, ∗)
054Ignoring function, the specified workstation is not open
059Ignoring function, the specified workstation does not have output capability (i.e., the workstation category is neither OUTPUT, OUTIN, nor MO)
100Ignoring function, the bundle index value is less than one
101Ignoring function, the specified representation has not been defined
SEE ALSO
SET INTERIOR REPRESENTATION (3P)
INQUIRE PREDEFINED INTERIOR REPRESENTATION (3P+)
INQUIRE EXTENDED INTERIOR REPRESENTATION (3P+)
Sun Release 4.0 — Last change: 1 August 1989