-+-+-+-+-+-+-+-+ START OF PART 109 -+-+-+-+-+-+-+-+ X(of)j(structure)e Fi(structid)j Fq(to)e(immediately)g(higher)f(or)h(lower)g X(than)g(that)g(of)g Fi(relstruct)p Fq(,)0 2680 y(according)i(to)g XFi(relpriority)p Fq(.)17 b(If)11 b Fi(structid)i Fq(does)f(not)e(exist,)h XFi(error)i Fq(is)e(set)g(to)g(1.)k(Otherwise,)d(its)e(value)i(is)f(0.)912 X2956 y(87)p eop X%%Page: 88 89 Xbop 0 -137 a Fq(PHIGS)11 b(T)m(oolkit)f(User)i(Manual)1235 Xb(PTK/100)p 1476 -19 391 2 v 1476 60 2 80 v 1490 35 a Fb(ptk_closestruct)p X1864 60 V 1476 62 391 2 v 0 136 a Fq(void)10 b Fp(ptk_closestruct)i XFq(\()g(void)21 b(\))0 285 y(This)13 b(function)e(closes)j(the)f(currently)f X(open)g(structure,)h(and)g(restores)h(the)e(open)h(structure)f(and)h(element V) Xh(pointer)e(from)g(the)0 335 y(structure)f(stack.)p 1273 432 X593 2 v 1273 512 2 80 v 1288 486 a Fb(ptk_computec)o(harh)o(eigh)o(t)p X1864 512 V 1273 514 593 2 v 0 588 a Fq(void)f Fp(ptk_computecharheight)i XFq(\()20 b(Pint)f Fa(wsid)p Fq(,)j(Pchar)e(*)p Fa(str)p Fq(,)i(Ppoint)c(*)p XFa(box)p Fq(,)k(Pint)d Fa(font)p Fq(,)i(P\257oat)521 637 y(*)p XFa(charht)9 b Fq(\))25 688 y(IN)91 b(Pint)122 b Fa(wsid)77 Xb Fq(workstation)10 b(identi\256er)n(.)25 738 y(IN)91 b(Pchar)12 Xb(*)63 b Fa(str)108 b Fq(string.)25 788 y(IN)91 b(Ppoint)10 Xb(*)49 b Fa(box)90 b Fq(width)10 b(and)i(height)e(of)h(box.)25 X837 y(IN)91 b(Pint)122 b Fa(font)88 b Fq(text)11 b(font.)25 X887 y(OUT)50 b(P\257oat)11 b(*)61 b Fa(charht)48 b Fq(character)13 Xb(height.)0 956 y(This)c(function)f(computes)i(the)g(character)g(height)f X(for)g(string)f Fi(str)p Fq(,)j(using)e(font)f Fi(font)p Fq(,)j(in)e(order)g X(for)g(it)g(to)g(\256t)g(into)g(the)g(rectangle)0 1006 y(specifed)j(by)f XFi(box)p Fq(.)p 1330 1103 537 2 v 1330 1182 2 80 v 1344 1157 Xa Fb(ptk_computecha)o(rsiz)o(e)p 1864 1182 V 1330 1184 537 X2 v 0 1258 a Fq(void)f Fp(ptk_computecharsize)j Fq(\()20 b(Pint)f XFa(wsid)p Fq(,)j(Pchar)e(*)p Fa(str)p Fq(,)i(Ppoint)c(*)p Fa(box)p XFq(,)j(Pint)e Fa(font)p Fq(,)j(P\257oat)475 1308 y(*)p Fa(charht)p XFq(,)9 b(P\257oat)j(*)p Fa(charexp)c Fq(\))25 1359 y(IN)91 Xb(Pint)122 b Fa(wsid)105 b Fq(workstation)9 b(identi\256er)n(.)25 X1409 y(IN)91 b(Pchar)12 b(*)63 b Fa(str)136 b Fq(string.)25 X1458 y(IN)91 b(Ppoint)10 b(*)49 b Fa(box)118 b Fq(width)10 Xb(and)h(height)f(of)h(box.)25 1508 y(IN)91 b(Pint)122 b Fa(font)116 Xb Fq(text)10 b(font.)25 1558 y(OUT)50 b(P\257oat)11 b(*)61 Xb Fa(charht)76 b Fq(character)12 b(height.)25 1608 y(OUT)50 Xb(P\257oat)11 b(*)61 b Fa(charexp)48 b Fq(character)12 b(expansion.)0 X1677 y(This)j(function)e(computes)i(the)f(character)i(height)e(and)g X(expansion)g(for)h(string)e Fi(str)p Fq(,)j(using)e(font)g XFi(font)p Fq(,)i(in)e(order)h(for)f(it)g(to)0 1727 y(\256t)d(into)f(the)h X(rectangle)h(specifed)f(by)g Fi(box)p Fq(.)p 1346 1824 520 X2 v 1346 1903 2 80 v 1361 1878 a Fb(ptk_copycolourt)o(abl)o(e)p X1864 1903 V 1346 1905 520 2 v 0 1979 a Fq(void)f Fp(ptk_copycolourtable)h XFq(\()g(Pint)g Fa(sourcewsid)p Fq(,)e(Pint)h Fa(destwsid)g XFq(\))25 2068 y(IN)50 b(Pint)e Fa(sourcewsid)g Fq(source)11 Xb(workstation)f(identi\256er)n(.)25 2118 y(IN)50 b(Pint)e Fa(destwsid)88 Xb Fq(destination)9 b(workstation)h(identi\256er)n(.)0 2193 Xy(This)h(function)f(copies)h(the)h(colour)e(table)h(from)g(workstation)f XFi(sourcewsid)j Fq(to)e(workstation)e Fi(destwsid)p Fq(.)p X1386 2290 480 2 v 1386 2369 2 80 v 1400 2344 a Fb(ptk_copyedgetabl)o(e)p X1864 2369 V 1386 2371 480 2 v 0 2445 a Fq(void)h Fp(ptk_copyedgetable)i XFq(\()f(Pint)f Fa(sourcewsid)p Fq(,)g(Pint)g Fa(destwsid)g XFq(\))25 2534 y(IN)50 b(Pint)e Fa(sourcewsid)g Fq(source)11 Xb(workstation)f(identi\256er)n(.)25 2584 y(IN)50 b(Pint)e Fa(destwsid)88 Xb Fq(destination)9 b(workstation)h(identi\256er)n(.)0 2659 Xy(This)h(function)f(copies)h(the)h(edge)f(bundle)g(table)g(from)g X(workstation)e Fi(sourcewsid)14 b Fq(to)c(workstation)g Fi(destwsid)p XFq(.)0 2956 y(13th)22 b(May)m(,)12 b(1992)636 b(88)839 b(2.01)p Xeop X%%Page: 89 90 Xbop 0 -137 a Fq(PHIGS)11 b(T)m(oolkit)f(User)i(Manual)1235 Xb(PTK/100)p 1499 -19 367 2 v 1499 60 2 80 v 1513 35 a Fb(ptk_copyelem)p X1864 60 V 1499 62 367 2 v 0 136 a Fq(void)10 b Fp(ptk_copyelem)h XFq(\()h(Pint)e Fa(structid)p Fq(,)f(Pint)i Fa(elemid)f Fq(\))25 X225 y(IN)50 b(Pint)e Fa(structid)g Fq(structure)10 b(identi\256er)n(.)25 X275 y(IN)50 b(Pint)e Fa(elemid)59 b Fq(element)12 b(number)n(.)0 X350 y(This)f(function)f(copies)h(the)h(element)f(at)h(position)d XFi(elemid)j Fq(in)f(structuyre)g Fi(structid)p Fq(,)i(into)d(the)h(currently V) Xf(open)h(structure.)p 1366 445 500 2 v 1366 524 2 80 v 1381 X499 a Fb(ptk_copyelem)o(rang)o(e)p 1864 524 V 1366 526 500 X2 v 0 600 a Fq(void)f Fp(ptk_copyelemrange)i Fq(\()f(Pint)f XFa(stid)p Fq(,)h(Pint)f Fa(elem1)p Fq(,)h(Pint)g Fa(elem2)f XFq(\))25 689 y(IN)50 b(Pint)e Fa(stid)90 b Fq(structure)11 Xb(identi\256er)n(.)25 739 y(IN)50 b(Pint)e Fa(elem1)h Fq(element)12 Xb(pointer)n(.)25 789 y(IN)50 b(Pint)e Fa(elem2)h Fq(element)12 Xb(pointer)n(.)0 858 y(This)f(function)f(copies)h(the)h(element)f(range)h XFi(elem1)g Fq(to)f Fi(elem2)h Fq(in)f(structure)g Fi(stid)h XFq(into)e(the)h(currently)f(open)h(structure.)p 1346 953 520 X2 v 1346 1032 2 80 v 1360 1007 a Fb(ptk_copyhilight\256lte)o(r)p X1864 1032 V 1346 1034 520 2 v 0 1108 a Fq(void)f Fp(ptk_copyhilight\256lter) Vg XFq(\()h(Pint)g Fa(sourcewsid)p Fq(,)e(Pint)h Fa(destwsid)g XFq(\))25 1197 y(IN)50 b(Pint)e Fa(sourcewsid)g Fq(source)11 Xb(workstation)f(identi\256er)n(.)25 1247 y(IN)50 b(Pint)e Fa(destwsid)88 Xb Fq(destination)9 b(workstation)h(identi\256er)n(.)0 1322 Xy(This)h(function)f(copies)h(the)h(highlighti)o(ng)c(\256lter)j(from)g X(workstation)e Fi(sourcewsid)14 b Fq(to)c(workstation)g Fi(destwsid)p XFq(.)p 1363 1417 504 2 v 1363 1496 2 80 v 1377 1471 a Fb(ptk_copyhlhsrmode)p X1864 1496 V 1363 1498 504 2 v 0 1572 a Fq(void)g Fp(ptk_copyhlhsrmode)i XFq(\()f(Pint)f Fa(sourcewsid)p Fq(,)f(Pint)i Fa(destwsid)e XFq(\))25 1661 y(IN)50 b(Pint)e Fa(sourcewsid)g Fq(source)11 Xb(workstation)f(identi\256er)n(.)25 1711 y(IN)50 b(Pint)e Fa(destwsid)88 Xb Fq(destination)9 b(workstation)h(identi\256er)n(.)0 1786 Xy(This)h(function)f(copies)h(the)h(HLHSR)f(mode)h(from)f(workstation)e XFi(sourcewsid)k Fq(to)e(workstation)f Fi(destwsid)p Fq(.)p X1436 1882 431 2 v 1436 1961 2 80 v 1450 1935 a Fb(ptk_copyinttabl)o(e)p X1864 1961 V 1436 1963 431 2 v 0 2037 a Fq(void)g Fp(ptk_copyinttable)g XFq(\()i(Pint)e Fa(sourcewsid)p Fq(,)f(Pint)i Fa(destwsid)e XFq(\))25 2126 y(IN)50 b(Pint)e Fa(sourcewsid)g Fq(source)11 Xb(workstation)f(identi\256er)n(.)25 2175 y(IN)50 b(Pint)e Fa(destwsid)88 Xb Fq(destination)9 b(workstation)h(identi\256er)n(.)0 2251 Xy(This)h(function)f(copies)h(the)h(interior)d(bundle)i(table)g(from)g X(workstation)e Fi(sourcewsid)k Fq(to)e(workstation)f Fi(destwsid)p XFq(.)p 1386 2346 480 2 v 1386 2425 2 80 v 1400 2400 a Fb X(ptk_copyinvis\256lter)p 1864 2425 V 1386 2427 480 2 v 0 2501 Xa Fq(void)g Fp(ptk_copyinvis\256lter)h Fq(\()g(Pint)f Fa(sourcewsid)p XFq(,)g(Pint)g Fa(destwsid)g Fq(\))25 2590 y(IN)50 b(Pint)e XFa(sourcewsid)g Fq(source)11 b(workstation)f(identi\256er)n(.)25 X2640 y(IN)50 b(Pint)e Fa(destwsid)88 b Fq(destination)9 b(workstation)h X(identi\256er)n(.)0 2715 y(This)h(function)f(copies)h(the)h(invisibilt)o(y)c X(\256lter)j(from)g(workstation)f Fi(sourcewsid)j Fq(to)e(workstation)e XFi(destwsid)p Fq(.)0 2956 y(13th)22 b(May)m(,)12 b(1992)636 Xb(89)839 b(2.01)p eop X%%Page: 90 91 Xbop 0 -137 a Fq(PHIGS)11 b(T)m(oolkit)f(User)i(Manual)1235 Xb(PTK/100)p 1410 -19 457 2 v 1410 60 2 80 v 1424 35 a Fb(ptk_copylinet)o(abl V) Xo(e)p 1864 60 V 1410 62 457 2 v 0 136 a Fq(void)10 b Fp(ptk_copylinetable)h XFq(\()g(Pint)f Fa(sourcewsid)p Fq(,)f(Pint)i Fa(destwsid)e XFq(\))25 225 y(IN)50 b(Pint)e Fa(sourcewsid)g Fq(source)11 Xb(workstation)f(identi\256er)n(.)25 275 y(IN)50 b(Pint)e Fa(destwsid)88 Xb Fq(destination)9 b(workstation)h(identi\256er)n(.)0 350 y(This)h(function) Vf X(copies)h(the)h(polyline)d(bundle)i(table)g(from)g(workstation)e XFi(sourcewsid)k Fq(to)e(workstation)e Fi(destwsid)p Fq(.)p X1330 447 537 2 v 1330 526 2 80 v 1344 501 a Fb(ptk_copymarkert)o(abl)o(e)p X1864 526 V 1330 528 537 2 v 0 602 a Fq(void)h Fp(ptk_copymarkertable)i XFq(\()f(Pint)f Fa(sourcewsid)p Fq(,)g(Pint)g Fa(destwsid)g XFq(\))25 691 y(IN)50 b(Pint)e Fa(sourcewsid)g Fq(source)11 Xb(workstation)f(identi\256er)n(.)25 741 y(IN)50 b(Pint)e Fa(destwsid)88 Xb Fq(destination)9 b(workstation)h(identi\256er)n(.)0 816 y(This)h(function) Vf X(copies)h(the)h(polymarker)e(bundle)h(table)g(from)g(workstation)e XFi(sourcewsid)14 b Fq(to)c(workstation)g Fi(destwsid)p Fq(.)p X1426 913 440 2 v 1426 992 2 80 v 1440 967 a Fb(ptk_copypattabl)o(e)p X1864 992 V 1426 994 440 2 v 0 1068 a Fq(void)g Fp(ptk_copypattable)h XFq(\()g(Pint)f Fa(sourcewsid)p Fq(,)g(Pint)g Fa(destwsid)g XFq(\))25 1157 y(IN)50 b(Pint)e Fa(sourcewsid)g Fq(source)11 Xb(workstation)f(identi\256er)n(.)25 1207 y(IN)50 b(Pint)e Fa(destwsid)88 Xb Fq(destination)9 b(workstation)h(identi\256er)n(.)0 1282 Xy(This)h(function)f(copies)h(the)h(pattern)e(bundle)h(table)g(from)g X(workstation)e Fi(sourcewsid)k Fq(to)e(workstation)f Fi(destwsid)p XFq(.)p 1327 1379 540 2 v 1327 1458 2 80 v 1341 1433 a Fb(ptk_copypostedstruc V) Xo(t)p 1864 1458 V 1327 1460 540 2 v 0 1534 a Fq(void)g Fp X(ptk_copypostedstruct)i Fq(\()g(Pint)e Fa(sourcewsid)p Fq(,)f(Pint)i XFa(destwsid)e Fq(\))25 1623 y(IN)50 b(Pint)e Fa(sourcewsid)g XFq(source)11 b(workstation)f(identi\256er)n(.)25 1673 y(IN)50 Xb(Pint)e Fa(destwsid)88 b Fq(destination)9 b(workstation)h(identi\256er)n(.) V0 X1748 y(This)h(function)f(posts)h(all)g(the)g(structures)g(already)g(posted)g X(to)g(workstation)e Fi(sourcewsid)k Fq(to)e(workstation)e Fi(destwsid)p XFq(.)p 1410 1845 457 2 v 1410 1924 2 80 v 1424 1899 a Fb(ptk_copytextt)o(abl V) Xo(e)p 1864 1924 V 1410 1926 457 2 v 0 2000 a Fq(void)h Fp(ptk_copytexttable) Vh XFq(\()g(Pint)f Fa(sourcewsid)p Fq(,)g(Pint)g Fa(destwsid)g XFq(\))25 2089 y(IN)50 b(Pint)e Fa(sourcewsid)g Fq(source)11 Xb(workstation)f(identi\256er)n(.)25 2139 y(IN)50 b(Pint)e Fa(destwsid)88 Xb Fq(destination)9 b(workstation)h(identi\256er)n(.)0 2214 Xy(This)h(function)f(copies)h(the)h(text)e(bundle)h(table)g(from)g X(workstation)e Fi(sourcewsid)k Fq(to)e(workstation)f Fi(destwsid)p XFq(.)p 1383 2311 484 2 v 1383 2390 2 80 v 1397 2365 a Fb(ptk_copyviewtabl)o X(e)p 1864 2390 V 1383 2392 484 2 v 0 2466 a Fq(void)g Fp(ptk_copyviewtable)h XFq(\()g(Pint)f Fa(sourcewsid)p Fq(,)g(Pint)g Fa(destwsid)g XFq(\))25 2555 y(IN)50 b(Pint)e Fa(sourcewsid)g Fq(source)11 Xb(workstation)f(identi\256er)n(.)25 2605 y(IN)50 b(Pint)e Fa(destwsid)88 Xb Fq(destination)9 b(workstation)h(identi\256er)n(.)0 2680 Xy(This)h(function)f(copies)h(the)h(view)f(table)g(from)g(workstation)e XFi(sourcewsid)14 b Fq(to)c(workstation)g Fi(destwsid)p Fq(.)0 X2956 y(13th)22 b(May)m(,)12 b(1992)636 b(90)839 b(2.01)p eop X%%Page: 91 92 Xbop 0 -137 a Fq(PHIGS)11 b(T)m(oolkit)f(User)i(Manual)1235 Xb(PTK/100)p 1393 -19 474 2 v 1393 60 2 80 v 1407 35 a Fb(ptk_copywssttable)p X1864 60 V 1393 62 474 2 v 0 136 a Fq(void)10 b Fp(ptk_copywssttable)h XFq(\()g(Pint)g Fa(sourcewsid)p Fq(,)e(Pint)h Fa(destwsid)g XFq(\))25 225 y(IN)50 b(Pint)e Fa(sourcewsid)g Fq(source)11 Xb(workstation)f(identi\256er)n(.)25 275 y(IN)50 b(Pint)e Fa(destwsid)88 Xb Fq(destination)9 b(workstation)h(identi\256er)n(.)0 350 y(This)16 Xb(function)e(copies)i(the)g(workstation)e(colour)n(,)j(polyline)d(bundle,)i X(polymarker)g(bundle,)g(interior)e(bundle,)j(edge)f(bun-)0 X400 y(dle,)c(text)e(bundle,)h(pattern)g(bundle)f(and)h(view)h(tables)f(from) Vg X(workstation)e Fi(sourcewsid)k Fq(to)e(workstation)f Fi(destwsid)p XFq(.)p 1403 497 464 2 v 1403 576 2 80 v 1417 551 a Fb(ptk_countchildre)o(n)p X1864 576 V 1403 578 464 2 v 0 652 a Fq(Pint)g Fp(ptk_countchildr)o(en)j XFq(\()e(Pint)f Fa(stid)g Fq(\))25 752 y(IN)50 b(Pint)e Fa(stid)h XFq(structure)11 b(identi\256er)n(.)0 851 y(The)16 b(function)d(returns)h(the V) Xh(number)g(of)f(structures)h(executed)g(by)g(structure)f Fi(stid)p XFq(.)27 b(This)14 b(is)h(the)g(number)g(of)f(direct)h(exe-)0 X901 y(cute)d(elements)g(in)e(the)h(structure.)p 1297 998 570 X2 v 1297 1077 2 80 v 1311 1052 a Fb(ptk_countuniqchi)o(ldre)o(n)p X1864 1077 V 1297 1079 570 2 v 0 1153 a Fq(Pint)f Fp(ptk_countuniqchildr)o(en V) Xi Fq(\()g(Pint)e Fa(stid)g Fq(\))25 1253 y(IN)50 b(Pint)e Fa(stid)h XFq(structure)11 b(identi\256er)n(.)0 1352 y(This)16 b(function)f(returns)h X(the)g(number)g(of)g(unique)g(children)f(of)h(structure)g Fi(stid)p XFq(.)31 b(Thus,)18 b(if)e(a)h(structure)f(executed)h(struc-)0 X1402 y(tures)e(A,)g(B)g(and)g(C,)g(it)f(would)f(have)j(3)f(unique)f X(children,)h(regardless)g(of)g(how)f(many)h(times)g(each)h(of)f(A,)g(B)g(and V) Xg(C)f(were)0 1452 y(executed.)p 1542 1549 324 2 v 1542 1628 X2 80 v 1556 1603 a Fb(ptk_delelem)p 1864 1628 V 1542 1630 324 X2 v 0 1704 a Fq(void)c Fp(ptk_delelem)h Fq(\()h(Pint)e Fa(numelems)g XFq(\))25 1804 y(IN)50 b(Pint)e Fa(numelems)h Fq(number)11 b(of)g(elements)h X(to)f(delete.)0 1904 y(This)f(function)e(deletes)i(the)g Fi(numelms)h XFq(elements)g(from)f(the)f(open)h(structure,)g(starting)f(at)h(the)f(element V) Xi(pointer)n(.)i(If)d Fi(numelems)0 1953 y Fq(is)h(0,)h(all)f(elements)h(up)e X(to)h(the)g(end)h(of)f(the)g(structure)g(are)h(deleted.)p 1439 X2051 427 2 v 1439 2130 2 80 v 1454 2104 a Fb(ptk_delelem)o(typ)o(e)p X1864 2130 V 1439 2132 427 2 v 0 2206 a Fq(void)e Fp(ptk_delelemtype)h XFq(\()h(Pint)e Fa(stid)p Fq(,)h(Pint)f Fa(lenlst)p Fq(,)g(Peltype)h(*)p XFa(eltypelst)e Fq(\))25 2295 y(IN)50 b(Pint)138 b Fa(stid)123 Xb Fq(structure)11 b(identi\256er)n(.)25 2344 y(IN)50 b(Pint)138 Xb Fa(lenlst)95 b Fq(length)10 b(of)h(element)h(type)f(list.)25 X2394 y(IN)50 b(Peltype)10 b(*)50 b Fa(eltypelst)d Fq(list)10 Xb(of)h(element)h(types)f(to)g(delete.)0 2463 y(This)g(function)f(deletes)i X(every)f(element)h(in)f(structure)g Fi(stid)p Fq(,)h(whose)f(type)g(matches) Vi X(one)e(of)g(the)g(types)g(in)g Fi(eltypelst)1866 2285 y Fq(.)0 X2956 y(13th)22 b(May)m(,)12 b(1992)636 b(91)839 b(2.01)p eop X%%Page: 92 93 Xbop 0 -137 a Fq(PHIGS)11 b(T)m(oolkit)f(User)i(Manual)1235 Xb(PTK/100)p 1343 -19 523 2 v 1343 60 2 80 v 1357 35 a Fb(ptk_drawcolourtabl) Vo X(e)p 1864 60 V 1343 62 523 2 v 0 136 a Fq(void)10 b Fp(ptk_drawcolourtable)h XFq(\()g(Pint)g Fa(stid)p Fq(,)g(Pint)f Fa(llim)p Fq(,)i(pint)e XFa(ulim)h Fq(\))25 225 y(IN)50 b(Pint)e Fa(stid)59 b Fq(structure)10 Xb(identi\256er)n(.)25 275 y(IN)50 b(Pint)e Fa(llim)62 b Fq(lower)11 Xb(index)f(value)i(of)f(colour)f(table)h(range.)25 324 y(IN)50 Xb(Pint)e Fa(ulim)i Fq(upper)11 b(limit)f(of)h(colour)f(table)h(range..)0 X393 y(This)g(function)f(draws)i(a)g(rectangular)f(array)h(of)f(boxes)g X(representing)g(the)g(range)h Fi(llim)g Fq(to)f Fi(ulim)h Fq(of)f(the)h +-+-+-+-+-+-+-+- END OF PART 109 +-+-+-+-+-+-+-+-