Sun Microsystems 800-1256-04 — Sun Microsystems 800-1256-04 SunCGI Reference Manual PDF (EN)

62 SunCGI Reference Manual Fill Area Bundle Index Cerror fill_area_bundle_index(index) Cint index; /* fill area bundle index*/ C fill_area_bundle_index sets the currentfill area bundle index to the value of index. The contents of the fill area bundle are interior style ,fill color hatch index pattern index perimeter type perimeter width and perimeter color. The perimeter width specification mode and the pattern attributes are not included in the definition of the fill area bundle. If index is not defined, an error is generated, and the fill area bundle index does not change.

If the ASF's for any of these attributes is set to BUNDLED, the current value of the attribute is set to the value of the corresponding attribute in the bundle. Errors ENOTOPOP [5] CGI not in proper state CGI shall be in state VDOP, VSOP, or VSAC. EBADFABX [39] Fill area index is invalid. Interior Style Cerror interior_style(istyle, perimvis) Cintertype istyle; /* fill style*/ Cflag perimvis; /* perimeter visibility*/ interior_style sets the fill style for solid objects. The enumerated type Clintertype contains values that correspond to valid line types.

typedef enum HOLLOW, SOLIDI, PATTERN, HATCH Cintertype; 0 If the fill style is set to SOLIDI, the solid object is filled with the currentfi/1 color. If istyle is set to PATIERN or HATCH, the solid object is filled with the current PATIERN or HATCH style. The PATIERN and.HATCH styles are explained in the pattern attributes section. The defaultfi/1 style is HOLLOW. interior_style also determines whether the perimeter of the solid object is visible according to the value of perimvis (which must be ON or OFF). lf per- imvis is OFF, the perimeter attributes have no effect. The default value of perim- eter visibility is ON.

Be careful when using the interior style function to explicitly specify the per- imvis argument If you do not specify it, or set it to OFF, the geometrical output primitive may not be displayed because the interior style is HOLLOW. Errors ENOTOPOP [5] CGI not in proper state CGI shall be in state VDOP, VSOP, or VSAC. 4.5. Solid Interior Fill Attribute The following section contains the description of a function that determines the color of an interior region if the fill style is not HOLLOW. 0 Version C of 17 March 1986