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'm afraid I'm in the tab camp. Feel free to convert to 4 spaces if > > you want to include in the FloatCanvas core. > > Will do, we definitely need the same style in all included code. > > > 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.
Just incase you haven't found it for your self. Here is a link, http://git.thousandparsec.net/gitweb/gitweb.cgi?p=tpclient-pywx.git;a=tree;f=extra/wxFloatCanvas;h=bdef77977263662152510fab01fc68ca1f14a2bc;hb=127e0928aa6874cdb8c26cf6435150dd825196cb Hope it helps. Tim Ansell _______________________________________________ FloatCanvas mailing list [email protected] http://mail.mithis.com/cgi-bin/mailman/listinfo/floatcanvas
