Chapter4 -Attributes 57 0 typedef struct { Clintype line_type; Cfloat line_width; Cint line_color; Cmartype marker_type; Cfloat marker_size; Cint marker_color; Cintertype interior_style; Cint hatch_index; Cint pattern_index; Cint fill_color; Clintype perimeter_type; Cfloat perimeter_width; Cint perimeter_color; Cint text_font; Cprectype text_precision; Cfloat character_expansion; Cfloat character_spacing; Cint text_color; Cbunatt; In addition to the errors listed below, other errors can be detected if any of the attribute values are invalid, as specified in later sections. Results are undefined if an error occurs. 0 Errors ENOTOPOP [5] CG! not in proper state CG!
shall be in state VDOP, VSOP, orVSAC. Bundle table index out of range. EBBDTBDI [31] 4.2. Line Attributes SunCGI provides for specifying the style, width and color oflines which consti- tute poly lines, circular arcs, and elliptical arcs. The functions do not affect the drawing of the perimeter of solid objects which are set by the perimeter func- tions. Polyline Bundle Index Cerror polyline_bundle_index(index) Cint index; /* polyline bundle index*/ polyline_bundle_index sets the current polyline bundle index to the value of index. The contents of the polyline bundle index are line type, line width and line color.
The line width specification mode and the line endstyle attributes are not included in the polyline bundle. If index is not defined, an error is generated, and the polyline_bundle_index does not change. If the ASF' s for any of these attributes is set to BUNDLED, the current values of these attributes are set to the contents of the bundle. Errors ENOTOPOP [5] CG! not in proper state CG! shall be in state VDOP, VSOP, or VSAC. 0 EBADLINX [33] Polyline index is invalid. Version C of 17 March 1986