Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ p136(3P) — Kubota Pacific 4.2 System Software

Media Vault

Software Library

Restoration Projects

Artifacts Sought

INQUIRE GENERALIZED DRAWING PRIMITIVE(3P)  —  Kubota Pacfic Computer Inc. (29 February 1991)

NAME

INQUIRE GENERALIZED DRAWING PRIMITIVE − inquire generalized drawing primitive attributes

SYNOPSIS

C Syntax

void
pinq_gdp ( ws_type, gdp, error_ind, num_attrs, attrs )
Pintws_type;workstation type
Pintgdp;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

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

ws_type
Type 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_attrs
A pointer to an integer that indicates how many attributes are listed in attrs. 

attrsA Pattrs structure indicating which set of attributes are used by the specified generalized drawing primitive on workstations of type type.  Pattrs is an enumerated type defined in phigs.h as follows:

typedef enum {
PATTR_LINE,/∗ polyline attributes ∗/
PATTR_MARKER, /∗ marker 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, ∗, ∗, ∗)

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 capability (that is, 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 (3P)
PHIGS WORKSTATION DESCRIPTION TABLE (7P)
INQUIRE GENERALIZED DRAWING PRIMITIVE 3 (3P)

September 02, 1992

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026