INQUIRE PREDEFINED POLYLINE REPRESENTATION(3P) — SUNPHIGS LIBRARY
NAME
INQUIRE PREDEFINED POLYLINE REPRESENTATION − inquire a predefined polyline representation for a workstation type
SYNOPSIS
C Syntax
void
pinqpredlinerep ( type, index, error_ind, bundle )
Pwstypetype;workstation type
Pintindex;predefined index
Pint∗error_ind;OUT error indicator
Plnbundl∗bundle;OUT predefined polyline rep
FORTRAN Syntax
SUBROUTINE pqpplr ( WTYPE, PLI, ERRIND, LTYPE, LWIDTH, COLI )
INTEGERWTYPEworkstation type
INTEGERPLIpredefined polyline index
INTEGERERRINDOUT error indicator
INTEGERLTYPEOUT linetype
REALLWIDTHOUT linewidth scale factor
INTEGERCOLIOUT polyline colour index
Required PHIGS Operating States
(PHOP, ∗, ∗, ∗)
DESCRIPTION
Purpose
Use INQUIRE PREDEFINED POLYLINE REPRESENTATION to determine the predefined polyline representation for a specified workstation type at a given polyline index.
C Input Parameters
type
Type of workstation.
index
Entry to be returned from the workstation table of predefined polyline 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 Plnbundl data structure in which the system returns the polyline representation at index in the workstation table of predefined polyline representations. Plnbundl is defined in phigs.h as:
typedef struct {
Pinttype;/∗ line type ∗/
Pfloatwidth;/∗ linewidth scale factor ∗/
Pintcolour;/∗ colour index ∗/
} Plnbundl;
FORTRAN Input Parameters
WTYPE
Type of workstation.
PLI
Entry to be returned from the workstation table of predefined polyline representations.
FORTRAN Output Parameters
ERRIND
The error number of any error detected by this function.
LTYPE
The line type at index PLI in the workstation table of predefined polyline representations.
LWIDTH
The line width scale factor at index PLI in the workstation table of predefined polyline representations.
COLIThe colour index at index PLI in the workstation table of predefined polyline 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
SEE ALSO
INQUIRE POLYLINE FACILITIES (3P)
SET POLYLINE REPRESENTATION (3P)
INQUIRE POLYLINE REPRESENTATION (3P)
INQUIRE PREDEFINED EXTENDED POLYLINE REPRESENTATION (3P+)
Sun Release 4.0 — Last change: 5 July 1989