PQPRFR(3g) — Subroutines
Name
PQPRFR − Returns predefined reflectance representation information for the index.
Operating States: PHOP, ∗, ∗, ∗
PHIGS PLUS function
Syntax
PQPRFR (WTYPE, PRFI, MLDR, ERRIND, RFM, RPTYPE, LDR, DATREC)
Argument Data Type Access Description
---------------------------------------------------------------------------
WTYPE Integer Read Workstation type
PRFI Integer Read Predefined reflectance index
MLDR Integer Read Dimension of the data record array
ERRIND Integer Write Error indicator
RFM Integer Write Reflectance model
RPTYPE Integer Write Reflectance properties type
LDR Integer Write Length of the data record array
DATREC(MLDR) Character ∗80 Write Data record
---------------------------------------------------------------------------
Constants
Defined Argument Constant Description
---------------------------------------------------------------------------
RFMP NORM No reflectance
PARM Ambient reflectance
PADRM Ambient and diffuse reflectance
PADSRM Ambient, diffuse, and specular reflectance
RPTYPE PSRPT Simple reflectance
---------------------------------------------------------------------------
Description
PQPRFR queries the workstation description table and returns the predefined reflectance representation of the specified index.
Digital PHIGS Version 3.1 does not support this function.
Data Record Information
If RPTYPE is PSRPT, the data record is as follows:
INTEGER IL = 2+∗ Number of integer elements
INTEGER IA(1) = Color type
INTEGER IA(2) = Number of color value components (NCC)
INTEGER RL = 4+∗ Number of real elements
REAL RA(1) = Ambient reflection coefficient
REAL RA(2) = Diffuse reflection coefficient
REAL RA(3) = Specular reflection coefficient
REAL RA(4) = Specular exponent
SL = 0
LSTR = ()
STR = ()
If the color type is PINDIR:
IA(3) = Specular color index
If the color type is PRGB, PCIE, PHSV, or PHLS:
RA = Elements 5 through 4+NCC contain the color values
See Also
PQRFR
PSRFI