Hi, 
I just got hurt by a relocated symbol again. The whole business of symbol 
translation is a pain and a likely source of error. Why not introduce the 
notion of an explicit origin in the definition of symbols? You put the 
origin at some outstanding point of the symbol and keep it there. This 
would allow to put the symbol somewhere in the middle of the canvas. No 
need to relocate the symbol just because of some additional graphics at 
the bottom. No more broken schematics because of such cosmetic shifts.

At first glance, an origin seems to imply additional offset calculation 
for each and every coordinate. In reality this has to be done only once 
when a symbol is loaded. The coords relative to the origin of the symbol 
would be cached. The rest of the code could remain unchanged. 

A different approach would be to allow negative coords in *.sch format. 
In that case the origin remains always remains at (0,0) but the viewport 
might be shifted to extend into the negative.

Any thoughts? 

---<(kaimartin)>---
-- 
Kai-Martin Knaak                                  tel: +49-511-762-2895
Universität Hannover, Inst. für Quantenoptik      fax: +49-511-762-2211 
Welfengarten 1, 30167 Hannover           http://www.iqo.uni-hannover.de
GPG key:    http://pgp.mit.edu:11371/pks/lookup?search=Knaak+kmk&op=get



_______________________________________________
geda-dev mailing list
[email protected]
http://www.seul.org/cgi-bin/mailman/listinfo/geda-dev

Reply via email to