INQUIRE POLYLINE REPRESENTATION PLUS(3P+) — Kubota Pacfic Computer Inc. (29 February 1991)
NAME
INQUIRE POLYLINE REPRESENTATION PLUS − inquire the values of a workstation’s extended polyline representation
SYNOPSIS
C Syntax
void
pinq_line_rep_plus ( ws, index, type, error_ind, rep )
Pintws;workstation identifier
Pintindex;polyline index
Pinq_typetype;type of returned value
Pint∗error_ind;OUT error indicator
Pline_bundle_plus∗rep; OUT polyline representation
Required PHIGS Operating States
(PHOP, WSOP, ∗, ∗)
DESCRIPTION
Purpose
INQUIRE POLYLINE REPRESENTATION PLUS returns the attribute values of a specified entry in a workstation extended polyline bundle table. See SET POLYLINE REPRESENTATION PLUS for a full description of the contents of the bundle table entry and a description of the extended polyline bundle table.
C Input Parameters
wsWorkstation identifier.
indexIndex of the entry to be returned from the workstation extended polyline bundle table. If this entry is not present in the table, and the type of returned value parameter is PINQ_REALIZED, the representation for polyline index one is returned.
typeAn enumerated value specifying whether the values to be returned are those originally specified by the application (PINQ_SET), or those resulting after PHIGS mapped them to ones available on the workstation (PINQ_REALIZED). A Pinq_type structure is defined as:
typedef enum {
PINQ_SET,
PINQ_REALIZED
} Pinq_type;
C Output Parameters
error_ind
A pointer to the location to store the error number of any error detected by this function.
repA pointer to a Pline_bundle_plus structure that returns the specified extended polyline representation. Pline_bundle_plus is defined as:
typedef struct {
Pinttype;/∗ line type ∗/
Pfloatwidth;/∗ linewidth scale factor ∗/
Pgcolrcolr;/∗ polyline colour ∗/
Pintshad_meth;/∗ polyline shading method ∗/
Pintapprox_type; /∗ curve approximation type ∗/
Pfloatapprox_val;/∗ curve approximation value ∗/
} Pline_bundle_plus;
See SET POLYLINE REPRESENTATION PLUS for a full description of the contents of this structure.
Execution
If the inquired information is available, the error indicator is returned as zero and the requested information is returned in the output parameters.
If the specified polyline index is not present in the polyline bundle table on the workstation and the specified type of returned value is Realized, the representation for polyline index one is returned.
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 non-availability.
Since this is an inquiry function, ERROR HANDLING is not invoked when an error is detected by this function.
ERRORS
003Ignoring function, function requires state (PHOP, WSOP, ∗, ∗)
054Ignoring function, the specified workstation is not open
059Ignoring function, the specified workstation does not have output capability (that is, the workstation category is neither OUTPUT, OUTIN, nor MO)
100Ignoring function, the bundle index value is less than one
101Ignoring function, the specified representation has not been defined
SEE ALSO
SET POLYLINE REPRESENTATION PLUS (3P+)
INQUIRE POLYLINE REPRESENTATION (3P)
INQUIRE PREDEFINED POLYLINE REPRESENTATION PLUS (3P+)
September 02, 1992