|
Quantum GIS API Documentation
1.8
|
#include "qgssymbollayerv2utils.h"#include "qgssymbollayerv2.h"#include "qgssymbollayerv2registry.h"#include "qgssymbolv2.h"#include "qgsvectorcolorrampv2.h"#include "qgsexpression.h"#include "qgslogger.h"#include "qgsrendercontext.h"#include <QColor>#include <QFont>#include <QDomDocument>#include <QDomNode>#include <QDomElement>#include <QIcon>#include <QPainter>#include <QPolygonF>#include <cmath>#include <cfloat>
Go to the source code of this file.
Functions | |
| static bool | lineInfo (QPointF p1, QPointF p2, double &angle, double &t) |
| static QPointF | offsetPoint (QPointF pt, double angle, double dist) |
| static QPointF | linesIntersection (QPointF p1, double t1, QPointF p2, double t2) |
| QPolygonF | offsetLine (QPolygonF polyline, double dist) |
| calculate line shifted by a specified distance | |
| static QString | _nameForSymbolType (QgsSymbolV2::SymbolType type) |
| static bool | _QVariantLessThan (const QVariant &lhs, const QVariant &rhs) |
| static bool | _QVariantGreaterThan (const QVariant &lhs, const QVariant &rhs) |
| static QString _nameForSymbolType | ( | QgsSymbolV2::SymbolType | type | ) | [static] |
Definition at line 697 of file qgssymbollayerv2utils.cpp.
References QgsSymbolV2::Fill, QgsSymbolV2::Line, and QgsSymbolV2::Marker.
Referenced by QgsSymbolLayerV2Utils::saveSymbol().
| static bool _QVariantGreaterThan | ( | const QVariant & | lhs, |
| const QVariant & | rhs | ||
| ) | [static] |
Definition at line 2436 of file qgssymbollayerv2utils.cpp.
References _QVariantLessThan().
Referenced by QgsSymbolLayerV2Utils::sortVariantList().
| static bool _QVariantLessThan | ( | const QVariant & | lhs, |
| const QVariant & | rhs | ||
| ) | [static] |
Definition at line 2409 of file qgssymbollayerv2utils.cpp.
Referenced by _QVariantGreaterThan(), and QgsSymbolLayerV2Utils::sortVariantList().
| static bool lineInfo | ( | QPointF | p1, |
| QPointF | p2, | ||
| double & | angle, | ||
| double & | t | ||
| ) | [static] |
Definition at line 515 of file qgssymbollayerv2utils.cpp.
References M_PI.
Referenced by offsetLine().
| static QPointF linesIntersection | ( | QPointF | p1, |
| double | t1, | ||
| QPointF | p2, | ||
| double | t2 | ||
| ) | [static] |
Definition at line 545 of file qgssymbollayerv2utils.cpp.
Referenced by offsetLine().
| QPolygonF offsetLine | ( | QPolygonF | polyline, |
| double | dist | ||
| ) |
calculate line shifted by a specified distance
Definition at line 575 of file qgssymbollayerv2utils.cpp.
References MathUtils::angle(), lineInfo(), linesIntersection(), M_PI, and offsetPoint().
Referenced by QgsSimpleLineSymbolLayerV2::renderPolyline(), and QgsMarkerLineSymbolLayerV2::renderPolyline().
| static QPointF offsetPoint | ( | QPointF | pt, |
| double | angle, | ||
| double | dist | ||
| ) | [static] |
Definition at line 539 of file qgssymbollayerv2utils.cpp.
Referenced by offsetLine().
1.7.6.1