← Back to team overview

kicad-developers team mailing list archive

Re: wxGCDC (was Re: Re: R2217 bugs)

 

These geometric transforms must be handled by Kicad code, not by a Graphic Context.
Hit-testing needs this, but also plotting, and mainly DRC calculations.




I'd like for my question about hit-testing to remain open. There may be more than one answer coming, and it is not necessary to shut off the flow of ideas too early, simply because there is often more than one way to do something.

Programs like Inkscape and the like run into a similar problem and have solved it. I may have even solved this earlier in my career (but I am too busy to go back and look). My point is there is no cost to putting several ideas on the table if folks have them and they can solve the problem with a good cost to benefit ratio.

Hit testing does not have to be fast, since it is usually in response to a mouse click and the user can only click so fast. Using a transform in the hit test is not out of the question, but as I said, I would like some younger brain power on this.

Dick


As an example among perhaps several:

Maybe objects could hold a "fully transformed" set of coordinates as well as their untransformed coordinates. The fully transformed ones would be updated on an edge condition to reflect the object's final position within the DrawPanel or graphics pane.

At least this way transforms could still be used for drawing.

But I don't think this should be the end of the idea stream.








References