60 for (
int i = 0; i < 4; ++i )
72 bool prependSymb =
false;
98 symb = symb + wrapchr;
103 symb = wrapchr + symb;
116 txt = txt.
replace( wrapchr,
"\\P" );
QgsFeatureId id() const
Get the feature ID for this feature.
QString & append(QChar ch)
QString leftDirectionSymbol
QgsLabelFeature * feature()
Returns the parent feature.
void append(const T &value)
QgsDxfLabelProvider(QgsVectorLayer *layer, QgsDxfExport *dxf)
construct the provider
QString & prepend(QChar ch)
Class that adds extra information to QgsLabelFeature for text labels.
The QgsVectorLayerLabelProvider class implements a label provider for vector layers.
FeaturePart * getFeaturePart()
return the feature corresponding to this labelposition
The feature class encapsulates a single feature including its id, geometry and a list of field/values...
virtual void drawLabel(QgsRenderContext &context, pal::LabelPosition *label) const override
re-implementation that writes to DXF file instead of drawing with QPainter
bool reverseDirectionSymbol
QgsPalLayerSettings mSettings
Layer's labeling configuration.
double getY(int i=0) const
get the down-left y coordinate
double getX(int i=0) const
get the down-left x coordinate
A class to represent a point.
void writePolyline(const QgsPolyline &line, const QString &layer, const QString &lineStyleName, const QColor &color, double width=-1)
Draw dxf primitives (LWPOLYLINE)
QMap< QgsFeatureId, QString > mDxfLayerNames
DXF layer name for each label feature.
double ANALYSIS_EXPORT angle(Point3D *p1, Point3D *p2, Point3D *p3, Point3D *p4)
Calculates the angle between two segments (in 2 dimension, z-values are ignored)
virtual void registerFeature(QgsFeature &feature, QgsRenderContext &context, QgsGeometry *obstacleGeometry=nullptr)
Register a feature for labeling as one or more QgsLabelFeature objects stored into mLabels...
double getAlpha() const
get alpha
QString rightDirectionSymbol
QString & replace(int position, int n, QChar after)
Arranges candidates over a point (or centroid of a polygon), or at a preset offset from the point...
Contains information about the context of a rendering operation.
QString text(int partId) const
Returns the text component corresponding to a specified label part.
QgsDxfExport * mDxfExport
pointer to parent DXF export where this instance is used
LabelPosition is a candidate feature label position.
void registerDxfFeature(QgsFeature &feature, QgsRenderContext &context, const QString &dxfLayerName)
registration method that keeps track of DXF layer names of individual features
Represents a vector layer which manages a vector based data sets.
void writeMText(const QString &layer, const QString &text, const QgsPoint &pt, double width, double angle, const QColor &color)
Write mtext (MTEXT)
QgsFeatureId featureId() const
Returns the unique ID of the feature.
DirectionSymbols placeDirectionSymbol