[Drawkit] DKGrid setSpan in grid distances

Graham Cox graham.cox at bigpond.com
Sun Jun 8 23:48:27 PDT 2008


By definition, span is always 1 of however many points you want, so if  
this is done, it would always be 1. Tthe span value *is* the  
conversion factor.

I think some of the method additions that have come in since the grid  
layer class was originally written may be causing confusion - I'll see  
if they ought to be simplified and/or have their names altered to make  
their function more obvious.

cheers, Graham


On 6 Jun 2008, at 3:27 am, Brad Larson wrote:

> If I could make a suggestion, I think that it would be cleaner if  
> DKGrid's setSpan and span methods took and returned realspace  
> distances in the current units, rather than the Quartz points that  
> are used now.  The user would most likely want to work in their  
> coordinate space and DKGrid knows all of the conversion factors.  I  
> currently do something like [grid setSpan:[grid  
> quartzDistanceForGridDistance:newValue] divisions:10 majors:2] in  
> several places and this simple change would make for simpler code.
>
> ______________________
> Brad Larson
> SonoPlot, Inc.
> 3030 Laura Lane, Suite 120
> Middleton, WI 53562
>
>
>
> _______________________________________________
> Drawkit mailing list
> Drawkit at lists.apptree.net
> http://lists.apptree.net/listinfo.cgi/drawkit-apptree.net



More information about the Drawkit mailing list