QGIS API Documentation
2.12.0-Lyon
|
#include <qgsdxfexport.h>
Public Types | |
enum | SymbologyExport { NoSymbology = 0, FeatureSymbology, SymbolLayerSymbology } |
Public Member Functions | |
QgsDxfExport () | |
QgsDxfExport (const QgsDxfExport &dxfExport) | |
~QgsDxfExport () | |
void | addLayers (const QList< QPair< QgsVectorLayer *, int > > &layers) |
QgsRectangle | extent () const |
QString | layerName (const QString &id, const QgsFeature &f) const |
QGis::UnitType | mapUnits () const |
QgsDxfExport & | operator= (const QgsDxfExport &dxfExport) |
void | setExtent (const QgsRectangle &r) |
void | setMapUnits (QGis::UnitType u) |
void | setSymbologyExport (SymbologyExport e) |
void | setSymbologyScaleDenominator (double d) |
SymbologyExport | symbologyExport () const |
double | symbologyScaleDenominator () const |
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) |
void | writeFilledCircle (const QString &layer, const QColor &color, const QgsPoint &pt, double radius) |
Write filled circle (as hatch) More... | |
void | writeGroup (int code, int i) |
void | writeGroup (int code, double d) |
void | writeGroup (int code, const QString &s) |
void | writeGroup (int code, const QgsPoint &p, double z=0.0, bool skipz=false) |
void | writeGroup (const QColor &color, int exactMatch=62, int rgbCode=420, int transparencyCode=440) |
void | writeGroupCode (int code) |
int | writeHandle (int code=5, int handle=0) |
void | writeInt (int i) |
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 QgsPolygon &polygon, const QString &layer, const QString &hatchPattern, const QColor &color) |
Draw dxf polygon (HATCH) More... | |
void | writePolyline (const QgsPolyline &line, const QString &layer, const QString &lineStyleName, const QColor &color, double width=-1) |
Draw dxf primitives (LWPOLYLINE) More... | |
Q_DECL_DEPRECATED void | writeSolid (const QString &layer, const QColor &color, const QgsPoint &pt1, const QgsPoint &pt2, const QgsPoint &pt3, const QgsPoint &pt4) |
Draw solid. More... | |
void | writeString (const QString &s) |
void | writeText (const QString &layer, const QString &text, const QgsPoint &pt, double size, double angle, const QColor &color) |
Write text (TEXT) More... | |
int | writeToFile (QIODevice *d, const QString &codec) |
Static Public Member Functions | |
static int | closestColorMatch (QRgb pixel) |
static QString | dxfEncoding (const QString &name) |
return DXF encoding for Qt encoding More... | |
static QString | dxfLayerName (const QString &name) |
Return cleaned layer name for use in DXF. More... | |
static QStringList | encodings () |
return list of available DXF encodings More... | |
static double | mapUnitScaleFactor (double scaleDenominator, QgsSymbolV2::OutputUnit symbolUnits, QGis::UnitType mapUnits) |
Definition at line 32 of file qgsdxfexport.h.
Enumerator | |
---|---|
NoSymbology | |
FeatureSymbology | |
SymbolLayerSymbology |
Definition at line 35 of file qgsdxfexport.h.
QgsDxfExport::QgsDxfExport | ( | ) |
Definition at line 355 of file qgsdxfexport.cpp.
QgsDxfExport::QgsDxfExport | ( | const QgsDxfExport & | dxfExport | ) |
Definition at line 365 of file qgsdxfexport.cpp.
QgsDxfExport::~QgsDxfExport | ( | ) |
Definition at line 382 of file qgsdxfexport.cpp.
void QgsDxfExport::addLayers | ( | const QList< QPair< QgsVectorLayer *, int > > & | layers | ) |
Definition at line 386 of file qgsdxfexport.cpp.
|
static |
Definition at line 3799 of file qgsdxfexport.cpp.
return DXF encoding for Qt encoding
Definition at line 4128 of file qgsdxfexport.cpp.
Return cleaned layer name for use in DXF.
Definition at line 4077 of file qgsdxfexport.cpp.
|
static |
return list of available DXF encodings
Definition at line 4148 of file qgsdxfexport.cpp.
|
inline |
Definition at line 60 of file qgsdxfexport.h.
QString QgsDxfExport::layerName | ( | const QString & | id, |
const QgsFeature & | f | ||
) | const |
Definition at line 4116 of file qgsdxfexport.cpp.
|
inline |
Definition at line 54 of file qgsdxfexport.h.
|
static |
Definition at line 3851 of file qgsdxfexport.cpp.
QgsDxfExport & QgsDxfExport::operator= | ( | const QgsDxfExport & | dxfExport | ) |
Definition at line 370 of file qgsdxfexport.cpp.
|
inline |
Definition at line 59 of file qgsdxfexport.h.
|
inline |
Definition at line 53 of file qgsdxfexport.h.
|
inline |
Definition at line 56 of file qgsdxfexport.h.
|
inline |
Definition at line 50 of file qgsdxfexport.h.
|
inline |
Definition at line 57 of file qgsdxfexport.h.
|
inline |
Definition at line 51 of file qgsdxfexport.h.
void QgsDxfExport::writeCircle | ( | const QString & | layer, |
const QColor & | color, | ||
const QgsPoint & | pt, | ||
double | radius, | ||
const QString & | lineStyleName, | ||
double | width | ||
) |
Write circle (as polyline)
Definition at line 3481 of file qgsdxfexport.cpp.
void QgsDxfExport::writeDouble | ( | double | d | ) |
Definition at line 455 of file qgsdxfexport.cpp.
void QgsDxfExport::writeFilledCircle | ( | const QString & | layer, |
const QColor & | color, | ||
const QgsPoint & | pt, | ||
double | radius | ||
) |
Write filled circle (as hatch)
Definition at line 3441 of file qgsdxfexport.cpp.
void QgsDxfExport::writeGroup | ( | int | code, |
int | i | ||
) |
Definition at line 391 of file qgsdxfexport.cpp.
void QgsDxfExport::writeGroup | ( | int | code, |
double | d | ||
) |
Definition at line 397 of file qgsdxfexport.cpp.
void QgsDxfExport::writeGroup | ( | int | code, |
const QString & | s | ||
) |
Definition at line 403 of file qgsdxfexport.cpp.
void QgsDxfExport::writeGroup | ( | int | code, |
const QgsPoint & | p, | ||
double | z = 0.0 , |
||
bool | skipz = false |
||
) |
Definition at line 409 of file qgsdxfexport.cpp.
void QgsDxfExport::writeGroup | ( | const QColor & | color, |
int | exactMatch = 62 , |
||
int | rgbCode = 420 , |
||
int | transparencyCode = 440 |
||
) |
Definition at line 417 of file qgsdxfexport.cpp.
void QgsDxfExport::writeGroupCode | ( | int | code | ) |
Definition at line 445 of file qgsdxfexport.cpp.
int QgsDxfExport::writeHandle | ( | int | code = 5 , |
int | handle = 0 |
||
) |
Definition at line 540 of file qgsdxfexport.cpp.
void QgsDxfExport::writeInt | ( | int | i | ) |
Definition at line 450 of file qgsdxfexport.cpp.
void QgsDxfExport::writeLine | ( | const QgsPoint & | pt1, |
const QgsPoint & | pt2, | ||
const QString & | layer, | ||
const QString & | lineStyleName, | ||
const QColor & | color, | ||
double | width = -1 |
||
) |
Write line (as a polyline)
Definition at line 3422 of file qgsdxfexport.cpp.
void QgsDxfExport::writeMText | ( | const QString & | layer, |
const QString & | text, | ||
const QgsPoint & | pt, | ||
double | width, | ||
double | angle, | ||
const QColor & | color | ||
) |
Write mtext (MTEXT)
Definition at line 3518 of file qgsdxfexport.cpp.
Write point.
Definition at line 3430 of file qgsdxfexport.cpp.
void QgsDxfExport::writePolygon | ( | const QgsPolygon & | polygon, |
const QString & | layer, | ||
const QString & | hatchPattern, | ||
const QColor & | color | ||
) |
Draw dxf polygon (HATCH)
Definition at line 3383 of file qgsdxfexport.cpp.
void QgsDxfExport::writePolyline | ( | const QgsPolyline & | line, |
const QString & | layer, | ||
const QString & | lineStyleName, | ||
const QColor & | color, | ||
double | width = -1 |
||
) |
Draw dxf primitives (LWPOLYLINE)
Definition at line 3349 of file qgsdxfexport.cpp.
void QgsDxfExport::writeString | ( | const QString & | s | ) |
Definition at line 463 of file qgsdxfexport.cpp.
void QgsDxfExport::writeText | ( | const QString & | layer, |
const QString & | text, | ||
const QgsPoint & | pt, | ||
double | size, | ||
double | angle, | ||
const QColor & | color | ||
) |
Write text (TEXT)
Definition at line 3503 of file qgsdxfexport.cpp.
Definition at line 468 of file qgsdxfexport.cpp.