Hi all,
Now that 0.48 is branched off, we can work towards updating our 2geom copy. I think the most problematic 2geom change is the renaming of "Geom::Matrix" to "Geom::Affine". Nathan, I read in one of your mails that you already worked on renaming those in Inkscape?
Ciao, Johan
2010/7/21 <J.B.C.Engelen@...1578...>:
Hi all,
Now that 0.48 is branched off, we can work towards updating our 2geom copy. I think the most problematic 2geom change is the renaming of "Geom::Matrix" to "Geom::Affine".
99% of cases can be handled by a single command: find src -name '*.cpp' -or -name '*.h' -exec sed -e 's/Geom::Matrix/Geom::Affine/g' -i {} ;
After this we might need to fix places that have "using namespace Geom". Fortunately this is confined to LPEs.
The more important change is that transform classification methods have slightly changed semantics, as they will now consider an identity transform to be a rotation, uniform scale, etc. This was done to match the fact that every transformation class in transforms.h can represent an identity transformation. Places that expect the old behavior should be changed to use isNonzeroRotation() etc. instead of isRotation(). Some methods also changed names, for example without_translation() was renamed to match 2Geom conventions and is now called withoutTranslation().
Regards, Krzysztof
participants (2)
-
unknown@example.com
-
Krzysztof Kosiński