QGIS API Documentation
2.2.0-Valmiera
|
#include <qgspallabeling.h>
Public Member Functions | |
QgsPalLayerSettings () | |
QgsPalLayerSettings (const QgsPalLayerSettings &s) | |
~QgsPalLayerSettings () | |
QgsExpression * | getLabelExpression () |
Returns the QgsExpression for this label settings. | |
void | calculateLabelSize (const QFontMetricsF *fm, QString text, double &labelX, double &labelY, QgsFeature *f=0) |
void | registerFeature (QgsVectorLayer *layer, QgsFeature &f, const QgsRenderContext &context) |
void | readFromLayer (QgsVectorLayer *layer) |
void | writeToLayer (QgsVectorLayer *layer) |
QgsDataDefined * | dataDefinedProperty (QgsPalLayerSettings::DataDefinedProperties p) |
Get a data defined property pointer. | |
void | setDataDefinedProperty (QgsPalLayerSettings::DataDefinedProperties p, bool active, bool useExpr, const QString &expr, const QString &field) |
Set a property as data defined. | |
void | removeDataDefinedProperty (QgsPalLayerSettings::DataDefinedProperties p) |
Set a property to static instead data defined. | |
QString | updateDataDefinedString (const QString &value) |
Convert old property value to new one as delimited values. | |
QMap< QString, QString > | dataDefinedMap (QgsPalLayerSettings::DataDefinedProperties p) const |
Get property value as separate values split into Qmap. | |
QVariant | dataDefinedValue (QgsPalLayerSettings::DataDefinedProperties p, QgsFeature &f, const QgsFields &fields) const |
Get data defined property value from expression string or attribute field name. | |
bool | dataDefinedEvaluate (QgsPalLayerSettings::DataDefinedProperties p, QVariant &exprVal) const |
Get data defined property value from expression string or attribute field name. | |
bool | dataDefinedIsActive (QgsPalLayerSettings::DataDefinedProperties p) const |
Whether data definition is active. | |
bool | dataDefinedUseExpression (QgsPalLayerSettings::DataDefinedProperties p) const |
Whether data definition is set to use an expression. | |
int | sizeToPixel (double size, const QgsRenderContext &c, SizeUnit unit, bool rasterfactor=false) const |
Calculates pixel size (considering output size should be in pixel or map units, scale factors and optionally oversampling) | |
double | scaleToPixelContext (double size, const QgsRenderContext &c, SizeUnit unit, bool rasterfactor=false) const |
Calculates size (considering output size should be in pixel or map units, scale factors and optionally oversampling) | |
QMap < QgsPalLayerSettings::DataDefinedProperties, QPair< QString, int > > | dataDefinedNames () const |
Map of data defined enum to names and old-style indecies The QPair contains a new string for layer property key, and a reference to old-style numeric key (< QGIS 2.0) |
Private Member Functions | |
void | readDataDefinedPropertyMap (QgsVectorLayer *layer, QMap< QgsPalLayerSettings::DataDefinedProperties, QgsDataDefined * > &propertyMap) |
void | writeDataDefinedPropertyMap (QgsVectorLayer *layer, const QMap< QgsPalLayerSettings::DataDefinedProperties, QgsDataDefined * > &propertyMap) |
void | readDataDefinedProperty (QgsVectorLayer *layer, QgsPalLayerSettings::DataDefinedProperties p, QMap< QgsPalLayerSettings::DataDefinedProperties, QgsDataDefined * > &propertyMap) |
bool | dataDefinedValEval (const QString &valType, QgsPalLayerSettings::DataDefinedProperties p, QVariant &exprVal) |
void | parseTextStyle (QFont &labelFont, QgsPalLayerSettings::SizeUnit fontunits, const QgsRenderContext &context) |
void | parseTextBuffer () |
void | parseTextFormatting () |
void | parseShapeBackground () |
void | parseDropShadow () |
bool | checkMinimumSizeMM (const QgsRenderContext &ct, QgsGeometry *geom, double minSize) const |
Checks if a feature is larger than a minimum size (in mm) |
Private Attributes | |
QMap< DataDefinedProperties, QVariant > | dataDefinedValues |
QgsExpression * | expression |
QMap < QgsPalLayerSettings::DataDefinedProperties, QPair< QString, int > > | mDataDefinedNames |
QFontDatabase | mFontDB |
Definition at line 61 of file qgspallabeling.h.
Definition at line 161 of file qgspallabeling.h.
Definition at line 106 of file qgspallabeling.h.
Definition at line 78 of file qgspallabeling.h.
Definition at line 113 of file qgspallabeling.h.
Definition at line 68 of file qgspallabeling.h.
QuadrantAboveLeft | |
QuadrantAbove | |
QuadrantAboveRight | |
QuadrantLeft | |
QuadrantOver | |
QuadrantRight | |
QuadrantBelowLeft | |
QuadrantBelow | |
QuadrantBelowRight |
Definition at line 86 of file qgspallabeling.h.
Definition at line 136 of file qgspallabeling.h.
Definition at line 152 of file qgspallabeling.h.
Definition at line 120 of file qgspallabeling.h.
Definition at line 129 of file qgspallabeling.h.
Units used for option sizes, before being converted to rendered sizes.
Definition at line 144 of file qgspallabeling.h.
Definition at line 99 of file qgspallabeling.h.
QgsPalLayerSettings::QgsPalLayerSettings | ( | ) |
Definition at line 211 of file qgspallabeling.cpp.
References addDirectionSymbol, AlwaysShow, angleOffset, AroundPoint, blendMode, Bold, BufferBlendMode, bufferBlendMode, BufferColor, bufferColor, BufferDraw, bufferDraw, BufferJoinStyle, bufferJoinStyle, bufferNoFill, BufferSize, bufferSize, bufferSizeInMapUnits, BufferTransp, bufferTransp, BufferUnit, CentroidWhole, centroidWhole, Color, CurvedCharAngleInOut, decimals, DirSymbDraw, DirSymbLeft, DirSymbPlacement, DirSymbReverse, DirSymbRight, displayAll, dist, DistanceUnits, distInMapUnits, enabled, Family, FontBlendMode, FontCase, FontLetterSpacing, FontLimitPixel, fontLimitPixelSize, FontMaxPixel, fontMaxPixelSize, FontMinPixel, fontMinPixelSize, fontSizeInMapUnits, FontSizeUnit, FontStyle, FontTransp, FontWordSpacing, formatNumbers, Hali, Italic, LabelDistance, labelOffsetInMapUnits, labelPerPart, leftDirectionSymbol, limitNumLabels, maxCurvedCharAngleIn, maxCurvedCharAngleOut, maxNumLabels, MaxScale, mDataDefinedNames, mergeLines, minFeatureSize, MinScale, MM, mTextFontFamily, mTextFontFound, MultiLeft, multilineAlign, MultiLineAlignment, MultiLineHeight, multilineHeight, MultiLineWrapChar, NumDecimals, NumFormat, NumPlusSign, obstacle, OffsetQuad, OffsetRotation, OffsetUnits, OffsetXY, placeDirectionSymbol, placement, placementFlags, plusSign, PositionX, PositionY, preserveRotation, previewBkgrdColor, priority, quadOffset, QuadrantOver, rasterCompressFactor, reverseDirectionSymbol, rightDirectionSymbol, Rotation, RotationSync, scaleMax, scaleMin, ScaleVisibility, scaleVisibility, ShadowBlendMode, shadowBlendMode, ShadowColor, shadowColor, ShadowDraw, shadowDraw, ShadowLowest, ShadowOffsetAngle, shadowOffsetAngle, ShadowOffsetDist, shadowOffsetDist, shadowOffsetGlobal, ShadowOffsetUnits, shadowOffsetUnits, ShadowRadius, shadowRadius, shadowRadiusAlphaOnly, ShadowRadiusUnits, shadowRadiusUnits, ShadowScale, shadowScale, ShadowTransparency, shadowTransparency, ShadowUnder, shadowUnder, ShapeBlendMode, shapeBlendMode, ShapeBorderColor, shapeBorderColor, ShapeBorderWidth, shapeBorderWidth, ShapeBorderWidthUnits, shapeBorderWidthUnits, ShapeDraw, shapeDraw, ShapeFillColor, shapeFillColor, ShapeJoinStyle, shapeJoinStyle, ShapeKind, ShapeOffset, shapeOffset, ShapeOffsetUnits, shapeOffsetUnits, ShapeRadii, shapeRadii, ShapeRadiiUnits, shapeRadiiUnits, ShapeRectangle, ShapeRotation, shapeRotation, ShapeRotationType, shapeRotationType, shapeSize, ShapeSizeType, shapeSizeType, ShapeSizeUnits, shapeSizeUnits, ShapeSizeX, ShapeSizeY, ShapeSVGFile, shapeSVGFile, ShapeTransparency, shapeTransparency, shapeType, Show, showingShadowRects, Size, SizeBuffer, Strikeout, SymbolLeftRight, textColor, textFont, textNamedStyle, textTransp, Underline, Upright, upsidedownLabels, Vali, vectorScaleFactor, wrapChar, xOffset, and yOffset.
QgsPalLayerSettings::QgsPalLayerSettings | ( | const QgsPalLayerSettings & | s | ) |
Definition at line 439 of file qgspallabeling.cpp.
References addDirectionSymbol, angleOffset, blendMode, bufferBlendMode, bufferColor, bufferDraw, bufferJoinStyle, bufferNoFill, bufferSize, bufferSizeInMapUnits, bufferTransp, centroidWhole, ct, dataDefinedProperties, decimals, displayAll, dist, distInMapUnits, enabled, expression, extentGeom, fieldName, fontLimitPixelSize, fontMaxPixelSize, fontMinPixelSize, fontSizeInMapUnits, formatNumbers, isExpression, labelOffsetInMapUnits, labelPerPart, leftDirectionSymbol, limitNumLabels, maxCurvedCharAngleIn, maxCurvedCharAngleOut, maxNumLabels, mDataDefinedNames, mergeLines, minFeatureSize, mTextFontFamily, mTextFontFound, multilineAlign, multilineHeight, obstacle, placeDirectionSymbol, placement, placementFlags, plusSign, preserveRotation, previewBkgrdColor, priority, quadOffset, rasterCompressFactor, reverseDirectionSymbol, rightDirectionSymbol, scaleMax, scaleMin, scaleVisibility, shadowBlendMode, shadowColor, shadowDraw, shadowOffsetAngle, shadowOffsetDist, shadowOffsetGlobal, shadowOffsetUnits, shadowRadius, shadowRadiusAlphaOnly, shadowRadiusUnits, shadowScale, shadowTransparency, shadowUnder, shapeBlendMode, shapeBorderColor, shapeBorderWidth, shapeBorderWidthUnits, shapeDraw, shapeFillColor, shapeJoinStyle, shapeOffset, shapeOffsetUnits, shapeRadii, shapeRadiiUnits, shapeRotation, shapeRotationType, shapeSize, shapeSizeType, shapeSizeUnits, shapeSVGFile, shapeTransparency, shapeType, textColor, textFont, textNamedStyle, textTransp, upsidedownLabels, vectorScaleFactor, wrapChar, xOffset, and yOffset.
QgsPalLayerSettings::~QgsPalLayerSettings | ( | ) |
Definition at line 565 of file qgspallabeling.cpp.
References ct, dataDefinedProperties, expression, and extentGeom.
void QgsPalLayerSettings::calculateLabelSize | ( | const QFontMetricsF * | fm, |
QString | text, | ||
double & | labelX, | ||
double & | labelY, | ||
QgsFeature * | f = 0 |
||
) |
Definition at line 1332 of file qgspallabeling.cpp.
References addDirectionSymbol, dataDefinedValue(), dataDefinedValues, DirSymbDraw, DirSymbLeft, DirSymbPlacement, DirSymbRight, leftDirectionSymbol, Line, mCurFeat, mCurFields, MultiLineHeight, multilineHeight, MultiLineWrapChar, placeDirectionSymbol, placement, rasterCompressFactor, rightDirectionSymbol, size, SymbolLeftRight, QgsMapToPixel::toMapCoordinatesF(), wrapChar, QgsPoint::x(), and QgsPoint::y().
Referenced by registerFeature().
|
private |
Checks if a feature is larger than a minimum size (in mm)
Definition at line 1294 of file qgspallabeling.cpp.
References QgsGeometry::area(), QgsGeometry::length(), QGis::Line, QgsRenderContext::mapToPixel(), QgsMapToPixel::mapUnitsPerPixel(), QGis::Point, QGis::Polygon, QgsRenderContext::scaleFactor(), and QgsGeometry::type().
Referenced by registerFeature().
bool QgsPalLayerSettings::dataDefinedEvaluate | ( | QgsPalLayerSettings::DataDefinedProperties | p, |
QVariant & | exprVal | ||
) | const |
Get data defined property value from expression string or attribute field name.
Definition at line 1252 of file qgspallabeling.cpp.
References dataDefinedValue(), mCurFeat, and mCurFields.
Referenced by dataDefinedValEval(), parseDropShadow(), parseShapeBackground(), parseTextFormatting(), parseTextStyle(), and registerFeature().
bool QgsPalLayerSettings::dataDefinedIsActive | ( | QgsPalLayerSettings::DataDefinedProperties | p | ) | const |
Whether data definition is active.
Definition at line 1270 of file qgspallabeling.cpp.
References dataDefinedProperties.
QMap< QString, QString > QgsPalLayerSettings::dataDefinedMap | ( | QgsPalLayerSettings::DataDefinedProperties | p | ) | const |
Get property value as separate values split into Qmap.
Definition at line 1184 of file qgspallabeling.cpp.
References dataDefinedProperties.
|
inline |
Map of data defined enum to names and old-style indecies The QPair contains a new string for layer property key, and a reference to old-style numeric key (< QGIS 2.0)
Definition at line 487 of file qgspallabeling.h.
QgsDataDefined * QgsPalLayerSettings::dataDefinedProperty | ( | QgsPalLayerSettings::DataDefinedProperties | p | ) |
Get a data defined property pointer.
Definition at line 1174 of file qgspallabeling.cpp.
References dataDefinedProperties.
bool QgsPalLayerSettings::dataDefinedUseExpression | ( | QgsPalLayerSettings::DataDefinedProperties | p | ) | const |
Whether data definition is set to use an expression.
Definition at line 1282 of file qgspallabeling.cpp.
References dataDefinedProperties.
|
private |
Definition at line 2208 of file qgspallabeling.cpp.
References _decodeBlendMode(), _decodePenJoinStyle(), _decodeUnits(), dataDefinedEvaluate(), dataDefinedValues, QgsSymbolLayerV2Utils::decodeColor(), QgsSymbolLayerV2Utils::decodePoint(), mDataDefinedNames, QgsDebugMsgLevel, and size.
Referenced by parseDropShadow(), parseShapeBackground(), parseTextBuffer(), parseTextFormatting(), and parseTextStyle().
QVariant QgsPalLayerSettings::dataDefinedValue | ( | QgsPalLayerSettings::DataDefinedProperties | p, |
QgsFeature & | f, | ||
const QgsFields & | fields | ||
) | const |
Get data defined property value from expression string or attribute field name.
Definition at line 1195 of file qgspallabeling.cpp.
References QgsFeature::attribute(), dataDefinedProperties, QgsExpression::evalErrorString(), QgsExpression::evaluate(), QgsDataDefined::expression(), QgsDataDefined::expressionIsPrepared(), QgsDataDefined::field(), QgsExpression::hasEvalError(), QgsFields::indexFromName(), QgsDataDefined::isActive(), QgsDebugMsgLevel, and QgsDataDefined::useExpression().
Referenced by calculateLabelSize(), and dataDefinedEvaluate().
QgsExpression * QgsPalLayerSettings::getLabelExpression | ( | ) |
Returns the QgsExpression for this label settings.
Definition at line 577 of file qgspallabeling.cpp.
References expression, and fieldName.
Referenced by QgsPalLabeling::prepareLayer(), and registerFeature().
|
private |
Definition at line 2918 of file qgspallabeling.cpp.
References dataDefinedEvaluate(), dataDefinedValEval(), dataDefinedValues, QgsDebugMsgLevel, ShadowBlendMode, ShadowBuffer, ShadowColor, ShadowDraw, shadowDraw, ShadowLowest, ShadowOffsetAngle, ShadowOffsetDist, shadowOffsetDist, ShadowOffsetUnits, ShadowRadius, shadowRadius, ShadowRadiusUnits, ShadowScale, ShadowShape, ShadowText, ShadowTransparency, shadowTransparency, and ShadowUnder.
Referenced by registerFeature().
|
private |
Definition at line 2717 of file qgspallabeling.cpp.
References dataDefinedEvaluate(), dataDefinedValEval(), dataDefinedValues, QgsDebugMsgLevel, RotationFixed, RotationOffset, RotationSync, ShapeBlendMode, ShapeBorderColor, ShapeBorderWidth, ShapeBorderWidthUnits, ShapeCircle, ShapeDraw, shapeDraw, ShapeEllipse, ShapeFillColor, ShapeJoinStyle, ShapeKind, ShapeOffset, ShapeOffsetUnits, ShapeRadii, ShapeRadiiUnits, ShapeRectangle, ShapeRotation, ShapeRotationType, shapeSize, ShapeSizeType, shapeSizeType, ShapeSizeUnits, ShapeSizeX, ShapeSizeY, ShapeSquare, ShapeSVG, ShapeSVGFile, shapeSVGFile, ShapeTransparency, shapeTransparency, shapeType, SizeBuffer, and SizeFixed.
Referenced by registerFeature().
|
private |
Definition at line 2582 of file qgspallabeling.cpp.
References BufferBlendMode, BufferColor, BufferDraw, bufferDraw, BufferJoinStyle, BufferSize, bufferSize, BufferTransp, bufferTransp, BufferUnit, dataDefinedValEval(), and dataDefinedValues.
Referenced by registerFeature().
|
private |
Definition at line 2635 of file qgspallabeling.cpp.
References addDirectionSymbol, dataDefinedEvaluate(), dataDefinedValEval(), dataDefinedValues, DirSymbDraw, DirSymbLeft, DirSymbPlacement, DirSymbReverse, DirSymbRight, MultiCenter, MultiLeft, MultiLineAlignment, MultiLineHeight, MultiLineWrapChar, MultiRight, QgsDebugMsgLevel, SymbolAbove, SymbolBelow, SymbolLeftRight, and wrapChar.
Referenced by registerFeature().
|
private |
Definition at line 2372 of file qgspallabeling.cpp.
References Bold, Color, dataDefinedEvaluate(), dataDefinedValEval(), Family, FontBlendMode, FontCase, QgsFontUtils::fontFamilyOnSystem(), FontLetterSpacing, FontStyle, FontTransp, FontWordSpacing, Italic, mFontDB, QgsDebugMsgLevel, sizeToPixel(), Strikeout, textNamedStyle, Underline, and QgsFontUtils::updateFontViaStyle().
Referenced by registerFeature().
|
private |
Definition at line 716 of file qgspallabeling.cpp.
References QgsFields::at(), bufferDraw, QgsMapLayer::customProperty(), QgsVectorLayer::dataProvider(), QgsVectorDataProvider::fields(), mDataDefinedNames, QgsField::name(), QgsVectorDataProvider::palAttributeIndexNames(), QgsMapLayer::removeCustomProperty(), scaleVisibility, QgsMapLayer::setCustomProperty(), QgsFields::size(), and updateDataDefinedString().
Referenced by readDataDefinedPropertyMap().
|
private |
Definition at line 638 of file qgspallabeling.cpp.
References mDataDefinedNames, and readDataDefinedProperty().
Referenced by readFromLayer().
void QgsPalLayerSettings::readFromLayer | ( | QgsVectorLayer * | layer | ) |
Definition at line 811 of file qgspallabeling.cpp.
References _readColor(), addDirectionSymbol, angleOffset, blendMode, QgsMapRenderer::BlendMultiply, QgsMapRenderer::BlendNormal, bufferBlendMode, bufferColor, bufferDraw, bufferJoinStyle, bufferNoFill, bufferSize, bufferSizeInMapUnits, bufferTransp, centroidWhole, QgsMapLayer::customProperty(), dataDefinedProperties, decimals, displayAll, dist, distInMapUnits, enabled, fieldName, QgsFontUtils::fontFamilyMatchOnSystem(), fontLimitPixelSize, fontMaxPixelSize, fontMinPixelSize, fontSizeInMapUnits, formatNumbers, QgsMapRenderer::getCompositionMode(), isExpression, labelOffsetInMapUnits, labelPerPart, leftDirectionSymbol, limitNumLabels, maxCurvedCharAngleIn, maxCurvedCharAngleOut, maxNumLabels, mergeLines, minFeatureSize, MM, mTextFontFamily, mTextFontFound, MultiLeft, multilineAlign, multilineHeight, obstacle, placeDirectionSymbol, placement, placementFlags, plusSign, preserveRotation, previewBkgrdColor, priority, quadOffset, QuadrantOver, readDataDefinedPropertyMap(), reverseDirectionSymbol, rightDirectionSymbol, RotationSync, scaleMax, scaleMin, scaleVisibility, shadowBlendMode, shadowColor, shadowDraw, ShadowLowest, shadowOffsetAngle, shadowOffsetDist, shadowOffsetGlobal, shadowOffsetUnits, shadowRadius, shadowRadiusAlphaOnly, shadowRadiusUnits, shadowScale, shadowTransparency, shadowUnder, shapeBlendMode, shapeBorderColor, shapeBorderWidth, shapeBorderWidthUnits, shapeDraw, shapeFillColor, shapeJoinStyle, shapeOffset, shapeOffsetUnits, shapeRadii, shapeRadiiUnits, ShapeRectangle, shapeRotation, shapeRotationType, shapeSize, shapeSizeType, shapeSizeUnits, shapeSVGFile, shapeTransparency, shapeType, SizeBuffer, SymbolLeftRight, textColor, textFont, textNamedStyle, textTransp, QgsFontUtils::updateFontViaStyle(), Upright, upsidedownLabels, wrapChar, xOffset, and yOffset.
Referenced by QgsPalLabeling::prepareLayer().
void QgsPalLayerSettings::registerFeature | ( | QgsVectorLayer * | layer, |
QgsFeature & | f, | ||
const QgsRenderContext & | context | ||
) |
Definition at line 1487 of file qgspallabeling.cpp.
References _decodeUnits(), QgsPalGeometry::addDataDefinedValue(), AlwaysShow, MathUtils::angle(), angleOffset, AroundPoint, QgsGeometry::asGeos(), QgsFeature::attribute(), calculateLabelSize(), CentroidWhole, centroidWhole, checkMinimumSizeMM(), QgsGeometry::contains(), ct, Curved, CurvedCharAngleInOut, dataDefinedEvaluate(), dataDefinedValues, decimals, QgsSymbolLayerV2Utils::decodePoint(), dist, DistanceUnits, distInMapUnits, QgsExpression::evalErrorString(), QgsExpression::evaluate(), extentGeom, fieldIndex, FontLimitPixel, fontLimitPixelSize, FontMaxPixel, fontMaxPixelSize, FontMinPixel, fontMinPixelSize, fontSizeInMapUnits, FontSizeUnit, formatNumbers, geometries, QgsFeature::geometry(), getLabelExpression(), Hali, QgsExpression::hasEvalError(), QgsExpression::hasParserError(), QgsFeature::id(), QgsPalGeometry::info(), QgsGeometry::intersection(), isExpression, LabelDistance, labelOffsetInMapUnits, limitNumLabels, M_PI, QgsRenderContext::mapToPixel(), MapUnits, QgsMapToPixel::mapUnitsPerPixel(), maxCurvedCharAngleIn, maxCurvedCharAngleOut, maxNumLabels, MaxScale, mCurFeat, mFeatsRegPal, mFeatsSendingToPal, mFeaturesToLabel, minFeatureSize, MinScale, NumDecimals, NumFormat, NumPlusSign, OffsetQuad, OffsetUnits, OffsetXY, OverPoint, palLayer, parseDropShadow(), QgsExpression::parserErrorString(), parseShapeBackground(), parseTextBuffer(), parseTextFormatting(), parseTextStyle(), placement, plusSign, Points, QGis::Polygon, PositionX, PositionY, ptOne, QgsDebugMsgLevel, quadOffset, QuadrantAbove, QuadrantAboveLeft, QuadrantAboveRight, QuadrantBelow, QuadrantBelowLeft, QuadrantBelowRight, QuadrantLeft, QuadrantOver, QuadrantRight, rasterCompressFactor, QgsRenderContext::rendererScale(), Rotation, QgsRenderContext::scaleFactor(), scaleMax, scaleMin, ScaleVisibility, scaleVisibility, QgsPalGeometry::setDefinedFont(), QgsPalGeometry::setIsPinned(), QgsExpression::setScale(), Show, size, Size, sizeToPixel(), QgsPalGeometry::strId(), textFont, QgsGeometry::transform(), QgsCoordinateTransform::transformInPlace(), QgsGeometry::type(), Vali, vectorScaleFactor, QgsPoint::x(), xOffset, and yOffset.
Referenced by QgsPalLabeling::registerFeature().
void QgsPalLayerSettings::removeDataDefinedProperty | ( | QgsPalLayerSettings::DataDefinedProperties | p | ) |
Set a property to static instead data defined.
Definition at line 1147 of file qgspallabeling.cpp.
References dataDefinedProperties.
double QgsPalLayerSettings::scaleToPixelContext | ( | double | size, |
const QgsRenderContext & | c, | ||
SizeUnit | unit, | ||
bool | rasterfactor = false |
||
) | const |
Calculates size (considering output size should be in pixel or map units, scale factors and optionally oversampling)
size | size to convert |
c | rendercontext |
unit | SizeUnit enum value of size |
rasterfactor | whether to consider oversampling |
Definition at line 3020 of file qgspallabeling.cpp.
References QgsRenderContext::mapToPixel(), MapUnits, QgsMapToPixel::mapUnitsPerPixel(), Points, QgsRenderContext::rasterScaleFactor(), QgsRenderContext::scaleFactor(), and size.
Referenced by QgsPalLabeling::drawLabelBackground(), QgsPalLabeling::drawLabelBuffer(), QgsPalLabeling::drawLabelShadow(), and sizeToPixel().
void QgsPalLayerSettings::setDataDefinedProperty | ( | QgsPalLayerSettings::DataDefinedProperties | p, |
bool | active, | ||
bool | useExpr, | ||
const QString & | expr, | ||
const QString & | field | ||
) |
Set a property as data defined.
Definition at line 1123 of file qgspallabeling.cpp.
References dataDefinedProperties, QgsDataDefined::setActive(), QgsDataDefined::setExpressionString(), QgsDataDefined::setField(), and QgsDataDefined::setUseExpression().
int QgsPalLayerSettings::sizeToPixel | ( | double | size, |
const QgsRenderContext & | c, | ||
SizeUnit | unit, | ||
bool | rasterfactor = false |
||
) | const |
Calculates pixel size (considering output size should be in pixel or map units, scale factors and optionally oversampling)
size | size to convert |
c | rendercontext |
unit | SizeUnit enum value of size |
rasterfactor | whether to consider oversampling |
Definition at line 3015 of file qgspallabeling.cpp.
References scaleToPixelContext().
Referenced by parseTextStyle(), and registerFeature().
QString QgsPalLayerSettings::updateDataDefinedString | ( | const QString & | value | ) |
Convert old property value to new one as delimited values.
Definition at line 1157 of file qgspallabeling.cpp.
Referenced by readDataDefinedProperty().
|
private |
Definition at line 654 of file qgspallabeling.cpp.
References QgsMapLayer::customProperty(), QgsDataDefined::expressionString(), QgsDataDefined::field(), QgsDataDefined::isActive(), mDataDefinedNames, QgsMapLayer::removeCustomProperty(), QgsMapLayer::setCustomProperty(), and QgsDataDefined::useExpression().
Referenced by writeToLayer().
void QgsPalLayerSettings::writeToLayer | ( | QgsVectorLayer * | layer | ) |
Definition at line 998 of file qgspallabeling.cpp.
References _writeColor(), addDirectionSymbol, angleOffset, blendMode, bufferBlendMode, bufferColor, bufferDraw, bufferJoinStyle, bufferNoFill, bufferSize, bufferSizeInMapUnits, bufferTransp, centroidWhole, dataDefinedProperties, decimals, displayAll, dist, distInMapUnits, enabled, fieldName, fontLimitPixelSize, fontMaxPixelSize, fontMinPixelSize, fontSizeInMapUnits, formatNumbers, QgsMapRenderer::getBlendModeEnum(), isExpression, labelOffsetInMapUnits, labelPerPart, leftDirectionSymbol, limitNumLabels, maxCurvedCharAngleIn, maxCurvedCharAngleOut, maxNumLabels, mergeLines, minFeatureSize, multilineAlign, multilineHeight, obstacle, placeDirectionSymbol, placement, placementFlags, plusSign, preserveRotation, previewBkgrdColor, priority, quadOffset, reverseDirectionSymbol, rightDirectionSymbol, scaleMax, scaleMin, scaleVisibility, QgsMapLayer::setCustomProperty(), shadowBlendMode, shadowColor, shadowDraw, shadowOffsetAngle, shadowOffsetDist, shadowOffsetGlobal, shadowOffsetUnits, shadowRadius, shadowRadiusAlphaOnly, shadowRadiusUnits, shadowScale, shadowTransparency, shadowUnder, shapeBlendMode, shapeBorderColor, shapeBorderWidth, shapeBorderWidthUnits, shapeDraw, shapeFillColor, shapeJoinStyle, shapeOffset, shapeOffsetUnits, shapeRadii, shapeRadiiUnits, shapeRotation, shapeRotationType, shapeSize, shapeSizeType, shapeSizeUnits, shapeSVGFile, shapeTransparency, shapeType, textColor, textFont, textNamedStyle, textTransp, upsidedownLabels, wrapChar, writeDataDefinedPropertyMap(), xOffset, and yOffset.
bool QgsPalLayerSettings::addDirectionSymbol |
Definition at line 297 of file qgspallabeling.h.
Referenced by calculateLabelSize(), QgsPalLabeling::dataDefinedTextFormatting(), QgsPalLabeling::drawLabel(), parseTextFormatting(), QgsPalLayerSettings(), readFromLayer(), and writeToLayer().
double QgsPalLayerSettings::angleOffset |
Definition at line 372 of file qgspallabeling.h.
Referenced by QgsPalLayerSettings(), readFromLayer(), registerFeature(), and writeToLayer().
QPainter::CompositionMode QgsPalLayerSettings::blendMode |
Definition at line 285 of file qgspallabeling.h.
Referenced by QgsComposerMap::containsAdvancedEffects(), QgsPalLabeling::dataDefinedTextStyle(), QgsPalLabeling::drawLabel(), QgsPalLayerSettings(), readFromLayer(), and writeToLayer().
QPainter::CompositionMode QgsPalLayerSettings::bufferBlendMode |
Definition at line 316 of file qgspallabeling.h.
Referenced by QgsComposerMap::containsAdvancedEffects(), QgsPalLabeling::dataDefinedTextBuffer(), QgsPalLabeling::drawLabelBuffer(), QgsPalLayerSettings(), readFromLayer(), and writeToLayer().
QColor QgsPalLayerSettings::bufferColor |
Definition at line 312 of file qgspallabeling.h.
Referenced by QgsPalLabeling::dataDefinedTextBuffer(), QgsPalLabeling::drawLabelBuffer(), QgsPalLayerSettings(), readFromLayer(), and writeToLayer().
bool QgsPalLayerSettings::bufferDraw |
Definition at line 309 of file qgspallabeling.h.
Referenced by QgsPalLabeling::dataDefinedTextBuffer(), QgsPalLabeling::drawLabeling(), parseTextBuffer(), QgsPalLayerSettings(), readDataDefinedProperty(), readFromLayer(), and writeToLayer().
Qt::PenJoinStyle QgsPalLayerSettings::bufferJoinStyle |
Definition at line 315 of file qgspallabeling.h.
Referenced by QgsPalLabeling::dataDefinedTextBuffer(), QgsPalLabeling::drawLabelBuffer(), QgsPalLayerSettings(), readFromLayer(), and writeToLayer().
bool QgsPalLayerSettings::bufferNoFill |
Definition at line 313 of file qgspallabeling.h.
Referenced by QgsPalLabeling::drawLabelBuffer(), QgsPalLayerSettings(), readFromLayer(), and writeToLayer().
double QgsPalLayerSettings::bufferSize |
Definition at line 310 of file qgspallabeling.h.
Referenced by QgsComposerMap::containsAdvancedEffects(), QgsPalLabeling::dataDefinedTextBuffer(), QgsPalLabeling::drawLabelBuffer(), parseTextBuffer(), QgsPalLayerSettings(), readFromLayer(), and writeToLayer().
bool QgsPalLayerSettings::bufferSizeInMapUnits |
Definition at line 311 of file qgspallabeling.h.
Referenced by QgsPalLabeling::dataDefinedTextBuffer(), QgsPalLabeling::drawLabelBuffer(), QgsPalLayerSettings(), readFromLayer(), and writeToLayer().
int QgsPalLayerSettings::bufferTransp |
Definition at line 314 of file qgspallabeling.h.
Referenced by QgsPalLabeling::dataDefinedTextBuffer(), parseTextBuffer(), QgsPalLayerSettings(), readFromLayer(), and writeToLayer().
bool QgsPalLayerSettings::centroidWhole |
Definition at line 361 of file qgspallabeling.h.
Referenced by QgsPalLayerSettings(), readFromLayer(), registerFeature(), and writeToLayer().
const QgsCoordinateTransform* QgsPalLayerSettings::ct |
Definition at line 496 of file qgspallabeling.h.
Referenced by QgsPalLabeling::prepareLayer(), QgsPalLayerSettings(), registerFeature(), and ~QgsPalLayerSettings().
QMap< QgsPalLayerSettings::DataDefinedProperties, QgsDataDefined* > QgsPalLayerSettings::dataDefinedProperties |
Map of current data defined properties.
Definition at line 461 of file qgspallabeling.h.
Referenced by QgsPalLabeling::clearActiveLayer(), dataDefinedIsActive(), dataDefinedMap(), dataDefinedProperty(), dataDefinedUseExpression(), dataDefinedValue(), QgsPalLabeling::prepareLayer(), QgsPalLayerSettings(), readFromLayer(), removeDataDefinedProperty(), setDataDefinedProperty(), writeToLayer(), and ~QgsPalLayerSettings().
|
private |
Definition at line 543 of file qgspallabeling.h.
Referenced by calculateLabelSize(), dataDefinedValEval(), parseDropShadow(), parseShapeBackground(), parseTextBuffer(), parseTextFormatting(), and registerFeature().
int QgsPalLayerSettings::decimals |
Definition at line 304 of file qgspallabeling.h.
Referenced by QgsPalLayerSettings(), readFromLayer(), registerFeature(), and writeToLayer().
bool QgsPalLayerSettings::displayAll |
Definition at line 390 of file qgspallabeling.h.
Referenced by QgsPalLabeling::prepareLayer(), QgsPalLayerSettings(), readFromLayer(), and writeToLayer().
double QgsPalLayerSettings::dist |
Definition at line 362 of file qgspallabeling.h.
Referenced by QgsPalLayerSettings(), readFromLayer(), registerFeature(), and writeToLayer().
bool QgsPalLayerSettings::distInMapUnits |
Definition at line 363 of file qgspallabeling.h.
Referenced by QgsPalLayerSettings(), readFromLayer(), registerFeature(), and writeToLayer().
bool QgsPalLayerSettings::enabled |
Definition at line 266 of file qgspallabeling.h.
Referenced by QgsPalLayerSettings(), readFromLayer(), and writeToLayer().
|
private |
Definition at line 544 of file qgspallabeling.h.
Referenced by getLabelExpression(), QgsPalLayerSettings(), and ~QgsPalLayerSettings().
QgsGeometry* QgsPalLayerSettings::extentGeom |
Definition at line 499 of file qgspallabeling.h.
Referenced by QgsPalLabeling::prepareLayer(), QgsPalLayerSettings(), registerFeature(), and ~QgsPalLayerSettings().
int QgsPalLayerSettings::fieldIndex |
Definition at line 494 of file qgspallabeling.h.
Referenced by QgsPalLabeling::prepareLayer(), and registerFeature().
QString QgsPalLayerSettings::fieldName |
Definition at line 270 of file qgspallabeling.h.
Referenced by getLabelExpression(), QgsPalLayerSettings(), readFromLayer(), and writeToLayer().
bool QgsPalLayerSettings::fontLimitPixelSize |
Definition at line 386 of file qgspallabeling.h.
Referenced by QgsPalLayerSettings(), readFromLayer(), registerFeature(), and writeToLayer().
int QgsPalLayerSettings::fontMaxPixelSize |
Definition at line 388 of file qgspallabeling.h.
Referenced by QgsPalLayerSettings(), readFromLayer(), registerFeature(), and writeToLayer().
int QgsPalLayerSettings::fontMinPixelSize |
Definition at line 387 of file qgspallabeling.h.
Referenced by QgsPalLayerSettings(), readFromLayer(), registerFeature(), and writeToLayer().
bool QgsPalLayerSettings::fontSizeInMapUnits |
Definition at line 282 of file qgspallabeling.h.
Referenced by QgsPalLayerSettings(), readFromLayer(), registerFeature(), and writeToLayer().
bool QgsPalLayerSettings::formatNumbers |
Definition at line 303 of file qgspallabeling.h.
Referenced by QgsPalLayerSettings(), readFromLayer(), registerFeature(), and writeToLayer().
QList<QgsPalGeometry*> QgsPalLayerSettings::geometries |
Definition at line 498 of file qgspallabeling.h.
Referenced by QgsPalLabeling::drawLabeling(), and registerFeature().
bool QgsPalLayerSettings::isExpression |
Is this label made from a expression string eg FieldName || 'mm'.
Definition at line 274 of file qgspallabeling.h.
Referenced by QgsPalLabeling::prepareLayer(), QgsPalLayerSettings(), readFromLayer(), registerFeature(), and writeToLayer().
bool QgsPalLayerSettings::labelOffsetInMapUnits |
Definition at line 371 of file qgspallabeling.h.
Referenced by QgsPalLayerSettings(), readFromLayer(), registerFeature(), and writeToLayer().
bool QgsPalLayerSettings::labelPerPart |
Definition at line 393 of file qgspallabeling.h.
Referenced by QgsPalLabeling::prepareLayer(), QgsPalLayerSettings(), readFromLayer(), and writeToLayer().
QString QgsPalLayerSettings::leftDirectionSymbol |
Definition at line 298 of file qgspallabeling.h.
Referenced by calculateLabelSize(), QgsPalLabeling::dataDefinedTextFormatting(), QgsPalLabeling::drawLabel(), QgsPalLayerSettings(), readFromLayer(), and writeToLayer().
bool QgsPalLayerSettings::limitNumLabels |
Definition at line 396 of file qgspallabeling.h.
Referenced by QgsPalLabeling::drawLabeling(), QgsVectorLayer::prepareLabelingAndDiagrams(), QgsPalLayerSettings(), readFromLayer(), registerFeature(), and writeToLayer().
double QgsPalLayerSettings::maxCurvedCharAngleIn |
Definition at line 375 of file qgspallabeling.h.
Referenced by QgsPalLayerSettings(), readFromLayer(), registerFeature(), and writeToLayer().
double QgsPalLayerSettings::maxCurvedCharAngleOut |
Definition at line 376 of file qgspallabeling.h.
Referenced by QgsPalLayerSettings(), readFromLayer(), registerFeature(), and writeToLayer().
int QgsPalLayerSettings::maxNumLabels |
Definition at line 397 of file qgspallabeling.h.
Referenced by QgsPalLabeling::drawLabeling(), QgsVectorLayer::prepareLabelingAndDiagrams(), QgsPalLayerSettings(), readFromLayer(), registerFeature(), and writeToLayer().
QgsFeature* QgsPalLayerSettings::mCurFeat |
Definition at line 492 of file qgspallabeling.h.
Referenced by calculateLabelSize(), dataDefinedEvaluate(), and registerFeature().
const QgsFields* QgsPalLayerSettings::mCurFields |
Definition at line 493 of file qgspallabeling.h.
Referenced by calculateLabelSize(), dataDefinedEvaluate(), and QgsPalLabeling::prepareLayer().
|
private |
Definition at line 545 of file qgspallabeling.h.
Referenced by dataDefinedValEval(), QgsPalLayerSettings(), readDataDefinedProperty(), readDataDefinedPropertyMap(), and writeDataDefinedPropertyMap().
bool QgsPalLayerSettings::mergeLines |
Definition at line 394 of file qgspallabeling.h.
Referenced by QgsPalLabeling::prepareLayer(), QgsPalLayerSettings(), readFromLayer(), and writeToLayer().
int QgsPalLayerSettings::mFeatsRegPal |
Definition at line 502 of file qgspallabeling.h.
Referenced by registerFeature().
int QgsPalLayerSettings::mFeatsSendingToPal |
Definition at line 501 of file qgspallabeling.h.
Referenced by QgsPalLabeling::drawLabeling(), QgsPalLabeling::prepareLayer(), and registerFeature().
int QgsPalLayerSettings::mFeaturesToLabel |
Definition at line 500 of file qgspallabeling.h.
Referenced by QgsPalLabeling::drawLabeling(), QgsVectorLayer::prepareLabelingAndDiagrams(), and registerFeature().
|
private |
Definition at line 547 of file qgspallabeling.h.
Referenced by parseTextStyle().
double QgsPalLayerSettings::minFeatureSize |
Definition at line 399 of file qgspallabeling.h.
Referenced by QgsPalLayerSettings(), readFromLayer(), registerFeature(), and writeToLayer().
QString QgsPalLayerSettings::mTextFontFamily |
Definition at line 504 of file qgspallabeling.h.
Referenced by QgsVectorLayer::prepareLabelingAndDiagrams(), QgsPalLayerSettings(), and readFromLayer().
bool QgsPalLayerSettings::mTextFontFound |
Definition at line 505 of file qgspallabeling.h.
Referenced by QgsVectorLayer::prepareLabelingAndDiagrams(), QgsPalLayerSettings(), and readFromLayer().
MultiLineAlign QgsPalLayerSettings::multilineAlign |
Definition at line 292 of file qgspallabeling.h.
Referenced by QgsPalLabeling::dataDefinedTextFormatting(), QgsPalLabeling::drawLabel(), QgsPalLayerSettings(), readFromLayer(), and writeToLayer().
double QgsPalLayerSettings::multilineHeight |
Definition at line 291 of file qgspallabeling.h.
Referenced by calculateLabelSize(), QgsPalLabeling::dataDefinedTextFormatting(), QgsPalLabeling::drawLabel(), QgsPalLayerSettings(), readFromLayer(), and writeToLayer().
bool QgsPalLayerSettings::obstacle |
Definition at line 400 of file qgspallabeling.h.
Referenced by QgsPalLabeling::prepareLayer(), QgsPalLayerSettings(), readFromLayer(), and writeToLayer().
pal::Layer* QgsPalLayerSettings::palLayer |
Definition at line 491 of file qgspallabeling.h.
Referenced by QgsPalLabeling::prepareLayer(), and registerFeature().
DirectionSymbols QgsPalLayerSettings::placeDirectionSymbol |
Definition at line 300 of file qgspallabeling.h.
Referenced by calculateLabelSize(), QgsPalLabeling::dataDefinedTextFormatting(), QgsPalLabeling::drawLabel(), QgsPalLayerSettings(), readFromLayer(), and writeToLayer().
Placement QgsPalLayerSettings::placement |
Definition at line 358 of file qgspallabeling.h.
Referenced by calculateLabelSize(), QgsPalLabeling::drawLabel(), QgsPalLabeling::prepareLayer(), QgsPalLayerSettings(), readFromLayer(), registerFeature(), and writeToLayer().
unsigned int QgsPalLayerSettings::placementFlags |
Definition at line 359 of file qgspallabeling.h.
Referenced by QgsPalLabeling::prepareLayer(), QgsPalLayerSettings(), readFromLayer(), and writeToLayer().
bool QgsPalLayerSettings::plusSign |
Definition at line 305 of file qgspallabeling.h.
Referenced by QgsPalLayerSettings(), readFromLayer(), registerFeature(), and writeToLayer().
bool QgsPalLayerSettings::preserveRotation |
Definition at line 373 of file qgspallabeling.h.
Referenced by QgsPalLayerSettings(), readFromLayer(), and writeToLayer().
QColor QgsPalLayerSettings::previewBkgrdColor |
Definition at line 286 of file qgspallabeling.h.
Referenced by QgsPalLayerSettings(), readFromLayer(), and writeToLayer().
int QgsPalLayerSettings::priority |
Definition at line 378 of file qgspallabeling.h.
Referenced by QgsPalLabeling::prepareLayer(), QgsPalLayerSettings(), readFromLayer(), and writeToLayer().
QgsPoint QgsPalLayerSettings::ptOne |
Definition at line 497 of file qgspallabeling.h.
Referenced by QgsPalLabeling::prepareLayer(), and registerFeature().
QgsPoint QgsPalLayerSettings::ptZero |
Definition at line 497 of file qgspallabeling.h.
Referenced by QgsPalLabeling::prepareLayer().
QuadrantPosition QgsPalLayerSettings::quadOffset |
Definition at line 367 of file qgspallabeling.h.
Referenced by QgsPalLayerSettings(), readFromLayer(), registerFeature(), and writeToLayer().
double QgsPalLayerSettings::rasterCompressFactor |
Definition at line 404 of file qgspallabeling.h.
Referenced by calculateLabelSize(), QgsPalLabeling::drawLabel(), QgsPalLabeling::drawLabelBackground(), QgsPalLabeling::prepareLayer(), QgsPalLayerSettings(), and registerFeature().
bool QgsPalLayerSettings::reverseDirectionSymbol |
Definition at line 301 of file qgspallabeling.h.
Referenced by QgsPalLabeling::dataDefinedTextFormatting(), QgsPalLabeling::drawLabel(), QgsPalLayerSettings(), readFromLayer(), and writeToLayer().
QString QgsPalLayerSettings::rightDirectionSymbol |
Definition at line 299 of file qgspallabeling.h.
Referenced by calculateLabelSize(), QgsPalLabeling::dataDefinedTextFormatting(), QgsPalLabeling::drawLabel(), QgsPalLayerSettings(), readFromLayer(), and writeToLayer().
int QgsPalLayerSettings::scaleMax |
Definition at line 384 of file qgspallabeling.h.
Referenced by QgsPalLayerSettings(), readFromLayer(), registerFeature(), and writeToLayer().
int QgsPalLayerSettings::scaleMin |
Definition at line 383 of file qgspallabeling.h.
Referenced by QgsPalLayerSettings(), readFromLayer(), registerFeature(), and writeToLayer().
bool QgsPalLayerSettings::scaleVisibility |
Definition at line 382 of file qgspallabeling.h.
Referenced by QgsPalLayerSettings(), readDataDefinedProperty(), readFromLayer(), registerFeature(), and writeToLayer().
QPainter::CompositionMode QgsPalLayerSettings::shadowBlendMode |
Definition at line 354 of file qgspallabeling.h.
Referenced by QgsComposerMap::containsAdvancedEffects(), QgsPalLabeling::dataDefinedDropShadow(), QgsPalLabeling::drawLabelShadow(), QgsPalLayerSettings(), readFromLayer(), and writeToLayer().
QColor QgsPalLayerSettings::shadowColor |
Definition at line 353 of file qgspallabeling.h.
Referenced by QgsPalLabeling::dataDefinedDropShadow(), QgsPalLabeling::drawLabelBackground(), QgsPalLabeling::drawLabelShadow(), QgsPalLayerSettings(), readFromLayer(), and writeToLayer().
bool QgsPalLayerSettings::shadowDraw |
Definition at line 342 of file qgspallabeling.h.
Referenced by QgsComposerMap::containsAdvancedEffects(), QgsPalLabeling::dataDefinedDropShadow(), QgsPalLabeling::drawLabel(), QgsPalLabeling::drawLabelBackground(), QgsPalLabeling::drawLabelBuffer(), QgsPalLabeling::drawLabeling(), parseDropShadow(), QgsPalLayerSettings(), readFromLayer(), and writeToLayer().
int QgsPalLayerSettings::shadowOffsetAngle |
Definition at line 344 of file qgspallabeling.h.
Referenced by QgsPalLabeling::dataDefinedDropShadow(), QgsPalLabeling::drawLabelShadow(), QgsPalLayerSettings(), readFromLayer(), and writeToLayer().
double QgsPalLayerSettings::shadowOffsetDist |
Definition at line 345 of file qgspallabeling.h.
Referenced by QgsPalLabeling::dataDefinedDropShadow(), QgsPalLabeling::drawLabelShadow(), parseDropShadow(), QgsPalLayerSettings(), readFromLayer(), and writeToLayer().
bool QgsPalLayerSettings::shadowOffsetGlobal |
Definition at line 347 of file qgspallabeling.h.
Referenced by QgsPalLabeling::drawLabelShadow(), QgsPalLayerSettings(), readFromLayer(), and writeToLayer().
SizeUnit QgsPalLayerSettings::shadowOffsetUnits |
Definition at line 346 of file qgspallabeling.h.
Referenced by QgsPalLabeling::dataDefinedDropShadow(), QgsPalLabeling::drawLabelShadow(), QgsPalLayerSettings(), readFromLayer(), and writeToLayer().
double QgsPalLayerSettings::shadowRadius |
Definition at line 348 of file qgspallabeling.h.
Referenced by QgsPalLabeling::dataDefinedDropShadow(), QgsPalLabeling::drawLabelShadow(), parseDropShadow(), QgsPalLayerSettings(), readFromLayer(), and writeToLayer().
bool QgsPalLayerSettings::shadowRadiusAlphaOnly |
Definition at line 350 of file qgspallabeling.h.
Referenced by QgsPalLabeling::drawLabelShadow(), QgsPalLayerSettings(), readFromLayer(), and writeToLayer().
SizeUnit QgsPalLayerSettings::shadowRadiusUnits |
Definition at line 349 of file qgspallabeling.h.
Referenced by QgsPalLabeling::dataDefinedDropShadow(), QgsPalLabeling::drawLabelShadow(), QgsPalLayerSettings(), readFromLayer(), and writeToLayer().
int QgsPalLayerSettings::shadowScale |
Definition at line 352 of file qgspallabeling.h.
Referenced by QgsPalLabeling::dataDefinedDropShadow(), QgsPalLabeling::drawLabelShadow(), QgsPalLayerSettings(), readFromLayer(), and writeToLayer().
int QgsPalLayerSettings::shadowTransparency |
Definition at line 351 of file qgspallabeling.h.
Referenced by QgsPalLabeling::dataDefinedDropShadow(), QgsPalLabeling::drawLabelShadow(), parseDropShadow(), QgsPalLayerSettings(), readFromLayer(), and writeToLayer().
ShadowType QgsPalLayerSettings::shadowUnder |
Definition at line 343 of file qgspallabeling.h.
Referenced by QgsPalLabeling::dataDefinedDropShadow(), QgsPalLabeling::drawLabel(), QgsPalLabeling::drawLabelBackground(), QgsPalLabeling::drawLabelBuffer(), QgsPalLabeling::drawLabeling(), QgsPalLayerSettings(), readFromLayer(), and writeToLayer().
QPainter::CompositionMode QgsPalLayerSettings::shapeBlendMode |
Definition at line 333 of file qgspallabeling.h.
Referenced by QgsComposerMap::containsAdvancedEffects(), QgsPalLabeling::dataDefinedShapeBackground(), QgsPalLabeling::drawLabelBackground(), QgsPalLayerSettings(), readFromLayer(), and writeToLayer().
QColor QgsPalLayerSettings::shapeBorderColor |
Definition at line 335 of file qgspallabeling.h.
Referenced by QgsPalLabeling::dataDefinedShapeBackground(), QgsPalLabeling::drawLabelBackground(), QgsPalLayerSettings(), readFromLayer(), and writeToLayer().
double QgsPalLayerSettings::shapeBorderWidth |
Definition at line 336 of file qgspallabeling.h.
Referenced by QgsPalLabeling::dataDefinedShapeBackground(), QgsPalLabeling::drawLabelBackground(), QgsPalLayerSettings(), readFromLayer(), and writeToLayer().
SizeUnit QgsPalLayerSettings::shapeBorderWidthUnits |
Definition at line 337 of file qgspallabeling.h.
Referenced by QgsPalLabeling::dataDefinedShapeBackground(), QgsPalLabeling::drawLabelBackground(), QgsPalLayerSettings(), readFromLayer(), and writeToLayer().
bool QgsPalLayerSettings::shapeDraw |
Definition at line 320 of file qgspallabeling.h.
Referenced by QgsComposerMap::containsAdvancedEffects(), QgsPalLabeling::dataDefinedShapeBackground(), QgsPalLabeling::drawLabeling(), parseShapeBackground(), QgsPalLayerSettings(), readFromLayer(), and writeToLayer().
QColor QgsPalLayerSettings::shapeFillColor |
Definition at line 334 of file qgspallabeling.h.
Referenced by QgsPalLabeling::dataDefinedShapeBackground(), QgsPalLabeling::drawLabelBackground(), QgsPalLayerSettings(), readFromLayer(), and writeToLayer().
Qt::PenJoinStyle QgsPalLayerSettings::shapeJoinStyle |
Definition at line 338 of file qgspallabeling.h.
Referenced by QgsPalLabeling::dataDefinedShapeBackground(), QgsPalLabeling::drawLabelBackground(), QgsPalLayerSettings(), readFromLayer(), and writeToLayer().
QPointF QgsPalLayerSettings::shapeOffset |
Definition at line 328 of file qgspallabeling.h.
Referenced by QgsPalLabeling::dataDefinedShapeBackground(), QgsPalLabeling::drawLabelBackground(), QgsPalLayerSettings(), readFromLayer(), and writeToLayer().
SizeUnit QgsPalLayerSettings::shapeOffsetUnits |
Definition at line 329 of file qgspallabeling.h.
Referenced by QgsPalLabeling::dataDefinedShapeBackground(), QgsPalLabeling::drawLabelBackground(), QgsPalLayerSettings(), readFromLayer(), and writeToLayer().
QPointF QgsPalLayerSettings::shapeRadii |
Definition at line 330 of file qgspallabeling.h.
Referenced by QgsPalLabeling::dataDefinedShapeBackground(), QgsPalLabeling::drawLabelBackground(), QgsPalLayerSettings(), readFromLayer(), and writeToLayer().
SizeUnit QgsPalLayerSettings::shapeRadiiUnits |
Definition at line 331 of file qgspallabeling.h.
Referenced by QgsPalLabeling::dataDefinedShapeBackground(), QgsPalLabeling::drawLabelBackground(), QgsPalLayerSettings(), readFromLayer(), and writeToLayer().
double QgsPalLayerSettings::shapeRotation |
Definition at line 327 of file qgspallabeling.h.
Referenced by QgsPalLabeling::dataDefinedShapeBackground(), QgsPalLabeling::drawLabelBackground(), QgsPalLayerSettings(), readFromLayer(), and writeToLayer().
RotationType QgsPalLayerSettings::shapeRotationType |
Definition at line 326 of file qgspallabeling.h.
Referenced by QgsPalLabeling::dataDefinedShapeBackground(), QgsPalLabeling::drawLabelBackground(), QgsPalLayerSettings(), readFromLayer(), and writeToLayer().
QPointF QgsPalLayerSettings::shapeSize |
Definition at line 324 of file qgspallabeling.h.
Referenced by QgsPalLabeling::dataDefinedShapeBackground(), QgsPalLabeling::drawLabelBackground(), parseShapeBackground(), QgsPalLayerSettings(), readFromLayer(), and writeToLayer().
SizeType QgsPalLayerSettings::shapeSizeType |
Definition at line 323 of file qgspallabeling.h.
Referenced by QgsPalLabeling::dataDefinedShapeBackground(), QgsPalLabeling::drawLabelBackground(), parseShapeBackground(), QgsPalLayerSettings(), readFromLayer(), and writeToLayer().
SizeUnit QgsPalLayerSettings::shapeSizeUnits |
Definition at line 325 of file qgspallabeling.h.
Referenced by QgsPalLabeling::dataDefinedShapeBackground(), QgsPalLabeling::drawLabelBackground(), QgsPalLayerSettings(), readFromLayer(), and writeToLayer().
QString QgsPalLayerSettings::shapeSVGFile |
Definition at line 322 of file qgspallabeling.h.
Referenced by QgsPalLabeling::dataDefinedShapeBackground(), QgsPalLabeling::drawLabelBackground(), parseShapeBackground(), QgsPalLayerSettings(), readFromLayer(), and writeToLayer().
int QgsPalLayerSettings::shapeTransparency |
Definition at line 332 of file qgspallabeling.h.
Referenced by QgsPalLabeling::dataDefinedShapeBackground(), QgsPalLabeling::drawLabelBackground(), parseShapeBackground(), QgsPalLayerSettings(), readFromLayer(), and writeToLayer().
ShapeType QgsPalLayerSettings::shapeType |
Definition at line 321 of file qgspallabeling.h.
Referenced by QgsPalLabeling::dataDefinedShapeBackground(), QgsPalLabeling::drawLabelBackground(), parseShapeBackground(), QgsPalLayerSettings(), readFromLayer(), and writeToLayer().
bool QgsPalLayerSettings::showingShadowRects |
Definition at line 507 of file qgspallabeling.h.
Referenced by QgsPalLabeling::drawLabeling(), QgsPalLabeling::drawLabelShadow(), and QgsPalLayerSettings().
QColor QgsPalLayerSettings::textColor |
Definition at line 283 of file qgspallabeling.h.
Referenced by QgsPalLabeling::dataDefinedTextStyle(), QgsPalLabeling::drawLabel(), QgsPalLayerSettings(), readFromLayer(), and writeToLayer().
QFont QgsPalLayerSettings::textFont |
Definition at line 280 of file qgspallabeling.h.
Referenced by QgsPalLabeling::drawLabel(), QgsPalLabeling::drawLabelBuffer(), QgsPalLabeling::drawLabeling(), QgsPalLayerSettings(), readFromLayer(), registerFeature(), and writeToLayer().
QString QgsPalLayerSettings::textNamedStyle |
Definition at line 281 of file qgspallabeling.h.
Referenced by parseTextStyle(), QgsPalLayerSettings(), readFromLayer(), and writeToLayer().
int QgsPalLayerSettings::textTransp |
Definition at line 284 of file qgspallabeling.h.
Referenced by QgsPalLabeling::dataDefinedTextStyle(), QgsPalLayerSettings(), readFromLayer(), and writeToLayer().
unsigned int QgsPalLayerSettings::upsidedownLabels |
Definition at line 391 of file qgspallabeling.h.
Referenced by QgsPalLabeling::prepareLayer(), QgsPalLayerSettings(), readFromLayer(), and writeToLayer().
double QgsPalLayerSettings::vectorScaleFactor |
Definition at line 403 of file qgspallabeling.h.
Referenced by QgsPalLabeling::drawLabelShadow(), QgsPalLabeling::prepareLayer(), QgsPalLayerSettings(), and registerFeature().
QString QgsPalLayerSettings::wrapChar |
Definition at line 290 of file qgspallabeling.h.
Referenced by calculateLabelSize(), QgsPalLabeling::dataDefinedTextFormatting(), QgsPalLabeling::drawLabel(), parseTextFormatting(), QgsPalLayerSettings(), readFromLayer(), and writeToLayer().
const QgsMapToPixel* QgsPalLayerSettings::xform |
Definition at line 495 of file qgspallabeling.h.
Referenced by QgsPalLabeling::prepareLayer().
double QgsPalLayerSettings::xOffset |
Definition at line 369 of file qgspallabeling.h.
Referenced by QgsPalLayerSettings(), readFromLayer(), registerFeature(), and writeToLayer().
double QgsPalLayerSettings::yOffset |
Definition at line 370 of file qgspallabeling.h.
Referenced by QgsPalLayerSettings(), readFromLayer(), registerFeature(), and writeToLayer().