Hey Ben, > I know this is semi off-topic, and probably a repeat of old news, but I want > to remind everyone that if the objects are similar to make use of the "list" > drawing routines (in my original copy of FC - Chris put a note about this; > which I ran with). They increase speed dramatically when objects are the > same.
Good idea -- when I first added the list drawing routines, they really only helped a lot with really simple objects: points, line segments, but maybe drawing code is faster now, so that Python overhead makes more difference. A snippit from my modified FloatCanvas._DrawObjects routine: Hmm -- I probably would not have modified FloatCanvas._DrawObjects, but rather created a custom DrawObject that contained your Branches, Nodes, and Tees, and called the *List drawing routines in its _Draw method. Kind of a fancier version of the PointSet DrawObject. You also might want to look at the PieChart object for a kind of compound object example. -Chris -- Christopher Barker, Ph.D. Oceanographer Emergency Response Division NOAA/NOS/OR&R (206) 526-6959 voice 7600 Sand Point Way NE (206) 526-6329 fax Seattle, WA 98115 (206) 526-6317 main reception [email protected] _______________________________________________ FloatCanvas mailing list [email protected] http://paulmcnett.com/cgi-bin/mailman/listinfo/floatcanvas
