INQUIRE GENERALIZED DRAWING PRIMITIVE 3(3P) — Kubota Pacfic Computer Inc. (29 February 1991)
NAME
INQUIRE GENERALIZED DRAWING PRIMITIVE 3 − inquire generalized drawing primitive3 attributes
SYNOPSIS
C Syntax
void
pinq_gdp3 ( ws_type, gdp, error_ind, num_attrs, attrs )
Pintws_type;workstation type
Pintgdp;3D GDP function number
Pint∗error_ind;OUT error indicator
Pint∗num_attrs;OUT number of attributes
Pattrsattrs[5];OUT list of attributes
Required PHIGS Operating States
(PHOP, ∗, ∗, ∗)
DESCRIPTION
Purpose
Use INQUIRE GENERALIZED DRAWING PRIMITIVE 3 to determine the sets of attributes used by the specified 3D 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
ws_type
Type of workstation for which to inquire the generalized drawing primitive 3 attributes.
gdpThe identifier of the generalized drawing primitive 3 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_attrs
A pointer to an integer which returns the number of attributes listed in attrs.
attrsA Pattrs structure in which num_attrs values are returned indicating which set of attributes are used by the specified generalized drawing primitive on workstations of type ws_type. Pattrs is an enumerated type defined in phigs.h as follows:
typedef enum{
PATTR_LINE,/∗ polyline attributes ∗/
PATTR_MARKER, /∗ polymarker attributes ∗/
PATTR_TEXT,/∗ text attributes ∗/
PATTR_INT,/∗ interior attributes ∗/
PATTR_EDGE/∗ edge attributes ∗/
}Pattrs;
Execution
If the inquired information is available, the error indicator is returned as zero and values are returned in the output parameters.
If the inquired information is not available, the values returned in the output parameters are undefined and the error indicator is set to one of the below error numbers to indicate the reason for nonavailability.
Since this is an inquiry function, ERROR HANDLING is not invoked when an error is detected by this function.
ERRORS
002Ignoring function, function requires state (PHOP, ∗, ∗, ∗)
052Ignoring function, workstation type not recognized by the implementation
051Ignoring function, this information is not yet available for this workstation type; open a workstation of this type and use the specific workstation type
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
064Ignoring function, the specified workstation type is not able to generate the specified generalized drawing primitive
SEE ALSO
INQUIRE LIST OF AVAILABLE GENERALIZED DRAWING PRIMITIVES 3 (3P)
PHIGS WORKSTATION DESCRIPTION TABLE (7P)
INQUIRE GENERALIZED DRAWING PRIMITIVE (3P)
September 02, 1992