QGIS API Documentation
2.14.0-Essen
|
#include <qgssymbollayerv2utils.h>
Static Public Member Functions | |
static void | blurImageInPlace (QImage &image, QRect rect, int radius, bool alphaOnly) |
Blurs an image in place, e.g. More... | |
static void | clearSymbolMap (QgsSymbolV2Map &symbols) |
static QColor | colorFromMimeData (const QMimeData *data, bool &hasAlpha) |
Attempts to parse mime data as a color. More... | |
static QgsNamedColorList | colorListFromMimeData (const QMimeData *data) |
Attempts to parse mime data as a list of named colors. More... | |
static QMimeData * | colorListToMimeData (const QgsNamedColorList &colorList, const bool allFormats=true) |
Creates mime data from a list of named colors. More... | |
static QIcon | colorRampPreviewIcon (QgsVectorColorRampV2 *ramp, QSize size) |
static QPixmap | colorRampPreviewPixmap (QgsVectorColorRampV2 *ramp, QSize size) |
static QMimeData * | colorToMimeData (const QColor &color) |
Creates mime data from a color. More... | |
static QString | colorToName (const QColor &color) |
Returns a friendly display name for a color. More... | |
static bool | convertPolygonSymbolizerToPointMarker (QDomElement &element, QgsSymbolLayerV2List &layerList) |
static double | convertToPainterUnits (const QgsRenderContext &c, double size, QgsSymbolV2::OutputUnit unit, const QgsMapUnitScale &scale=QgsMapUnitScale()) |
Converts a size from the specied units to painter units. More... | |
static void | createDisplacementElement (QDomDocument &doc, QDomElement &element, QPointF offset) |
static QgsSymbolLayerV2 * | createFillLayerFromSld (QDomElement &element) |
static bool | createFunctionElement (QDomDocument &doc, QDomElement &element, const QString &function) |
static void | createGeometryElement (QDomDocument &doc, QDomElement &element, const QString &geomFunc) |
static QgsSymbolLayerV2 * | createLineLayerFromSld (QDomElement &element) |
static QgsSymbolLayerV2 * | createMarkerLayerFromSld (QDomElement &element) |
static void | createOnlineResourceElement (QDomDocument &doc, QDomElement &element, const QString &path, const QString &format) |
static void | createOpacityElement (QDomDocument &doc, QDomElement &element, const QString &alphaFunc) |
static QgsRenderContext | createRenderContext (QPainter *p) |
Creates a render context for a pixel based device. More... | |
static void | createRotationElement (QDomDocument &doc, QDomElement &element, const QString &rotationFunc) |
static QDomElement | createSvgParameterElement (QDomDocument &doc, const QString &name, const QString &value) |
static bool | createSymbolLayerV2ListFromSld (QDomElement &element, QGis::GeometryType geomType, QgsSymbolLayerV2List &layers) |
static QDomElement | createVendorOptionElement (QDomDocument &doc, const QString &name, const QString &value) |
static QPainter::CompositionMode | decodeBlendMode (const QString &s) |
static Qt::BrushStyle | decodeBrushStyle (const QString &str) |
static QColor | decodeColor (const QString &str) |
static QgsMapUnitScale | decodeMapUnitScale (const QString &str) |
static QgsSymbolV2::OutputUnit | decodeOutputUnit (const QString &str) |
static Qt::PenCapStyle | decodePenCapStyle (const QString &str) |
static Qt::PenJoinStyle | decodePenJoinStyle (const QString &str) |
static Qt::PenStyle | decodePenStyle (const QString &str) |
static QPointF | decodePoint (const QString &str) |
static QVector< qreal > | decodeRealVector (const QString &s) |
static QgsSymbolV2::ScaleMethod | decodeScaleMethod (const QString &str) |
static int | decodeSldAlpha (const QString &str) |
static Qt::BrushStyle | decodeSldBrushStyle (const QString &str) |
static QFont::Style | decodeSldFontStyle (const QString &str) |
static int | decodeSldFontWeight (const QString &str) |
static Qt::PenCapStyle | decodeSldLineCapStyle (const QString &str) |
static Qt::PenJoinStyle | decodeSldLineJoinStyle (const QString &str) |
static QVector< qreal > | decodeSldRealVector (const QString &s) |
static QgsSymbolV2::OutputUnit | decodeSldUom (const QString &str, double *scaleFactor) |
static bool | displacementFromSldElement (QDomElement &element, QPointF &offset) |
static void | drawStippledBackground (QPainter *painter, QRect rect) |
static QString | encodeBrushStyle (Qt::BrushStyle style) |
static QString | encodeColor (const QColor &color) |
static QString | encodeMapUnitScale (const QgsMapUnitScale &mapUnitScale) |
static QString | encodeOutputUnit (QgsSymbolV2::OutputUnit unit) |
static QString | encodePenCapStyle (Qt::PenCapStyle style) |
static QString | encodePenJoinStyle (Qt::PenJoinStyle style) |
static QString | encodePenStyle (Qt::PenStyle style) |
static QString | encodePoint (QPointF point) |
static QString | encodeRealVector (const QVector< qreal > &v) |
static QString | encodeScaleMethod (QgsSymbolV2::ScaleMethod scaleMethod) |
static QString | encodeSldAlpha (int alpha) |
static QString | encodeSldBrushStyle (Qt::BrushStyle style) |
static QString | encodeSldFontStyle (QFont::Style style) |
static QString | encodeSldFontWeight (int weight) |
static QString | encodeSldLineCapStyle (Qt::PenCapStyle style) |
static QString | encodeSldLineJoinStyle (Qt::PenJoinStyle style) |
static QString | encodeSldRealVector (const QVector< qreal > &v) |
static QString | encodeSldUom (QgsSymbolV2::OutputUnit unit, double *scaleFactor) |
static double | estimateMaxSymbolBleed (QgsSymbolV2 *symbol) |
Returns the maximum estimated bleed for the symbol. More... | |
static bool | externalGraphicFromSld (QDomElement &element, QString &path, QString &mime, QColor &color, double &size) |
static void | externalGraphicToSld (QDomDocument &doc, QDomElement &element, const QString &path, const QString &mime, const QColor &color, double size=-1) |
static bool | externalMarkerFromSld (QDomElement &element, QString &path, QString &format, int &markIndex, QColor &color, double &size) |
static void | externalMarkerToSld (QDomDocument &doc, QDomElement &element, const QString &path, const QString &format, int *markIndex=nullptr, const QColor &color=QColor(), double size=-1) |
static QString | fieldOrExpressionFromExpression (QgsExpression *expression) |
Return a field name if the whole expression is just a name of the field . More... | |
static QgsExpression * | fieldOrExpressionToExpression (const QString &fieldOrExpression) |
Return a new valid expression instance for given field or expression string. More... | |
static bool | fillFromSld (QDomElement &element, Qt::BrushStyle &brushStyle, QColor &color) |
static void | fillToSld (QDomDocument &doc, QDomElement &element, Qt::BrushStyle brushStyle, const QColor &color=QColor()) |
static bool | functionFromSldElement (QDomElement &element, QString &function) |
static bool | geometryFromSldElement (QDomElement &element, QString &geomFunc) |
static QgsStringMap | getSvgParameterList (QDomElement &element) |
static QgsStringMap | getVendorOptionList (QDomElement &element) |
static bool | hasExternalGraphic (QDomElement &element) |
static bool | hasWellKnownMark (QDomElement &element) |
static QgsNamedColorList | importColorsFromGpl (QFile &file, bool &ok, QString &name) |
Imports colors from a gpl GIMP palette file. More... | |
static void | labelTextToSld (QDomDocument &doc, QDomElement &element, const QString &label, const QFont &font, const QColor &color=QColor(), double size=-1) |
static bool | lineFromSld (QDomElement &element, Qt::PenStyle &penStyle, QColor &color, double &width, Qt::PenJoinStyle *penJoinStyle=nullptr, Qt::PenCapStyle *penCapStyle=nullptr, QVector< qreal > *customDashPattern=nullptr, double *dashOffset=nullptr) |
static void | lineToSld (QDomDocument &doc, QDomElement &element, Qt::PenStyle penStyle, const QColor &color, double width=-1, const Qt::PenJoinStyle *penJoinStyle=nullptr, const Qt::PenCapStyle *penCapStyle=nullptr, const QVector< qreal > *customDashPattern=nullptr, double dashOffset=0.0) |
static double | lineWidthScaleFactor (const QgsRenderContext &c, QgsSymbolV2::OutputUnit u, const QgsMapUnitScale &scale=QgsMapUnitScale()) |
Returns the line width scale factor depending on the unit and the paint device. More... | |
static QStringList | listSvgFiles () |
Return a list of all available svg files. More... | |
static QStringList | listSvgFilesAt (const QString &directory) |
Return a list of svg files at the specified directory. More... | |
static QgsVectorColorRampV2 * | loadColorRamp (QDomElement &element) |
static QgsSymbolV2 * | loadSymbol (const QDomElement &element) |
Attempts to load a symbol from a DOM element. More... | |
template<class SymbolType > | |
static SymbolType * | loadSymbol (const QDomElement &element) |
Attempts to load a symbol from a DOM element and cast it to a particular symbol type. More... | |
static QgsSymbolLayerV2 * | loadSymbolLayer (QDomElement &element) |
static QgsSymbolV2Map | loadSymbols (QDomElement &element) |
static double | mapUnitScaleFactor (const QgsRenderContext &c, QgsSymbolV2::OutputUnit u, const QgsMapUnitScale &scale=QgsMapUnitScale()) |
Returns scale factor painter units -> map units. More... | |
static void | multiplyImageOpacity (QImage *image, qreal alpha) |
Multiplies opacity of image pixel values with a (global) transparency value. More... | |
static bool | needEllipseMarker (QDomElement &element) |
static bool | needFontMarker (QDomElement &element) |
static bool | needLinePatternFill (QDomElement &element) |
static bool | needMarkerLine (QDomElement &element) |
static bool | needPointPatternFill (QDomElement &element) |
static bool | needSvgFill (QDomElement &element) |
static bool | needSvgMarker (QDomElement &element) |
static QString | ogrFeatureStyleBrush (const QColor &fillColr) |
Create ogr feature style string for brush. More... | |
static QString | ogrFeatureStylePen (double width, double mmScaleFactor, double mapUnitsScaleFactor, const QColor &c, Qt::PenJoinStyle joinStyle=Qt::MiterJoin, Qt::PenCapStyle capStyle=Qt::FlatCap, double offset=0.0, const QVector< qreal > *dashPattern=nullptr) |
Create ogr feature style string for pen. More... | |
static bool | onlineResourceFromSldElement (QDomElement &element, QString &path, QString &format) |
static bool | opacityFromSldElement (QDomElement &element, QString &alphaFunc) |
static QColor | parseColor (const QString &colorStr, bool strictEval=false) |
Attempts to parse a string as a color using a variety of common formats, including hex codes, rgb and rgba strings. More... | |
static QList< QColor > | parseColorList (const QString &colorStr) |
Attempts to parse a string as a list of colors using a variety of common formats, including hex codes, rgb and rgba strings. More... | |
static QColor | parseColorWithAlpha (const QString &colorStr, bool &containsAlpha, bool strictEval=false) |
Attempts to parse a string as a color using a variety of common formats, including hex codes, rgb and rgba strings. More... | |
static QgsStringMap | parseProperties (QDomElement &element) |
static double | pixelSizeScaleFactor (const QgsRenderContext &c, QgsSymbolV2::OutputUnit u, const QgsMapUnitScale &scale=QgsMapUnitScale()) |
Returns scale factor painter units -> pixel dimensions. More... | |
static bool | pointInPolygon (const QPolygonF &points, QPointF point) |
Calculate whether a point is within of a QPolygonF. More... | |
static QPointF | pointOnLineWithDistance (QPointF startPoint, QPointF directionPoint, double distance) |
Returns a point on the line from startPoint to directionPoint that is a certain distance away from the starting point. More... | |
static QPointF | polygonCentroid (const QPolygonF &points) |
Calculate the centroid point of a QPolygonF. More... | |
static QPointF | polygonPointOnSurface (const QPolygonF &points) |
Calculate a point within of a QPolygonF. More... | |
static void | premultiplyColor (QColor &rgb, int alpha) |
Converts a QColor into a premultiplied ARGB QColor value using a specified alpha value. More... | |
static QList< double > | prettyBreaks (double minimum, double maximum, int classes) |
Computes a sequence of about 'classes' equally spaced round values which cover the range of values from 'minimum' to 'maximum'. More... | |
static bool | rotationFromSldElement (QDomElement &element, QString &rotationFunc) |
static QDomElement | saveColorRamp (const QString &name, QgsVectorColorRampV2 *ramp, QDomDocument &doc) |
static bool | saveColorsToGpl (QFile &file, const QString &paletteName, const QgsNamedColorList &colors) |
Exports colors to a gpl GIMP palette file. More... | |
static void | saveProperties (QgsStringMap props, QDomDocument &doc, QDomElement &element) |
static QDomElement | saveSymbol (const QString &symbolName, QgsSymbolV2 *symbol, QDomDocument &doc) |
static QDomElement | saveSymbols (QgsSymbolV2Map &symbols, const QString &tagName, QDomDocument &doc) |
static void | sortVariantList (QList< QVariant > &list, Qt::SortOrder order) |
Sorts the passed list in requested order. More... | |
static QIcon | symbolLayerPreviewIcon (QgsSymbolLayerV2 *layer, QgsSymbolV2::OutputUnit u, QSize size, const QgsMapUnitScale &scale=QgsMapUnitScale()) |
static QPicture | symbolLayerPreviewPicture (QgsSymbolLayerV2 *layer, QgsSymbolV2::OutputUnit units, QSize size, const QgsMapUnitScale &scale=QgsMapUnitScale()) |
Draws a symbol layer preview to a QPicture. More... | |
static QString | symbolNameToPath (QString name) |
Get symbol's path from its name. More... | |
static QString | symbolPathToName (QString path) |
Get symbols's name from its path. More... | |
static QIcon | symbolPreviewIcon (QgsSymbolV2 *symbol, QSize size) |
static QPixmap | symbolPreviewPixmap (QgsSymbolV2 *symbol, QSize size, QgsRenderContext *customContext=nullptr) |
static QString | symbolProperties (QgsSymbolV2 *symbol) |
Returns a string representing the symbol. More... | |
static Q_DECL_DEPRECATED bool | wellKnownMarkerFromSld (QDomElement &element, QString &name, QColor &color, QColor &borderColor, double &borderWidth, double &size) |
static bool | wellKnownMarkerFromSld (QDomElement &element, QString &name, QColor &color, QColor &borderColor, Qt::PenStyle &borderStyle, double &borderWidth, double &size) |
static Q_DECL_DEPRECATED void | wellKnownMarkerToSld (QDomDocument &doc, QDomElement &element, const QString &name, const QColor &color, const QColor &borderColor=QColor(), double borderWidth=-1, double size=-1) |
static void | wellKnownMarkerToSld (QDomDocument &doc, QDomElement &element, const QString &name, const QColor &color, const QColor &borderColor, Qt::PenStyle borderStyle, double borderWidth=-1, double size=-1) |
Definition at line 45 of file qgssymbollayerv2utils.h.
|
static |
Blurs an image in place, e.g.
creating Qt-independent drop shadows
Definition at line 3496 of file qgssymbollayerv2utils.cpp.
|
static |
Definition at line 2815 of file qgssymbollayerv2utils.cpp.
Attempts to parse mime data as a color.
data | mime data to parse |
hasAlpha | will be set to true if mime data was interpreted as a color containing an explicit alpha value |
Definition at line 2944 of file qgssymbollayerv2utils.cpp.
|
static |
Attempts to parse mime data as a list of named colors.
data | mime data to parse |
Definition at line 2966 of file qgssymbollayerv2utils.cpp.
|
static |
Creates mime data from a list of named colors.
colorList | list of named colors |
allFormats | set to true to include additional mime formats, include text/plain and application/x-color |
Definition at line 3079 of file qgssymbollayerv2utils.cpp.
|
static |
Definition at line 655 of file qgssymbollayerv2utils.cpp.
|
static |
Definition at line 660 of file qgssymbollayerv2utils.cpp.
Creates mime data from a color.
Sets both the mime data's color data, and the mime data's text with the color's hex code.
color | color to encode as mime data |
Definition at line 2934 of file qgssymbollayerv2utils.cpp.
Returns a friendly display name for a color.
color | source color |
Definition at line 2855 of file qgssymbollayerv2utils.cpp.
|
static |
Definition at line 1519 of file qgssymbollayerv2utils.cpp.
|
static |
Converts a size from the specied units to painter units.
The conversion respects the limits specified by the optional scale parameter.
c | render context |
size | size to convert |
unit | units for specified size |
scale | map unit scale |
Definition at line 3385 of file qgssymbollayerv2utils.cpp.
|
static |
Definition at line 2346 of file qgssymbollayerv2utils.cpp.
|
static |
Definition at line 1261 of file qgssymbollayerv2utils.cpp.
|
static |
Definition at line 2547 of file qgssymbollayerv2utils.cpp.
|
static |
Definition at line 2504 of file qgssymbollayerv2utils.cpp.
|
static |
Definition at line 1284 of file qgssymbollayerv2utils.cpp.
|
static |
Definition at line 1303 of file qgssymbollayerv2utils.cpp.
|
static |
Definition at line 2598 of file qgssymbollayerv2utils.cpp.
|
static |
Definition at line 2326 of file qgssymbollayerv2utils.cpp.
|
static |
Creates a render context for a pixel based device.
Definition at line 3450 of file qgssymbollayerv2utils.cpp.
|
static |
Definition at line 2305 of file qgssymbollayerv2utils.cpp.
|
static |
Definition at line 2632 of file qgssymbollayerv2utils.cpp.
|
static |
Definition at line 1111 of file qgssymbollayerv2utils.cpp.
|
static |
Definition at line 2662 of file qgssymbollayerv2utils.cpp.
|
static |
Definition at line 576 of file qgssymbollayerv2utils.cpp.
|
static |
Definition at line 295 of file qgssymbollayerv2utils.cpp.
Definition at line 48 of file qgssymbollayerv2utils.cpp.
|
static |
Definition at line 389 of file qgssymbollayerv2utils.cpp.
|
static |
Definition at line 426 of file qgssymbollayerv2utils.cpp.
|
static |
Definition at line 225 of file qgssymbollayerv2utils.cpp.
|
static |
Definition at line 179 of file qgssymbollayerv2utils.cpp.
|
static |
Definition at line 153 of file qgssymbollayerv2utils.cpp.
Definition at line 372 of file qgssymbollayerv2utils.cpp.
Definition at line 501 of file qgssymbollayerv2utils.cpp.
|
static |
Definition at line 560 of file qgssymbollayerv2utils.cpp.
|
static |
Definition at line 72 of file qgssymbollayerv2utils.cpp.
|
static |
Definition at line 352 of file qgssymbollayerv2utils.cpp.
|
static |
Definition at line 98 of file qgssymbollayerv2utils.cpp.
|
static |
Definition at line 118 of file qgssymbollayerv2utils.cpp.
|
static |
Definition at line 248 of file qgssymbollayerv2utils.cpp.
|
static |
Definition at line 202 of file qgssymbollayerv2utils.cpp.
Definition at line 530 of file qgssymbollayerv2utils.cpp.
|
static |
Definition at line 464 of file qgssymbollayerv2utils.cpp.
|
static |
Definition at line 2364 of file qgssymbollayerv2utils.cpp.
Definition at line 683 of file qgssymbollayerv2utils.cpp.
|
static |
Definition at line 256 of file qgssymbollayerv2utils.cpp.
Definition at line 43 of file qgssymbollayerv2utils.cpp.
|
static |
Definition at line 380 of file qgssymbollayerv2utils.cpp.
|
static |
Definition at line 409 of file qgssymbollayerv2utils.cpp.
|
static |
Definition at line 210 of file qgssymbollayerv2utils.cpp.
|
static |
Definition at line 164 of file qgssymbollayerv2utils.cpp.
|
static |
Definition at line 132 of file qgssymbollayerv2utils.cpp.
Definition at line 367 of file qgssymbollayerv2utils.cpp.
Definition at line 486 of file qgssymbollayerv2utils.cpp.
|
static |
Definition at line 544 of file qgssymbollayerv2utils.cpp.
|
static |
Definition at line 67 of file qgssymbollayerv2utils.cpp.
|
static |
Definition at line 315 of file qgssymbollayerv2utils.cpp.
|
static |
Definition at line 83 of file qgssymbollayerv2utils.cpp.
|
static |
Definition at line 106 of file qgssymbollayerv2utils.cpp.
|
static |
Definition at line 233 of file qgssymbollayerv2utils.cpp.
|
static |
Definition at line 187 of file qgssymbollayerv2utils.cpp.
Definition at line 515 of file qgssymbollayerv2utils.cpp.
|
static |
Definition at line 443 of file qgssymbollayerv2utils.cpp.
|
static |
Returns the maximum estimated bleed for the symbol.
Definition at line 614 of file qgssymbollayerv2utils.cpp.
|
static |
Definition at line 2108 of file qgssymbollayerv2utils.cpp.
|
static |
Definition at line 2088 of file qgssymbollayerv2utils.cpp.
|
static |
Definition at line 2163 of file qgssymbollayerv2utils.cpp.
|
static |
Definition at line 2133 of file qgssymbollayerv2utils.cpp.
|
static |
Return a field name if the whole expression is just a name of the field .
Returns full expression string if the expression is more complex than just one field. Using just expression->expression() method may return quoted field name, but that is not wanted for saving (due to backward compatibility) or display in GUI.
Definition at line 3911 of file qgssymbollayerv2utils.cpp.
|
static |
Return a new valid expression instance for given field or expression string.
If the input is not a valid expression, it is assumed that it is a field name and gets properly quoted. If the string is empty, returns null pointer. This is useful when accepting input which could be either a non-quoted field name or expression.
Definition at line 3895 of file qgssymbollayerv2utils.cpp.
|
static |
Definition at line 1826 of file qgssymbollayerv2utils.cpp.
|
static |
Definition at line 1775 of file qgssymbollayerv2utils.cpp.
|
static |
Definition at line 2562 of file qgssymbollayerv2utils.cpp.
|
static |
Definition at line 2538 of file qgssymbollayerv2utils.cpp.
|
static |
Definition at line 2640 of file qgssymbollayerv2utils.cpp.
|
static |
Definition at line 2670 of file qgssymbollayerv2utils.cpp.
|
static |
Definition at line 1326 of file qgssymbollayerv2utils.cpp.
|
static |
Definition at line 1367 of file qgssymbollayerv2utils.cpp.
|
static |
Imports colors from a gpl GIMP palette file.
file | source gpl file |
ok | will be true if file was successfully read |
name | will be set to palette name from gpl file, if present |
Definition at line 3155 of file qgssymbollayerv2utils.cpp.
|
static |
Definition at line 2393 of file qgssymbollayerv2utils.cpp.
|
static |
Definition at line 1957 of file qgssymbollayerv2utils.cpp.
|
static |
Definition at line 1880 of file qgssymbollayerv2utils.cpp.
|
static |
Returns the line width scale factor depending on the unit and the paint device.
Consider using convertToPainterUnits() instead, as convertToPainterUnits() respects the size limits specified by the scale parameter.
c | render context |
u | units to convert from |
scale | map unit scale, specifying limits for the map units to convert from |
Definition at line 3357 of file qgssymbollayerv2utils.cpp.
|
static |
Return a list of all available svg files.
Definition at line 3651 of file qgssymbollayerv2utils.cpp.
|
static |
Return a list of svg files at the specified directory.
Definition at line 3675 of file qgssymbollayerv2utils.cpp.
|
static |
Definition at line 2822 of file qgssymbollayerv2utils.cpp.
|
static |
Attempts to load a symbol from a DOM element.
element | DOM element representing symbol |
Definition at line 945 of file qgssymbollayerv2utils.cpp.
|
inlinestatic |
Attempts to load a symbol from a DOM element and cast it to a particular symbol type.
element | DOM element representing symbol |
Definition at line 140 of file qgssymbollayerv2utils.h.
|
static |
Definition at line 1021 of file qgssymbollayerv2utils.cpp.
|
static |
Definition at line 2723 of file qgssymbollayerv2utils.cpp.
|
static |
Returns scale factor painter units -> map units.
Definition at line 3430 of file qgssymbollayerv2utils.cpp.
|
static |
Multiplies opacity of image pixel values with a (global) transparency value.
Definition at line 3466 of file qgssymbollayerv2utils.cpp.
|
static |
Definition at line 1430 of file qgssymbollayerv2utils.cpp.
|
static |
Definition at line 1385 of file qgssymbollayerv2utils.cpp.
|
static |
Definition at line 1461 of file qgssymbollayerv2utils.cpp.
|
static |
Definition at line 1448 of file qgssymbollayerv2utils.cpp.
|
static |
Definition at line 1499 of file qgssymbollayerv2utils.cpp.
|
static |
Definition at line 1505 of file qgssymbollayerv2utils.cpp.
|
static |
Definition at line 1425 of file qgssymbollayerv2utils.cpp.
Create ogr feature style string for brush.
fillColr | fill color |
Definition at line 2494 of file qgssymbollayerv2utils.cpp.
|
static |
Create ogr feature style string for pen.
Definition at line 2420 of file qgssymbollayerv2utils.cpp.
|
static |
Definition at line 2613 of file qgssymbollayerv2utils.cpp.
|
static |
Definition at line 2336 of file qgssymbollayerv2utils.cpp.
|
static |
Attempts to parse a string as a color using a variety of common formats, including hex codes, rgb and rgba strings.
colorStr | string representing the color |
strictEval | set to true for stricter color parsing rules |
Definition at line 3236 of file qgssymbollayerv2utils.cpp.
Attempts to parse a string as a list of colors using a variety of common formats, including hex codes, rgb and rgba strings.
colorStr | string representing the color list |
Definition at line 2867 of file qgssymbollayerv2utils.cpp.
|
static |
Attempts to parse a string as a color using a variety of common formats, including hex codes, rgb and rgba strings.
colorStr | string representing the color |
containsAlpha | if colorStr contains an explicit alpha value then containsAlpha will be set to true |
strictEval | set to true for stricter color parsing rules |
Definition at line 3242 of file qgssymbollayerv2utils.cpp.
|
static |
Definition at line 2690 of file qgssymbollayerv2utils.cpp.
|
static |
Returns scale factor painter units -> pixel dimensions.
Definition at line 3402 of file qgssymbollayerv2utils.cpp.
Calculate whether a point is within of a QPolygonF.
Definition at line 3869 of file qgssymbollayerv2utils.cpp.
|
static |
Returns a point on the line from startPoint to directionPoint that is a certain distance away from the starting point.
Definition at line 3641 of file qgssymbollayerv2utils.cpp.
Calculate the centroid point of a QPolygonF.
Definition at line 3806 of file qgssymbollayerv2utils.cpp.
Calculate a point within of a QPolygonF.
Definition at line 3838 of file qgssymbollayerv2utils.cpp.
|
static |
Converts a QColor into a premultiplied ARGB QColor value using a specified alpha value.
Definition at line 3572 of file qgssymbollayerv2utils.cpp.
|
static |
Computes a sequence of about 'classes' equally spaced round values which cover the range of values from 'minimum' to 'maximum'.
The values are chosen so that they are 1, 2 or 5 times a power of 10.
Definition at line 3921 of file qgssymbollayerv2utils.cpp.
|
static |
Definition at line 2315 of file qgssymbollayerv2utils.cpp.
|
static |
Definition at line 2845 of file qgssymbollayerv2utils.cpp.
|
static |
Exports colors to a gpl GIMP palette file.
file | destination file |
paletteName | name of palette, which is stored in gpl file |
colors | colors to export |
Definition at line 3120 of file qgssymbollayerv2utils.cpp.
|
static |
Definition at line 2712 of file qgssymbollayerv2utils.cpp.
|
static |
Definition at line 1067 of file qgssymbollayerv2utils.cpp.
|
static |
Definition at line 2801 of file qgssymbollayerv2utils.cpp.
|
static |
Sorts the passed list in requested order.
Definition at line 3627 of file qgssymbollayerv2utils.cpp.
|
static |
Definition at line 641 of file qgssymbollayerv2utils.cpp.
|
static |
Draws a symbol layer preview to a QPicture.
layer | symbol layer to draw |
units | size units |
size | target size of preview picture |
scale | map unit scale for preview |
Definition at line 627 of file qgssymbollayerv2utils.cpp.
Get symbol's path from its name.
If the name is not absolute path the file is searched in SVG paths specified in settings svg/searchPathsForSVG.
Definition at line 3700 of file qgssymbollayerv2utils.cpp.
Get symbols's name from its path.
Definition at line 3775 of file qgssymbollayerv2utils.cpp.
|
static |
Definition at line 593 of file qgssymbollayerv2utils.cpp.
|
static |
Definition at line 598 of file qgssymbollayerv2utils.cpp.
|
static |
Returns a string representing the symbol.
Can be used to test for equality between symbols.
Definition at line 1101 of file qgssymbollayerv2utils.cpp.
|
static |
|
static |
Definition at line 2258 of file qgssymbollayerv2utils.cpp.
|
static |
Definition at line 2207 of file qgssymbollayerv2utils.cpp.
|
static |
Definition at line 2214 of file qgssymbollayerv2utils.cpp.