QGIS API Documentation  2.18.21-Las Palmas (9fba24a)
Functions
qgssymbollayerv2utils.cpp File Reference
#include "qgssymbollayerv2utils.h"
#include "qgssymbollayerv2.h"
#include "qgssymbollayerv2registry.h"
#include "qgssymbolv2.h"
#include "qgsvectorcolorrampv2.h"
#include "qgsexpression.h"
#include "qgspainteffect.h"
#include "qgspainteffectregistry.h"
#include "qgsapplication.h"
#include "qgsproject.h"
#include "qgsogcutils.h"
#include "qgslogger.h"
#include "qgsrendercontext.h"
#include "qgsunittypes.h"
#include <QColor>
#include <QFont>
#include <QDomDocument>
#include <QDomNode>
#include <QDomElement>
#include <QIcon>
#include <QPainter>
#include <QSettings>
#include <QRegExp>
#include <QPicture>
#include <QPolygonF>
#include <cmath>
#include <cfloat>
Include dependency graph for qgssymbollayerv2utils.cpp:

Go to the source code of this file.

Functions

static QString _nameForSymbolType (QgsSymbolV2::SymbolType type)
 
static bool lineInfo (QPointF p1, QPointF p2, double &angle, double &t)
 
static QPointF linesIntersection (QPointF p1, double t1, QPointF p2, double t2)
 
QList< QPolygonFoffsetLine (QPolygonF polyline, double dist, QGis::GeometryType geometryType)
 calculate geometry shifted by a specified distance More...
 
QList< QPolygonFoffsetLine (const QPolygonF &polyline, double dist)
 
static QPointF offsetPoint (QPointF pt, double angle, double dist)
 

Function Documentation

◆ _nameForSymbolType()

static QString _nameForSymbolType ( QgsSymbolV2::SymbolType  type)
static

Definition at line 1053 of file qgssymbollayerv2utils.cpp.

◆ lineInfo()

static bool lineInfo ( QPointF  p1,
QPointF  p2,
double &  angle,
double &  t 
)
static

Definition at line 712 of file qgssymbollayerv2utils.cpp.

◆ linesIntersection()

static QPointF linesIntersection ( QPointF  p1,
double  t1,
QPointF  p2,
double  t2 
)
static

Definition at line 742 of file qgssymbollayerv2utils.cpp.

◆ offsetLine() [1/2]

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

calculate geometry shifted by a specified distance

Definition at line 799 of file qgssymbollayerv2utils.cpp.

◆ offsetLine() [2/2]

QList<QPolygonF> offsetLine ( const QPolygonF polyline,
double  dist 
)
Deprecated:
since 2.4 - calculate line shifted by a specified distance

Definition at line 927 of file qgssymbollayerv2utils.cpp.

◆ offsetPoint()

static QPointF offsetPoint ( QPointF  pt,
double  angle,
double  dist 
)
static

Definition at line 736 of file qgssymbollayerv2utils.cpp.