INQUIRE GENERALIZED DRAWING PRIMITIVE(3P) — SUNPHIGS LIBRARY
NAME
INQUIRE GENERALIZED DRAWING PRIMITIVE − inquire generalized drawing primitive attributes
SYNOPSIS
C Syntax
void
pinqgdp ( type, gdp, error_ind, num_atts, atts )
Pwstypetype;workstation type
Pintgdp;GDP identifier
Pint∗error_ind;OUT error indicator
Pint∗num_atts;OUT number of attributes used
Pattrsatts[5];OUT list of attributes used
FORTRAN Syntax
SUBROUTINE pqgdp ( WTYPE, GDP, ERRIND, NBND, BNDL )
INTEGERWTYPEworkstation type
INTEGERGDPGDP identifier
INTEGERERRINDOUT error indicator
INTEGERNBNDOUT number of sets of attributes used
INTEGERBNDL(5)OUT list of sets of attributes used
Required PHIGS Operating States
(PHOP, ∗, ∗, ∗)
DESCRIPTION
Purpose
INQUIRE GENERALIZED DRAWING PRIMITIVE determines the sets of attributes used by the specified generalized drawing primitive. The representation of the generalized drawing primitive at a given workstation will be controlled by zero or more sets of polyline, polymarker, text, interior, and edge attributes, as indicated by this inquiry function. Whether bundle indices or the corresponding individual attributes are used will depend on the values of the appropriate aspect source flags at traversal time.
C Input Parameters
typeType of workstation for which to inquire the generalized drawing primitive attributes.
gdpThe identifier of the generalized drawing primitive for which to inquire attributes.
C Output Parameters
error_ind
A pointer to the location to store the error number of any error detected by this function.
num_atts
A pointer to an integer in which the number of sets of attributes used by the specified generalized drawing primitive on workstations of type type is returned.
attsAn array of type Pattrs in which num_atts values are returned indicating which of five possible sets of attributes are used by the specified generalized drawing primitive on workstations of type type. Note that the application must specify an array that is large enough for five values (the maximum number that could be returned). Pattrs is an enumerated type defining the following types of attribute sets:
PPOLYLINE(polyline attributes)
PPOLYMARKER(marker attributes)
PTEXT(text attributes)
PINTERIOR(interior attributes)
PEDGE(edge attributes)
FORTRAN Input Parameters
WTYPE
Type of workstation for which to inquire the generalized drawing primitive attributes.
GDPThe identifier of the generalized drawing primitive for which to inquire attributes.
FORTRAN Output Parameters
ERRIND
The error number of any error detected by this function.
NBNDAn integer in which the number of sets of attributes used by the specified generalized drawing primitive on workstations of type WTYPE is returned.
BNDLAn integer array in which num_atts values are returned indicating which of five possible sets of attributes are used by the specified generalized drawing primitive on workstations of type WTYPE. Note that the application must specify an array that is large enough for five values (the maximum number that could be returned). The following values may be returned in BNDL to indicate the attribute sets used:
PPLBND(polyline attributes)
PPMBND(polymarker attributes)
PTXBND(text attributes)
PINBND(interior attributes)
PEDBND(edge attributes)
ERRORS
002Ignoring function, function requires state (PHOP, ∗, ∗, ∗)
051Ignoring function, this information is not yet available for this generic 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 capa bility (i.e., the workstation category is neither OUTPUT, OUTIN, nor MO)
064Ignoring function, the specified workstation type is not able to generate the specified generalized drawing primitive
062Ignoring function, this information is not available for this MO workstation type
SEE ALSO
INQUIRE LIST OF AVAILABLE GENERALIZED DRAWING PRIMITIVES (3P)
PHIGS WORKSTATION DESCRIPTION TABLE (7P)
GENERALIZED DRAWING PRIMITIVE (3P)
INQUIRE GENERALIZED DRAWING PRIMITIVE 3 (3P)
Sun Release 4.0 — Last change: 7 July 1989