16 #ifndef QGSMAPSETTINGS_H
17 #define QGSMAPSETTINGS_H
22 #include <QStringList>
69 QSize outputSize()
const;
71 void setOutputSize(
const QSize& size );
76 double rotation()
const;
80 void setRotation(
double degrees );
84 int outputDpi()
const;
86 void setOutputDpi(
int dpi );
103 void setCrsTransformEnabled(
bool enabled );
105 bool hasCrsTransformEnabled()
const;
131 DrawEditingInfo = 0x02,
132 ForceVectorOutput = 0x04,
133 UseAdvancedEffects = 0x08,
135 UseRenderingOptimization = 0x20,
136 DrawSelection = 0x40,
139 Q_DECLARE_FLAGS( Flags, Flag )
142 void setFlags( Flags flags );
144 void setFlag( Flag flag,
bool on = true );
148 bool testFlag( Flag flag ) const;
151 void setOutputImageFormat(
QImage::Format format ) { mImageFormat = format; }
156 bool hasValidSettings()
const;
163 double mapUnitsPerPixel()
const;
165 double scale()
const;
266 void updateDerived();
269 Q_DECLARE_OPERATORS_FOR_FLAGS( QgsMapSettings::Flags )
272 #endif // QGSMAPSETTINGS_H
const QgsDatumTransformStore & datumTransformStore() const
A rectangle specified with double values.
Base class for all map layer types.
QgsDatumTransformStore & datumTransformStore()
QgsRectangle mVisibleExtent
extent with some additional white space that matches the output aspect ratio
QgsMapToPixel mMapToPixel
Abstract base class for map rendering implementations.
QColor selectionColor() const
Get color that is used for drawing of selected vector features.
QgsCoordinateReferenceSystem mDestCRS
QMap< QString, QString > mLayerStyleOverrides
const QgsMapToPixel & mapToPixel() const
The QgsMapSettings class contains configuration for rendering of the map.
Perform transforms between map coordinates and device coordinates.
QImage::Format mImageFormat
bool mValid
whether the actual settings are valid (set in updateDerived())
Flag
Enumeration of flags that adjust the way how map is rendered.
QgsScaleCalculator mScaleCalculator
A class to represent a point.
QColor backgroundColor() const
Get the background color of the map.
Calculates scale for a given combination of canvas size, map extent, and monitor dpi.
void setBackgroundColor(const QColor &color)
Set the background color of the map.
void setSelectionColor(const QColor &color)
Set color that is used for drawing of selected vector features.
QImage::Format outputImageFormat() const
format of internal QImage, default QImage::Format_ARGB32_Premultiplied
Class for storing a coordinate reference system (CRS)
UnitType
Map units that qgis supports.
QgsDatumTransformStore mDatumTransformStore