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

INQUIRE INTERIOR FACILITIES (PHOP,*,*,*)

Purpose

Use Inquire Interior Facilities to inquire the interior facilities for the specified workstation type.

The graPHIGS API returns data indicating the total number of available interior styles, the number of available hatch styles, and the total number of indexes predefined in the interior bundle table. Possible interior styles include: HOLLOW, SOLID, PATTERN, HATCH, and EMPTY.

If the information is available, then the graPHIGS API sets the error indicator to zero and returns the values in the output parameters. If the information is unavailable, then the values returned in the output parameters are unpredictable and the graPHIGS API sets the error indicator to one of the following errors:

2
Function Requires State (PHOP,*,*,*)
52
Workstation Type Not Recognized By Implementation
51
Information Not Available For Generic Workstation Type
59
Specified Workstation Does Not Have Output Capability
62
This Information Not Available For MO Workstation Type

Language Bindings

C

pinq_int_facs (ws_type, hatch_num_elems_appl_list, hatch_start_ind, err_ind, int_facs, hatch_num_elems_impl_list)

Input Parameters

Pint ws_type
Workstation type.

Pint hatch_num_elems_appl_list
Number of elements in the application hatch style list (>=0).

Pint hatch_start_ind
Starting index (>=0).

Output Parameters

Pint *err_ind
Error indicator.

Pint_facs *int_facs
Interior facilities.

Pint *hatch_num_elems_impl_list
Number of elements in the implementation list.

FORTRAN

PQIF (wtype, ni, nh, errind, nis, is, nhs, hs, npfai)

Input Parameters

integer wtype
Workstation type.

integer ni
List element of interior styles requested (>=0).

integer nh
List element of hatch styles requested (>=0).

Output Parameters

integer errind
Error indicator.

integer nis
Number of available interior styles.

integer is
NIth element in the list of available interior styles (0=PHOLLO, 1=PSOLID, 2=PPATTR, 3=PHATCH, 4=PISEMP).

integer nhs
Number of available hatch styles.

integer hs
NHth element in list of available hatch style indexes.

integer npfai
Number of predefined interior indexes.

Errors

None

Related Subroutines

  • Inquire Workstation Connection And Type


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