=================================================================== RCS file: /home/cvs/OpenXM/src/asir-doc/parts/process.texi,v retrieving revision 1.5 retrieving revision 1.6 diff -u -p -r1.5 -r1.6 --- OpenXM/src/asir-doc/parts/process.texi 2000/09/25 05:12:51 1.5 +++ OpenXM/src/asir-doc/parts/process.texi 2000/11/13 00:16:34 1.6 @@ -1,4 +1,4 @@ -@comment $OpenXM: OpenXM/src/asir-doc/parts/process.texi,v 1.4 2000/01/13 08:29:56 noro Exp $ +@comment $OpenXM: OpenXM/src/asir-doc/parts/process.texi,v 1.5 2000/09/25 05:12:51 noro Exp $ \BJP @node $BJ,;67W;;(B,,, Top @chapter $BJ,;67W;;(B @@ -506,6 +506,7 @@ input @code{quit}. * ox_get_serverinfo:: * generate_port try_bind_listen try_connect try_accept register_server:: * ifplot conplot plot plotover:: +* open_canvas clear_canvas draw_obj:: @end menu \JP @node ox_launch ox_launch_nox ox_shutdown,,, $BJ,;67W;;$K4X$9$k4X?t(B @@ -1913,12 +1914,14 @@ identifier @var{id} is returned. @code{ifplot()} $B$O(B, 2 $BJQ?t4X?t(B @var{func} $B$Ne$G$NNmE@$N(B $B%0%i%U$NI=<($r9T$&(B. @code{conplot()} $B$O(B, $BF1MM$N0z?t$KBP$7(B, $BEy9b@~$NI=<($r9T$&(B. @code{plot()} $B$O(B 1 $BJQ?t4X?t$N(B -$B%0%i%U$NI=<($r9T$&(B. Windows $BHG$O8=>u$G$OL$%5%]!<%H$G$"$k(B. +$B%0%i%U$NI=<($r9T$&(B. @item -UNIX $BHG$O(B, $B1s3V%W%m%;%9$K$h$je$G$O(B +@samp{ox_plot} $B$,(B, Windows $B>e$G$O(B @samp{engine} $B$,$3$l$i$N5!G=(B +$B$rDs6!$7$F$*$j(B, $B$3$l$i$O(B @b{Asir} $B$NI8=`%i%$%V%i%j%G%#%l%/%H%j$K$"$k(B. +$B$3$l$i$O(B @code{ox_launch()} $B$^$?$O(B @code{ox_launch_nox()} + $B$K$h$j5/F0$7$F$*$/I,MW$,$"$k(B. @item $B0z?t$NFb(B, @var{func} $B$OI,?\$G$"$k(B. $B$=$NB>$N0z?t$O%*%W%7%g%s$G$"$k(B. @@ -1927,7 +1930,7 @@ UNIX $BHG$O(B, $B1s3V%W%m%;%9$K$h$jH(B \EG @item References @fref{ox_launch ox_launch_nox ox_shutdown}, @fref{ox_reset ox_intr register_handler} +@end table + +\JP @node open_canvas clear_canvas draw_obj,,, $BJ,;67W;;$K4X$9$k4X?t(B +\EG @node open_canvas clear_canvas draw_obj,,, Functions for distributed computation +@subsection @code{open_canvas}, @code{clear_canvas}, @code{draw_obj} +@findex open_canvas +@findex clear_canvas +@findex draw_obj + +@table @t +@item open_canvas(@var{id}[,@var{geometry}]) +\JP :: $BIA2hMQ%&%#%s%I%&(B ($B%-%c%s%P%9(B) $B$r@8@.$9$k(B. +\EG :: Opens a canvas, which is a window for drawing objects. +@item clear_canvas(@var{id},@var{index}) +\JP :: $B%-%c%s%P%9$r%/%j%"$9$k(B. +\EG :: Clears a canvas. +@item draw_obj(@var{id},@var{index},@var{pointorsegment} [,@var{color}]) +\JP :: $B%-%c%s%P%9>e$KE@$^$?$O@~J,$rIA2h$9$k(B. +\EG :: Draws a point or a line segment on a canvas. +@end table + +@table @var +@item return +0 +@item id, index, color +\JP $B@0?t(B +\EG integer +@item pointorsegment +\JP $B%j%9%H(B +\EG list +@end table + +@itemize @bullet +@item +\BJP +$B$3$l$i$O(B OpenXM $B%5!<%P(B @samp{ox_plot} (Windows $B>e$G$O(B @samp{engine}) +$B$K$h$jDs6!$5$l$k(B. +\E +\BEG +These functions are supplied by the OpenXM server @samp{ox_plot} +(@samp{engine} on Windows). +\E +@item +\BJP +@code{open_canvas} $B$O(B, $BIA2hMQ$N%&%#%s%I%&(B($B%-%c%s%P%9(B)$B$r@8@.$9$k(B. +@var{geometry} $B$K$h$j%&%#%s%I%&$N%5%$%:$r(B pixel $BC10L$G(B @var{[x,y]} $B$G;XDj$9$k(B. +default size $B$O(B @var{[}@code{300},@code{300}@var{]}. +$B%-%c%s%P%9$N<1JL;R$H$7$F(B, $B@0?tCM$r(B OpenXM $B%5!<%P$N%9%?%C%/$K(B push $B$9$k(B. +$B$3$N<1JL;R$O(B @code{draw_obj} $B$N8F$S=P$7$KI,MW$G$"$j(B, @code{ox_pop_cmo} $B$K(B +$B$h$jl9gE@$N:BI8(B, @var{[x,y,u,v]} $B$N>l9g(B @var{[x,y]}, +@var{[u,v]} $B$r7k$V@~J,$rI=$9$H8+$J$5$l$k(B. +$B%-%c%s%P%9$N:BI8$O(B, $B:8>e6y$r86E@$H$7$F2#J}8~$K(B +$BBh0l:BI8(B, $B=DJ}8~$KBhFs:BI8$r$H$k(B. $BCM$O(B pixel $BC10L$G;XDj$9$k(B. +@var{color} $B$N;XDj$,$"$k>l9g(B, @var{color/65536} mod 256, +@var{color/256} mod 256, @var{color} mod 256 $B$r$=$l$>$l(B Red, Green, Blue +$B$NCM(B ($B:GBg(B 255) $B$H$_$J$9(B. +\E +\BEG +@code{draw_obj_canvas} draws a point or a line segment on +a canvas specified by a server id @var{id} and a canvas id @var{index}. +If @var{pointorsegment} is @var{[x,y]}, it is regarded as a point. +If @var{pointorsegment} is @var{[x,y,u,v]}, it is regarded +as a line segment which connects @var{[x,y]} and @var{[u,v]}. +If @var{color} is specified, @var{color/65536} mod 256, +@var{color/256} mod 256, @var{color} mod 256 are regarded as the vaules +of Red, Green, Blue (Max. 255) respectively. +\E +@end itemize + +@example +[182] Id=ox_launch_nox(0,"ox_plot"); +0 +[183] open_canvas(Id); +0 +[184] Ind=ox_pop_cmo(Id); +0 +[185] draw_obj(Id,Ind,[100,100]); +0 +[186] draw_obj(Id,Ind,[200,200],0xffff); +0 +[187] draw_obj(Id,Ind,[10,10,50,50],0xff00ff); +0 +[188] clear_canvas(Id,Ind); +0 +@end example + +@table @t +\JP @item $B;2>H(B +\EG @item References +@fref{ox_launch ox_launch_nox ox_shutdown}, @fref{ox_reset ox_intr register_handler}, @fref{ox_pop_cmo ox_pop_local}. @end table