SET INTERIOR STYLE INDEX(3P) — SUNPHIGS LIBRARY
NAME
SET INTERIOR STYLE INDEX − create a structure element to set the current interior style index attribute
SYNOPSIS
C Syntax
void
psetintstyleind ( index )
Pintindex;interior style index
FORTRAN Syntax
SUBROUTINE psisi ( ISTYLI )
INTEGERISTYLIinterior style index
Required PHIGS Operating States
(PHOP, ∗, STOP, ∗)
DESCRIPTION
Purpose
SET INTERIOR STYLE INDEX creates a structure element containing a value for the current interior style index attribute.
When the current interior style index ASF is set to INDIVIDUAL, the current value of this attribute applies to the following output primitives:
• FILL AREA
• FILL AREA 3
• FILL AREA SET
• FILL AREA SET 3
• FILL AREA 3 WITH DATA
• FILL AREA SET 3 WITH DATA
• NON-UNIFORM B-SPLINE SURFACE
• POLYHEDRON 3 WITH DATA
• QUADRILATERAL MESH 3 WITH DATA
• TRIANGLE STRIP 3 WITH DATA
If the current edit mode is INSERT, a SET INTERIOR STYLE INDEX element is inserted into the currently open structure after the element pointed to by the current element pointer. If the edit mode is REPLACE, the new SET INTERIOR STYLE INDEX element replaces the element pointed to by the element pointer. In either case, the element pointer is updated to point to the new element.
C Input Parameter
indexThe interior style index, which selects from the workstation’s PATTERN or HATCH (or GENERAL INTERIOR)† table.
FORTRAN Input Parameter
ISTYLI
The interior style index, which selects from the workstation’s PATTERN or HATCH (or GENERAL INTERIOR)† table.
† This is a SunPHIGS Extension function based on PHIGS+ and is not part of the PHIGS standard.
Execution
When the SET INTERIOR STYLE INDEX element is traversed, the current interior style index entry in the PHIGS traversal state list is set to the interior style index.
When the current interior style index ASF is set to INDIVIDUAL, filled area output primitives which follow in the structure network are filled using the interior style index specified.
When the interior style (either individual or bundled, depending on the interior style ASF) is Hollow, Solid, or Empty, the interior style index does not apply. When the interior style is Patterned, the interior style index determines which of the workstation’s pattern table entries is used; the interior style index may be called the pattern index in this case. When the interior style is Hatched, the interior style index determines which of the workstation’s predefined hatches is used; the interior style index may be called the hatch index in this case. When the interior style is General †, the interior style index determines which of the workstation’s general interior table entries is used.
When the current interior style index ASF is set to BUNDLED, the interior style index is taken from the workstation representation indicated by the current interior index. In this case, the interior style index set with SET INTERIOR STYLE INDEX has no effect.
† This is a SunPHIGS Extension function based on PHIGS+ and is not part of the PHIGS standard.
ERRORS
005Ignoring function, function requires state (PHOP, ∗, STOP, ∗)
SEE ALSO
SET INTERIOR STYLE (3P)
SET GENERAL INTERIOR REPRESENTATION (3P+)
SET PATTERN REPRESENTATION (3P)
INQUIRE INTERIOR FACILITIES (3P)
SET INDIVIDUAL ASF (3P)
SET INTERIOR REPRESENTATION (3P)
Sun Release 4.0 — Last change: 28 July 1989