Werner F. Bruhin wrote:
Very surprised/pleased with the difference in speed of FC (attached) when comparing it with my FC2 trial.
well, I originally wrote FloatCanvas with the intention of using it for potentially large data sets, and on slower hardware than we have these days, so it's pretty bare bones.
Also, GCs are slower than DCs anyway.
Figured out how to move (by copy/pasting :)) the "frame" of a rack, but I am unsure on how to move the "children" i.e. the bottles (circles). I guess that I could use the group to get its members and then move them.
The Group object has a Move() method, which essentially does just that.So all you need to do is make a MovingGroup DrawObject, and use that just like your rectangle.
Edited code enclosed.Now that I look at it, I really should just add the GetOutlinePoints() method to the DrawObject base class, and then any object could be moved...
-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]
winerackdesignerFC1.py
Description: application/python
_______________________________________________ FloatCanvas mailing list [email protected] http://paulmcnett.com/cgi-bin/mailman/listinfo/floatcanvas
