[Qgis-developer] QgsMapRenderer and QgsMapSettings relation
Sandro Santilli
strk at keybit.net
Tue Nov 25 10:24:28 PST 2014
I've found code dealing with aspect-ratio adjustments in two places:
QgsMapSettings::updateDerived() and QgsMapRenderer::adjustExtentToSize()
As I'm trying to deal with viewport rotation, any such duplication makes
the work harder as things need to be changed in many different places.
Similar thing happens for QgsMapRenderer::setExtent, which is also
present in QgsMapSettings.
As QgsMapRenderer is actually initialized with a QgsMapSetting object,
should it always use services exposed by that class rather than re-doing
things locally ? Or what am I missing ?
Thanks in advance.
--strk;
() ASCII ribbon campaign -- Keep it simple !
/\ http://strk.keybit.net/rants/ascii_mails.txt
More information about the Qgis-developer
mailing list