pset_int_rep(3g) — Subroutines
Name
pset_int_rep − Defines the attributes of an interior representation.
Operating States: PHOP, WSOP, ∗, ∗
PHIGS standard function
Syntax
void pset_int_rep (
Pint wsid, /∗ (I) Workstation identifier ∗/
Pint index, /∗ (I) Interior bundle index ∗/
const Pint_bundle ∗rep /∗ (I) Interior representation ∗/
)
Data Structures
typedef struct {
Pint_style style; /∗ interior style ∗/
Pint style_ind; /∗ interior style index ∗/
Pint colr_ind; /∗ interior color index ∗/
} Pint_bundle;
typedef enum {
PSTYLE_HOLLOW, /∗ Hollow interior. This is the default value. ∗/
PSTYLE_SOLID, /∗ Solid interior. ∗/
PSTYLE_PAT, /∗ Patterned interior. ∗/
PSTYLE_HATCH, /∗ Hatched interior. ∗/
PSTYLE_EMPTY /∗ Empty interior. ∗/
} Pint_style;
Description
pset_int_rep associates an interior index with the interior style, interior style index, and interior color index values in the interior bundle table on the workstation specified by the workstation identifier. This function allows you to create or redefine an entry for the workstation interior bundle table. To determine the predefined bundle table entries, which are provided for all workstations of type OUTPUT and OUTIN, and which are derived from the workstation description table, run the program phigs_predef.
The function associates the specified interior index value with the specified values of interior style, interior color index, and interior style index, as described in the following table, to form a table entry:
Argument Description
-----------------------------------------------------------------------
Interior style Specifies the value of the fill area or fill area
set interior style. The value can be HOLLOW,
SOLID, PATTERN, HATCH, or EMPTY. Digital PHIGS uses
the HOLLOW style if the requested style is not
available on the workstation during structure
traversal.
Interior style Used for PATTERN and HATCH interior styles only.
index When the interior style is PATTERN, the argument
value is greater than 0 and provides an index into
the workstation pattern table. When the interior
style is HATCH, this argument selects the hatch
style. Hatch styles greater than 0 are reserved
for future standardization. Hatch style values
that are less than 1 are workstation-dependent.
Digital PHIGS uses the index value 1 if the requested
style is not available on the workstation during
structure traversal.
Interior color Specifies the index to the workstation color table.
index Digital PHIGS uses the index value 1 if the requested
interior color index is not available on the
workstation during structure traversal.
-----------------------------------------------------------------------
During structure traversal, the following results occur:
•When Digital PHIGS displays fill areas or fill area sets, the current interior index entry in the PHIGS traversal state list references an entry in the interior bundle table.
•If Digital PHIGS cannot find the current interior index value in the interior bundle table, it uses the interior index value of 1.
•Digital PHIGS binds aspects to the primitives, as directed by the values of the corresponding ASFs (BUNDLED or INDIVIDUAL).
See Also
pfill_area
pfill_area3
pfill_area_set
pfill_area_set3
pfill_area_set_data
pfill_area_set3_data
pe_fill_area_set_wshape
pe_fill_area_set3_wshape
pinq_int_rep
pnon_uniform_b_spline_surf3
pquad_mesh3_data
pset_indiv_asf
pset_int_colr_ind
pset_int_ind
pset_int_rep_plus
pset_int_style
pset_int_style_ind
pset_of_fill_area_sets3_data
ptri_strip3_data