Context for a MapBox GL style conversion operation.
More...
#include <qgsmapboxglstyleconverter.h>
Context for a MapBox GL style conversion operation.
- Warning
- This is private API only, and may change in future QGIS versions
- Since
- QGIS 3.16
Definition at line 41 of file qgsmapboxglstyleconverter.h.
◆ clearWarnings()
void QgsMapBoxGlStyleConversionContext::clearWarnings |
( |
| ) |
|
|
inline |
◆ layerId()
QString QgsMapBoxGlStyleConversionContext::layerId |
( |
| ) |
const |
◆ pixelSizeConversionFactor()
double QgsMapBoxGlStyleConversionContext::pixelSizeConversionFactor |
( |
| ) |
const |
◆ pushWarning()
void QgsMapBoxGlStyleConversionContext::pushWarning |
( |
const QString & |
warning | ) |
|
◆ setLayerId()
void QgsMapBoxGlStyleConversionContext::setLayerId |
( |
const QString & |
value | ) |
|
◆ setPixelSizeConversionFactor()
void QgsMapBoxGlStyleConversionContext::setPixelSizeConversionFactor |
( |
double |
sizeConversionFactor | ) |
|
◆ setSprites() [1/2]
void QgsMapBoxGlStyleConversionContext::setSprites |
( |
const QImage & |
image, |
|
|
const QString & |
definitions |
|
) |
| |
◆ setSprites() [2/2]
void QgsMapBoxGlStyleConversionContext::setSprites |
( |
const QImage & |
image, |
|
|
const QVariantMap & |
definitions |
|
) |
| |
◆ setTargetUnit()
Sets the target unit type.
By default this is QgsUnitTypes::RenderPixels in order to exactly match the original style rendering. But rendering in pixels can cause issues on hidpi displays or with print layouts, so setting a target unit of QgsUnitTypes::Millimeters or another real-world unit type is often more appropriate.
If setting to a non-pixel unit, be sure to call setPixelSizeConversionFactor() in order to setup an appropriate pixel-to-unit conversion factor to scale converted sizes using. E.g. if the target unit is millimeters, the size conversion factor should be set to a pixel-to-millimeter value.
- See also
- targetUnit()
Definition at line 3553 of file qgsmapboxglstyleconverter.cpp.
◆ spriteDefinitions()
QVariantMap QgsMapBoxGlStyleConversionContext::spriteDefinitions |
( |
| ) |
const |
◆ spriteImage()
QImage QgsMapBoxGlStyleConversionContext::spriteImage |
( |
| ) |
const |
◆ targetUnit()
Returns the target unit type.
By default this is QgsUnitTypes::RenderPixels in order to exactly match the original style rendering. But rendering in pixels can cause issues on hidpi displays or with print layouts, so setting a target unit of QgsUnitTypes::Millimeters or another real-world unit type is often more appropriate.
- See also
- setTargetUnit()
Definition at line 3548 of file qgsmapboxglstyleconverter.cpp.
◆ warnings()
QStringList QgsMapBoxGlStyleConversionContext::warnings |
( |
| ) |
const |
|
inline |
The documentation for this class was generated from the following files: