Sun Microsystems 800-1256-04 — Sun Microsystems 800-1256-04 SunCGI Reference Manual PDF

Cha.,ter 4 -Attributes 55 0 #include Ccoor box[5] = { 10000,10000 , 10000,20000, 20000,20000 , 20000,10000 , 10000, 10000 } ; Cbunatt bundle= { DASHED_DOTTED, 1., 4, x, 6., 4, PATTERN, 1, 1, 2, DOTTED, 1.

5, 1, STICK, CHARACTER, 1.3, 0.05, 1 }; main () { Ccoorlist boxlist; Cint i, line_bundle Cf lag list flags; cvwsurf device; 2, name; boxlist.ptlist = box; 0 boxlist.n = 5; NORMAL_VWSURF(device, PIXWINDD); open_cgi(); open_vws(&name, &device); flags.value= (Casptype *) malloc(l8*sizeof(Casptype)); flags.nurn = (Cint *) malloc(18*sizeof(Cint)); for (i = O; i 18; i++) ( flags.value[i] = BUNDLED; flags.nurn[i] = i; flags.n = 18; define_bundle_index{2, &bundle); set_aspect_source_flags(&flags); polyline_bundle_index(line_bundle); polyline(&boxlist); sleep(lO); close_vws (name}; close_ cgi (} ; Figure 4-1 0 Example Program with Bundled Attributes Version C of 17 March 1986