QGIS API Documentation 3.99.0-Master (09f76ad7019)
Loading...
Searching...
No Matches
QgsBlankSegmentUtils Class Reference

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.

Detailed Description

Helper class to manipulate blank segments.

Since
QGIS 4.0

Definition at line 33 of file qgsblanksegmentutils.h.

Member Typedef Documentation

◆ BlankSegments

typedef QList<QPair<double, double> > QgsBlankSegmentUtils::BlankSegments

Definition at line 37 of file qgsblanksegmentutils.h.

Member Function Documentation

◆ parseBlankSegments()

QList< QList< QgsBlankSegmentUtils::BlankSegments > > QgsBlankSegmentUtils::parseBlankSegments ( const QString & strBlankSegments,
const QgsRenderContext & renderContext,
Qgis::RenderUnit unit,
QString & error )
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

Since
QGIS 4.0

Definition at line 24 of file qgsblanksegmentutils.cpp.


The documentation for this class was generated from the following files: