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

0 3 Output SunCGI supports two classes of output primitives: geometrical output primitives and ~ter primitives. Geometrical Output Primitives include arcs, circles, polylines, and polygons. The position of geometrical output primitives are always specified in absolute voe coordinates. 7 Raster Primitives draw text and scaled and unscaled 2D arrays. The coordinate system for ras- ter primitives depends on the type of primitive. The drawing mode deter- mines how output primitives are drawn on top of other output primitives or the background. 0 3.1. Geometrical Output Primitives Geometrical output primitives are divided into two classes: polygonal primitives and conical primitives.

Geometrical output primitives are all 2D in keeping with the CG! standard. However, polygons with holes (via the partial_polygon function) are provided in order to suppon 30 graphics packages. Geometrical primitives (except polymarker) are considered either closed or not closed. Polymarker uses its own attributes (see Section 4.3). Non-closed figures (poly lines, circular arcs, or elliptical arcs) are drawn with a style, width and color determined from line attributes (see Section 4.2). Closed figures (polygons, rectangles, circles, ellipses, and circular and elliptical closed arcs) use the solid object attributes (see Section 4.4).

The geometrical information specifies the bounduy of a closed figure. The interior of this boundary is filled using fill area attributes. The bounduy may be surrounded with a line, drawn with perimeter attributes, not the line attributes. For example, a circle of radius 1000 and a perimeter width of 100 VDC units has its perimeter between the circle. of radius 1000 and a concentric circle of radius 1100 (not from 950 through 1050). Most polygonal primitives polyline, (polymarker, polygon, and partial_polygon) take one argument of type Ccoorlist: 0 7 SunCGI (unlike SunCore) maintains no concept of current position. 33 V crsion C of 17 March 1986