pinq_int_facs_plus(3g) — Subroutines
Name
pinq_int_facs_plus − Returns interior, hatch, and shading information.
Operating States: PHOP, ∗, ∗, ∗
PHIGS PLUS function
Syntax
void pinq_int_facs_plus (
Pint wstype, /∗ (I) Workstation type. ∗/
Pstore store, /∗ (I) Handle to store the object. store
manages the memory referenced by
∗facs. ∗/
Pint ∗error_ind, /∗ (O) Error indicator. ∗/
Pint_facs_plus ∗∗facs /∗ (O) List of extended interior
facilities. ∗/
)
Data Structures
typedef void ∗Pstore;
typedef struct {
Pint num_int_styles; /∗ number of interior styles ∗/
Pint_style int_styles[5]; /∗ list of available interior
styles ∗/
Pint num_hatch_styles; /∗ number of hatch styles ∗/
Pint_list hatch_styles; /∗ list of available hatch styles ∗/
Pint_list shad_methods; /∗ list of available shading
methods ∗/
Pint num_pred_int_inds; /∗ number of predefined interior
indexes ∗/
} Pint_facs_plus;
typedef enum {
PSTYLE_HOLLOW, /∗ hollow interior ∗/
PSTYLE_SOLID, /∗ solid interior ∗/
PSTYLE_PAT, /∗ patterned interior ∗/
PSTYLE_HATCH, /∗ hatched interior ∗/
PSTYLE_EMPTY /∗ empty interior ∗/
} Pint_style;
typedef struct {
Pint num_ints; /∗ number of Pints in the list ∗/
Pint ∗ints; /∗ list of integers ∗/
} Pint_list;
Constants
Data Structure Constant Description
Constants
---------------------------------------------------------------------------
Shading methods PINT_SHAD_METHOD_NONE No interpolation,
constant shading
PINT_SHAD_METHOD_COLR Linear interpola-
tion of color
PINT_SHAD_METHOD_DATA Interpolation of
color for the WITH
DATA primitives
PINT_SHAD_METHOD_DATA_DOT Interpolation of
color based on dot
products
PINT_SHAD_METHOD_DATA_NORM Interpolation of
color based on
normals
---------------------------------------------------------------------------
Description
pinq_int_facs_plus returns the following values:
•Number and list of available interior styles
•Number and list of available hatch styles
•Number and list of available shading methods
•Number of predefined interior indexes
•Number and list of available lighting methods
The value of the number of available hatch styles has the following interpretations:
Value Result
------------------------------------------------------------------------
Positive The list of available hatch styles contains all registered
hatch styles.
Negative Two conditions apply:
- Digital PHIGS derives the implementation-specific hatch
styles directly from the value and the hatch style aspect.
- The list of available hatch styles contains the registered
hatch styles supported, the number of which is the
absolute value of the number of available hatch styles.
------------------------------------------------------------------------
See Also
pcreate_store
pdel_store
pinq_int_facs
pinq_int_rep_plus
pinq_pred_int_rep
pinq_pred_int_rep_plus
pset_int_style
pset_int_style_ind