On Mon, 2007-08-27 at 11:42 -0700, Christopher Barker wrote: > Tim Ansell wrote: > > What I want to do, is display on the starmap little pie graphs which > > show the concentration of resources in each system. The size of the > > pie will show the relative amount of resource in each system (big == > > more resources, smaller == less resources), while the pie pieces show > > the break down (IE Red == Resource 1, Blue == Resource 2). > > > > Thus the pie graph's diameter doesn't change relative to the zoom > > level. > > Go it. There are a number of Objects that have a "Scaled" and "UnScaled" > version: Points vs. Circles, Text vs. ScaledText. I guess I should have > a cleaner naming scheme, and/or combine the code more (having "scaled" > be a keyword flag or something)
I think separate classes would be okay, I would also be happy with a keyword flag. > > On another note, I also have the following objects, * "PolygonStatic" > > which is like a point in that it never changes size, just it > > position. (You can see it used for the little ship icons and the Red > > arrow). * "RelativePoint" exactly like a normal point but can also > > have a *pixel* offset. (I use this to draw the little orbit dots in > > the above screenshots.) > > > > Are either of them useful to you? > > Yes, they sure are. Did you end up getting a copy of these? They are in the same place as the PieChart stuff. Tim Ansell _______________________________________________ FloatCanvas mailing list [email protected] http://mail.mithis.com/cgi-bin/mailman/listinfo/floatcanvas
