45 mImage =
new QImage( 10, 10, QImage::Format_ARGB32_Premultiplied );
92 for (
int i = 0; i < 4; ++i )
104 bool prependSymb =
false;
130 symb = symb + wrapchr;
135 symb = wrapchr + symb;
148 txt = txt.
replace( wrapchr,
"\\P" );
FeaturePart * getFeaturePart()
return the feature corresponding to this labelposition
A rectangle specified with double values.
void setDotsPerMeterX(int x)
void setDotsPerMeterY(int y)
QString & append(QChar ch)
QString leftDirectionSymbol
QgsDxfPalLabeling(QgsDxfExport *dxf, const QgsRectangle &bbox, double scale, QGis::UnitType mapUnits)
void append(const T &value)
void setOutputDpi(int dpi)
Set DPI used for conversion between real world units (e.g. mm) and pixels.
QString & prepend(QChar ch)
void setRendererScale(double scale)
#define Q_NOWARN_DEPRECATED_PUSH
void setExtent(const QgsRectangle &extent)
PalGeometry * getUserGeometry()
bool reverseDirectionSymbol
The QgsMapSettings class contains configuration for rendering of the map.
virtual Q_DECL_DEPRECATED void init(QgsMapRenderer *mr) override
called when we're going to start with rendering
Perform transforms between map coordinates and device coordinates.
void setScaleFactor(double factor)
double yMinimum() const
Get the y minimum value (bottom side of rectangle)
double getY(int i=0) const
get the down-left y coordinate
double getAlpha() const
get alpha
void setMapUnits(QGis::UnitType u)
Set units of map's geographical coordinates - used for scale calculation.
void drawLabel(pal::LabelPosition *label, QgsRenderContext &context, QgsPalLayerSettings &tmpLyr, DrawLabelType drawType, double dpiRatio=1.0) override
drawLabel
void setPainter(QPainter *p)
A class to represent a point.
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)
#define Q_NOWARN_DEPRECATED_POP
QString rightDirectionSymbol
QString & replace(int position, int n, QChar after)
Contains information about the context of a rendering operation.
void setOutputSize(const QSize &size)
Set the size of the resulting map image.
void setExtent(const QgsRectangle &rect)
Set coordinates of the rectangle which should be rendered.
void setMapToPixel(const QgsMapToPixel &mtp)
static double fromUnitToUnitFactor(QGis::UnitType fromUnit, QGis::UnitType toUnit)
Returns the conversion factor between the specified units.
LabelPosition is a candidate feature label position.
UnitType
Map units that qgis supports.
double getX(int i=0) const
get the down-left x coordinate
double width() const
Width of the rectangle.
void writePolyline(const QgsPolyline &line, const QString &layer, const QString &lineStyleName, QColor color, double width=-1)
Draw dxf primitives (LWPOLYLINE)
double xMinimum() const
Get the x minimum value (left side of rectangle)
void writeMText(const QString &layer, const QString &text, const QgsPoint &pt, double width, double angle, QColor color)
Write mtext (MTEXT)
double height() const
Height of the rectangle.
void setCrsTransformEnabled(bool enabled)
sets whether to use projections for this layer set
DirectionSymbols placeDirectionSymbol