
Geometry : 
Subject: [geometry] breaking change on transform strategies
From: Barend Gehrels (barend_at_[hidden])
Date: 20130812 17:44:52
Hi,
As a followup of the new approach on strategies, started by Bruno (see
earlier mail about distance strategies), the transform strategies are
now also updated. This means the pointtype are not templateparameter
of the strategy anymore, but of the membermethod apply.
In most usecases, as a library user, you have to do nothing. So
probably everything will compile. Also if you are using the transform
algorithm, it will work. Also if you are using svg_mapper (using
underlying transformations), it will work.
If you specify transformation strategies explicitly, such as translate,
scale or rotate, or the map transformer or the inverse transformer,
please update the source. Instead of the two pointtypes, specify the
calculationtype (usually double) and the dimensions (often 2). The same
strategy will now work for any pointtype. If you don't update the
sources, you will get a compilation error, so you will be reminded.
Related changes:
 the svg mapper will now accept any pointtype (because transformation
is later bound to pointtype)
 the svg mapper now also accepts integer pointtypes
Regards, Barend
Geometry list run by mateusz at loskot.net