|
| QgsDxfExport () |
| Constructor for QgsDxfExport. More...
|
|
| ~QgsDxfExport () override |
|
void | addLayers (const QList< QgsDxfExport::DxfLayer > &layers) |
| Add layers to export. More...
|
|
void | clipValueToMapUnitScale (double &value, const QgsMapUnitScale &scale, double pixelToMMFactor) const |
| Clips value to scale minimum/maximum. More...
|
|
QgsCoordinateReferenceSystem | destinationCrs () const |
| Returns the destination CRS, or an invalid CRS if no reprojection will be done. More...
|
|
void | drawLabel (const QString &layerId, QgsRenderContext &context, pal::LabelPosition *label, const QgsPalLayerSettings &settings) override |
| Add a label to the dxf output. More...
|
|
QgsRectangle | extent () const |
| Gets extent of area to export. More...
|
|
QgsDxfExport::Flags | flags () const |
| Returns the export flags. More...
|
|
bool | force2d () |
| Retrieve whether the output should be forced to 2d. More...
|
|
QString | layerName (const QString &id, const QgsFeature &f) const |
| Gets layer name for feature. More...
|
|
QString | layerName (QgsVectorLayer *vl) const |
| Gets name for layer respecting the use layer title as layer name mode. More...
|
|
bool | layerTitleAsName () |
| Retrieve whether layer title (where set) instead of name shall be use. More...
|
|
QgsUnitTypes::DistanceUnit | mapUnits () const |
| Retrieve map units. More...
|
|
Q_DECL_DEPRECATED void | registerDxfLayer (const QString &layerId, QgsFeatureId fid, const QString &layer) |
| Register name of layer for feature. More...
|
|
void | setDestinationCrs (const QgsCoordinateReferenceSystem &crs) |
| Set destination CRS. More...
|
|
void | setExtent (const QgsRectangle &r) |
| Set extent of area to export. More...
|
|
void | setFlags (QgsDxfExport::Flags flags) |
| Sets the export flags. More...
|
|
void | setForce2d (bool force2d) |
| Force 2d output (eg. More...
|
|
void | setLayerTitleAsName (bool layerTitleAsName) |
| Enable use of title (where set) instead of layer name, when attribute index of corresponding layer index is -1. More...
|
|
void | setMapSettings (const QgsMapSettings &settings) |
| Set map settings and assign layer name attributes. More...
|
|
void | setSymbologyExport (QgsDxfExport::SymbologyExport e) |
| Set symbology export mode. More...
|
|
void | setSymbologyScale (double scale) |
| Set reference scale for output. More...
|
|
QgsDxfExport::SymbologyExport | symbologyExport () const |
| Gets symbology export mode. More...
|
|
double | symbologyScale () const |
| Returns the reference scale for output. More...
|
|
void | writeCircle (const QString &layer, const QColor &color, const QgsPoint &pt, double radius, const QString &lineStyleName, double width) |
| Write circle (as polyline) More...
|
|
void | writeDouble (double d) |
| Write a floating point value. More...
|
|
void | writeFilledCircle (const QString &layer, const QColor &color, const QgsPoint &pt, double radius) |
| Write filled circle (as hatch) More...
|
|
void | writeGroup (const QColor &color, int exactMatch=62, int rgbCode=420, int transparencyCode=440) |
| Write a group code with color value. More...
|
|
void | writeGroup (int code, const QgsPoint &p) |
| Write a group code with a point. More...
|
|
void | writeGroup (int code, const QString &s) |
| Write a group code with a string value. More...
|
|
void | writeGroup (int code, double d) |
| Write a group code with a floating point value. More...
|
|
void | writeGroup (int code, int i) |
| Write a tuple of group code and integer value. More...
|
|
void | writeGroup (int code, long long i) |
| Write a tuple of group code and long value. More...
|
|
void | writeGroupCode (int code) |
| Write a group code. More...
|
|
int | writeHandle (int code=5, int handle=0) |
| Write a tuple of group code and a handle. More...
|
|
void | writeInt (int i) |
| Write an integer value. More...
|
|
void | writeLine (const QgsPoint &pt1, const QgsPoint &pt2, const QString &layer, const QString &lineStyleName, const QColor &color, double width=-1) |
| Write line (as a polyline) More...
|
|
void | writeMText (const QString &layer, const QString &text, const QgsPoint &pt, double width, double angle, const QColor &color) |
| Write mtext (MTEXT) More...
|
|
void | writePoint (const QString &layer, const QColor &color, const QgsPoint &pt) |
| Write point. More...
|
|
void | writePolygon (const QgsCurvePolygon &polygon, const QString &layer, const QString &hatchPattern, const QColor &color) |
| Draw dxf curved filled polygon (HATCH) More...
|
|
void | writePolygon (const QgsRingSequence &polygon, const QString &layer, const QString &hatchPattern, const QColor &color) |
| Draw dxf filled polygon (HATCH) More...
|
|
void | writePolyline (const QgsCurve &curve, const QString &layer, const QString &lineStyleName, const QColor &color, double width=-1) |
| Draw dxf primitives (LWPOLYLINE) More...
|
|
void | writePolyline (const QgsPointSequence &line, const QString &layer, const QString &lineStyleName, const QColor &color, double width=-1) |
| Draw dxf primitives (LWPOLYLINE) More...
|
|
void | writeString (const QString &s) |
| Write a string value. More...
|
|
void | writeText (const QString &layer, const QString &text, const QgsPoint &pt, double size, double angle, const QColor &color, QgsDxfExport::HAlign hali=QgsDxfExport::HAlign::Undefined, QgsDxfExport::VAlign vali=QgsDxfExport::VAlign::Undefined) |
| Write text (TEXT) More...
|
|
ExportResult | writeToFile (QIODevice *d, const QString &codec) |
| Export to a dxf file in the given encoding. More...
|
|
virtual | ~QgsLabelSink ()=default |
|
virtual void | drawLabel (const QString &layerId, QgsRenderContext &context, pal::LabelPosition *label, const QgsPalLayerSettings &settings)=0 |
| The drawLabel method is called for each label that is being drawn. More...
|
|
virtual void | drawUnplacedLabel (const QString &layerId, QgsRenderContext &context, pal::LabelPosition *label, const QgsPalLayerSettings &settings) |
| The drawLabel method is called for each unplaced label. More...
|
|