[ Previous | Next | Contents | Glossary | Home | Search ]
The graPHIGS Programming Interface : Subroutine Reference

GPQPLF - Inquire Polyline Facilities

GPQPLF (wstype, start, number, errind, ntype, ltype, nlwidth, lwidth, minlw, maxlw, npred)

Note:

This subroutine is a Workstation Description Table (WDT) inquiry. For an overview, see "WDT Inquiries"

Purpose

Use GPQPLF to inquire the polyline facilities for the specified workstation type.

The graPHIGS API returns the total number of available line types and their identifiers (ntype[default] the number of available line widths (nlwidth) and the nominal (lwidth), minimum (minlw), and maximum line width size (maxlw[default] and the number of predefined polyline bundle table indexes for the specified workstation type (npred)

If the information is available, then the graPHIGS API sets the error indicator to zero and returns the values in the output parameter. If the error indicator is 543 (the start value exceeds the extent of the available data), then only the total number (totnum) parameter is set. If the inquired information is unavailable, then the error indicator (errind) contains the error number indicating the reason, and the values returned in the output parameter are unpredictable.

Parameters

wstype -- specified by user, 8-byte character string

Workstation type.

start -- specified by user, fullword integer

Starting member of the list of line types (>=1)

number -- specified by user, fullword integer

Number of line types requested (>=0)

errind -- returned by the graPHIGS API, fullword integer

Error indicator. If the error indicator is zero, the request has been completed. Otherwise, one of the following errors exists:
23
SPECIFIED WORKSTATION TYPE DOES NOT EXIST
35
WORKSTATION HAS ONLY INPUT CAPABILITIES
538
START VALUE < ONE
539
REQUESTED NUMBER < ZERO
543
START EXCEEDS DATA EXTENT. TOTAL NUMBER AVAILABLE RETURNED
548
SPECIFIED WORKSTATION TYPE CANNOT BE LOADED

ntype -- returned by the graPHIGS API, fullword integer

Total number of available line types.

ltype -- returned by the graPHIGS API, array of fullword integers.

List of available line types in the workstation's line type table. The table size and specified entries supported are workstation dependent. The default line type table for supported entries is defined with the following line types: (1=SOLID_LINE, 2=DASHED, 3=DOTTED, 4=DASH_DOT, 5=LONG_DASH, 6=DOUBLE_DOT, 7=DASH_DOUBLE_DOT, 8-n=SOLID_LINE ) The output array must be large enough to contain the requested data.

nlwidth -- returned by the graPHIGS API, fullword integer

Number of available line widths. (Zero means that the workstation supports a continuous range of line widths.)

lwidth -- returned by the graPHIGS API, short floating-point number (DC)

Nominal line width.

minlw -- returned by the graPHIGS API, short floating-point number (DC)

Minimum line width.

maxlw -- returned by the graPHIGS API, short floating-point number (DC)

Maximum line width.

npred -- returned by the graPHIGS API, fullword integer

Number of predefined polyline bundle table entries.

Error Codes

None

Related Subroutines

GPQRCT
Inquire Realized Connection Type

RCP code

201339654 (X'0C003306')


[ Previous | Next | Contents | Glossary | Home | Search ]