QGIS API Documentation
2.8.2-Wien
|
#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, QColor color, const QgsPoint &pt, double radius, const QString &lineStyleName, double width) |
void | writeDouble (double d) |
void | writeFilledCircle (const QString &layer, QColor color, const QgsPoint &pt, double radius) |
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 (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, QColor color, double width=-1) |
write line (as a polyline) | |
void | writeMText (const QString &layer, const QString &text, const QgsPoint &pt, double width, double angle, QColor color) |
void | writePoint (const QString &layer, QColor color, const QgsPoint &pt) |
void | writePolygon (const QgsPolygon &polygon, const QString &layer, const QString &hatchPattern, QColor color) |
void | writePolyline (const QgsPolyline &line, const QString &layer, const QString &lineStyleName, QColor color, double width=-1, bool polygon=false) |
draw dxf primitives | |
void | writeSolid (const QString &layer, QColor color, const QgsPoint &pt1, const QgsPoint &pt2, const QgsPoint &pt3, const QgsPoint &pt4) |
void | writeString (const QString &s) |
void | writeText (const QString &layer, const QString &text, const QgsPoint &pt, double size, double angle, QColor color) |
int | writeToFile (QIODevice *d, QString codec) |
Static Public Member Functions | |
static int | closestColorMatch (QRgb pixel) |
static QString | dxfEncoding (const QString &name) |
return DXF encoding for Qt encoding | |
static QString | dxfLayerName (const QString &name) |
return cleaned layer name for use in DXF | |
static QStringList | encodings () |
return list of available DXF encodings | |
static double | mapUnitScaleFactor (double scaleDenominator, QgsSymbolV2::OutputUnit symbolUnits, QGis::UnitType mapUnits) |
Definition at line 32 of file qgsdxfexport.h.
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 366 of file qgsdxfexport.cpp.
QgsDxfExport::~QgsDxfExport | ( | ) |
Definition at line 384 of file qgsdxfexport.cpp.
void QgsDxfExport::addLayers | ( | const QList< QPair< QgsVectorLayer *, int > > & | layers | ) |
Definition at line 388 of file qgsdxfexport.cpp.
|
static |
Definition at line 3768 of file qgsdxfexport.cpp.
|
static |
return DXF encoding for Qt encoding
Definition at line 4097 of file qgsdxfexport.cpp.
|
static |
return cleaned layer name for use in DXF
Definition at line 4046 of file qgsdxfexport.cpp.
|
static |
return list of available DXF encodings
Definition at line 4117 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 4085 of file qgsdxfexport.cpp.
|
inline |
Definition at line 54 of file qgsdxfexport.h.
|
static |
Definition at line 3820 of file qgsdxfexport.cpp.
QgsDxfExport & QgsDxfExport::operator= | ( | const QgsDxfExport & | dxfExport | ) |
Definition at line 372 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, |
QColor | color, | ||
const QgsPoint & | pt, | ||
double | radius, | ||
const QString & | lineStyleName, | ||
double | width | ||
) |
Definition at line 3462 of file qgsdxfexport.cpp.
void QgsDxfExport::writeDouble | ( | double | d | ) |
Definition at line 457 of file qgsdxfexport.cpp.
void QgsDxfExport::writeFilledCircle | ( | const QString & | layer, |
QColor | color, | ||
const QgsPoint & | pt, | ||
double | radius | ||
) |
Definition at line 3422 of file qgsdxfexport.cpp.
void QgsDxfExport::writeGroup | ( | int | code, |
int | i | ||
) |
Definition at line 393 of file qgsdxfexport.cpp.
void QgsDxfExport::writeGroup | ( | int | code, |
double | d | ||
) |
Definition at line 399 of file qgsdxfexport.cpp.
void QgsDxfExport::writeGroup | ( | int | code, |
const QString & | s | ||
) |
Definition at line 405 of file qgsdxfexport.cpp.
void QgsDxfExport::writeGroup | ( | int | code, |
const QgsPoint & | p, | ||
double | z = 0.0 , |
||
bool | skipz = false |
||
) |
Definition at line 411 of file qgsdxfexport.cpp.
void QgsDxfExport::writeGroup | ( | QColor | color, |
int | exactMatch = 62 , |
||
int | rgbCode = 420 , |
||
int | transparencyCode = 440 |
||
) |
Definition at line 419 of file qgsdxfexport.cpp.
void QgsDxfExport::writeGroupCode | ( | int | code | ) |
Definition at line 447 of file qgsdxfexport.cpp.
int QgsDxfExport::writeHandle | ( | int | code = 5 , |
int | handle = 0 |
||
) |
Definition at line 542 of file qgsdxfexport.cpp.
void QgsDxfExport::writeInt | ( | int | i | ) |
Definition at line 452 of file qgsdxfexport.cpp.
void QgsDxfExport::writeLine | ( | const QgsPoint & | pt1, |
const QgsPoint & | pt2, | ||
const QString & | layer, | ||
const QString & | lineStyleName, | ||
QColor | color, | ||
double | width = -1 |
||
) |
write line (as a polyline)
Definition at line 3403 of file qgsdxfexport.cpp.
void QgsDxfExport::writeMText | ( | const QString & | layer, |
const QString & | text, | ||
const QgsPoint & | pt, | ||
double | width, | ||
double | angle, | ||
QColor | color | ||
) |
Definition at line 3499 of file qgsdxfexport.cpp.
void QgsDxfExport::writePoint | ( | const QString & | layer, |
QColor | color, | ||
const QgsPoint & | pt | ||
) |
Definition at line 3411 of file qgsdxfexport.cpp.
void QgsDxfExport::writePolygon | ( | const QgsPolygon & | polygon, |
const QString & | layer, | ||
const QString & | hatchPattern, | ||
QColor | color | ||
) |
Definition at line 3364 of file qgsdxfexport.cpp.
void QgsDxfExport::writePolyline | ( | const QgsPolyline & | line, |
const QString & | layer, | ||
const QString & | lineStyleName, | ||
QColor | color, | ||
double | width = -1 , |
||
bool | polygon = false |
||
) |
draw dxf primitives
Definition at line 3341 of file qgsdxfexport.cpp.
void QgsDxfExport::writeSolid | ( | const QString & | layer, |
QColor | color, | ||
const QgsPoint & | pt1, | ||
const QgsPoint & | pt2, | ||
const QgsPoint & | pt3, | ||
const QgsPoint & | pt4 | ||
) |
Definition at line 3536 of file qgsdxfexport.cpp.
void QgsDxfExport::writeString | ( | const QString & | s | ) |
Definition at line 465 of file qgsdxfexport.cpp.
void QgsDxfExport::writeText | ( | const QString & | layer, |
const QString & | text, | ||
const QgsPoint & | pt, | ||
double | size, | ||
double | angle, | ||
QColor | color | ||
) |
Definition at line 3484 of file qgsdxfexport.cpp.
int QgsDxfExport::writeToFile | ( | QIODevice * | d, |
QString | codec | ||
) |
Definition at line 470 of file qgsdxfexport.cpp.