QGIS API Documentation 3.99.0-Master (2fe06baccd8)
Loading...
Searching...
No Matches
qgssymbollayerutils.cpp File Reference
#include "qgssymbollayerutils.h"
#include "qgsapplication.h"
#include "qgscolorramp.h"
#include "qgscolorrampimpl.h"
#include "qgscolorutils.h"
#include "qgscurvepolygon.h"
#include "qgsexpression.h"
#include "qgsexpressioncontextutils.h"
#include "qgsexpressionnode.h"
#include "qgsfillsymbol.h"
#include "qgsfillsymbollayer.h"
#include "qgslinesymbol.h"
#include "qgslinesymbollayer.h"
#include "qgslogger.h"
#include "qgsmarkersymbol.h"
#include "qgsmarkersymbollayer.h"
#include "qgsmasksymbollayer.h"
#include "qgsogcutils.h"
#include "qgspainteffect.h"
#include "qgspainteffectregistry.h"
#include "qgspathresolver.h"
#include "qgsreadwritecontext.h"
#include "qgsrendercontext.h"
#include "qgsrenderer.h"
#include "qgssldexportcontext.h"
#include "qgsstyleentityvisitor.h"
#include "qgssymbol.h"
#include "qgssymbollayer.h"
#include "qgssymbollayerreference.h"
#include "qgssymbollayerregistry.h"
#include "qgsunittypes.h"
#include "qgsxmlutils.h"
#include <QColor>
#include <QDir>
#include <QDomDocument>
#include <QDomElement>
#include <QDomNode>
#include <QFont>
#include <QIcon>
#include <QMimeData>
#include <QPainter>
#include <QPicture>
#include <QRegularExpression>
#include <QSettings>
#include <QUrl>
#include <QUrlQuery>
#include <qmath.h>
#include <QPolygonF>
#include <cmath>
#include <cfloat>
Include dependency graph for qgssymbollayerutils.cpp:

Go to the source code of this file.

Macros

#define POINTS_TO_MM   2.83464567

Functions

template<typename Functor>
void changeSymbolLayerIds (QgsSymbol *symbol, Functor &&generateId)
template<typename Functor>
void changeSymbolLayerIds (QgsSymbolLayer *sl, Functor &&generateId)
QPolygonF curveToPolygonF (const QgsCurve *curve)
QPolygonF lineStringToQPolygonF (const QgsLineString *line)
QList< QPolygonF > offsetLine (QPolygonF polyline, double dist, Qgis::GeometryType geometryType)
 calculate geometry shifted by a specified distance

Macro Definition Documentation

◆ POINTS_TO_MM

#define POINTS_TO_MM   2.83464567

Definition at line 66 of file qgssymbollayerutils.cpp.

Function Documentation

◆ changeSymbolLayerIds() [1/2]

template<typename Functor>
void changeSymbolLayerIds ( QgsSymbol * symbol,
Functor && generateId )

Definition at line 5722 of file qgssymbollayerutils.cpp.

◆ changeSymbolLayerIds() [2/2]

template<typename Functor>
void changeSymbolLayerIds ( QgsSymbolLayer * sl,
Functor && generateId )

Definition at line 5711 of file qgssymbollayerutils.cpp.

◆ curveToPolygonF()

QPolygonF curveToPolygonF ( const QgsCurve * curve)

Definition at line 4616 of file qgssymbollayerutils.cpp.

◆ lineStringToQPolygonF()

QPolygonF lineStringToQPolygonF ( const QgsLineString * line)

Definition at line 4602 of file qgssymbollayerutils.cpp.

◆ offsetLine()

QList< QPolygonF > offsetLine ( QPolygonF polyline,
double dist,
Qgis::GeometryType geometryType )

calculate geometry shifted by a specified distance

Definition at line 1206 of file qgssymbollayerutils.cpp.