QGIS API Documentation
2.4.0-Chugiak
|
#include <QMap>
#include <Qt>
#include <QtCore>
#include <QFont>
#include <QColor>
#include "qgssymbolv2.h"
#include "qgis.h"
#include "qgsmapunitscale.h"
Go to the source code of this file.
Classes | |
class | QgsSymbolLayerV2Utils |
Typedefs | |
typedef QMap< QString, QString > | QgsStringMap |
typedef QMap< QString, QgsSymbolV2 * > | QgsSymbolV2Map |
Functions | |
QList< QPolygonF > | offsetLine (QPolygonF polyline, double dist) |
QList< QPolygonF > | offsetLine (QPolygonF polyline, double dist, QGis::GeometryType geometryType) |
calculate geometry shifted by a specified distance More... | |
typedef QMap<QString, QString> QgsStringMap |
Definition at line 31 of file qgssymbollayerv2utils.h.
typedef QMap<QString, QgsSymbolV2* > QgsSymbolV2Map |
Definition at line 34 of file qgssymbollayerv2utils.h.
QList<QPolygonF> offsetLine | ( | QPolygonF | polyline, |
double | dist | ||
) |
Definition at line 808 of file qgssymbollayerv2utils.cpp.
References QGis::Line, offsetLine(), QGis::Point, and QGis::Polygon.
QList<QPolygonF> offsetLine | ( | QPolygonF | polyline, |
double | dist, | ||
QGis::GeometryType | geometryType | ||
) |
calculate geometry shifted by a specified distance
Definition at line 685 of file qgssymbollayerv2utils.cpp.
References MathUtils::angle(), QgsGeometry::asMultiPolygon(), QgsGeometry::asMultiPolyline(), QgsGeometry::asPolygon(), QgsGeometry::asPolyline(), QgsGeometry::buffer(), QGis::flatType(), QgsGeometry::fromPolygon(), QgsGeometry::fromPolyline(), lineInfo(), linesIntersection(), M_PI, QgsGeometry::offsetCurve(), offsetPoint(), QGis::Polygon, QGis::WKBLineString, QGis::WKBMultiLineString, QGis::WKBMultiPolygon, QGis::WKBPolygon, and QgsGeometry::wkbType().
Referenced by offsetLine(), QgsSimpleLineSymbolLayerV2::renderPolyline(), and QgsMarkerLineSymbolLayerV2::renderPolyline().