|
QGIS API Documentation 3.99.0-Master (09f76ad7019)
|
Helper class to manipulate blank segments. More...
#include <qgsblanksegmentutils.h>
Public Types | |
| typedef QList< QPair< double, double > > | BlankSegments |
Static Public Member Functions | |
| static QList< QList< BlankSegments > > | parseBlankSegments (const QString &strBlankSegments, const QgsRenderContext &renderContext, Qgis::RenderUnit unit, QString &error) |
| Parse blank segments string representation strBlankSegments. | |
Helper class to manipulate blank segments.
Definition at line 33 of file qgsblanksegmentutils.h.
| typedef QList<QPair<double, double> > QgsBlankSegmentUtils::BlankSegments |
Definition at line 37 of file qgsblanksegmentutils.h.
|
static |
Parse blank segments string representation strBlankSegments.
Blank segments format is expected to be in the form (((2.90402 7.36,11.8776 30.4499),()),((2 7))) with 3 levels of parenthesis like MultiPolygon to deal with multi parts and inner rings. Empty opening-closing parenthesis are allowed to define the lack of blank segments for some multi part or inner rings.
The blank segments are expected to be expressed in unit and converted in pixels regarding render context renderContext error is populated with a descritive message if the string representation is not well formatted Returns a list of start and end distance expressed in pixels for each part and rings
Definition at line 24 of file qgsblanksegmentutils.cpp.