QGIS API Documentation  2.11.0-Master
Public Types | Public Member Functions | Static Public Member Functions | List of all members
QgsDxfExport Class Reference

#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
 
QgsDxfExportoperator= (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)
 Write circle (as polyline) More...
 
void writeDouble (double d)
 
void writeFilledCircle (const QString &layer, 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 (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) More...
 
void writeMText (const QString &layer, const QString &text, const QgsPoint &pt, double width, double angle, QColor color)
 Write mtext (MTEXT) More...
 
void writePoint (const QString &layer, QColor color, const QgsPoint &pt)
 Write point. More...
 
void writePolygon (const QgsPolygon &polygon, const QString &layer, const QString &hatchPattern, QColor color)
 Draw dxf polygon (HATCH) More...
 
void writePolyline (const QgsPolyline &line, const QString &layer, const QString &lineStyleName, QColor color, double width=-1)
 Draw dxf primitives (LWPOLYLINE) More...
 
Q_DECL_DEPRECATED void writeSolid (const QString &layer, 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, QColor color)
 Write text (TEXT) More...
 
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 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)
 

Detailed Description

Definition at line 32 of file qgsdxfexport.h.

Member Enumeration Documentation

Enumerator
NoSymbology 
FeatureSymbology 
SymbolLayerSymbology 

Definition at line 35 of file qgsdxfexport.h.

Constructor & Destructor Documentation

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.

Member Function Documentation

void QgsDxfExport::addLayers ( const QList< QPair< QgsVectorLayer *, int > > &  layers)

Definition at line 386 of file qgsdxfexport.cpp.

int QgsDxfExport::closestColorMatch ( QRgb  pixel)
static

Definition at line 3759 of file qgsdxfexport.cpp.

QString QgsDxfExport::dxfEncoding ( const QString name)
static

return DXF encoding for Qt encoding

Definition at line 4088 of file qgsdxfexport.cpp.

QString QgsDxfExport::dxfLayerName ( const QString name)
static

Return cleaned layer name for use in DXF.

Definition at line 4037 of file qgsdxfexport.cpp.

QStringList QgsDxfExport::encodings ( )
static

return list of available DXF encodings

Definition at line 4108 of file qgsdxfexport.cpp.

QgsRectangle QgsDxfExport::extent ( ) const
inline

Definition at line 60 of file qgsdxfexport.h.

QString QgsDxfExport::layerName ( const QString id,
const QgsFeature f 
) const

Definition at line 4076 of file qgsdxfexport.cpp.

QGis::UnitType QgsDxfExport::mapUnits ( ) const
inline

Definition at line 54 of file qgsdxfexport.h.

double QgsDxfExport::mapUnitScaleFactor ( double  scaleDenominator,
QgsSymbolV2::OutputUnit  symbolUnits,
QGis::UnitType  mapUnits 
)
static

Definition at line 3811 of file qgsdxfexport.cpp.

QgsDxfExport & QgsDxfExport::operator= ( const QgsDxfExport dxfExport)

Definition at line 370 of file qgsdxfexport.cpp.

void QgsDxfExport::setExtent ( const QgsRectangle r)
inline

Definition at line 59 of file qgsdxfexport.h.

void QgsDxfExport::setMapUnits ( QGis::UnitType  u)
inline

Definition at line 53 of file qgsdxfexport.h.

void QgsDxfExport::setSymbologyExport ( SymbologyExport  e)
inline

Definition at line 56 of file qgsdxfexport.h.

void QgsDxfExport::setSymbologyScaleDenominator ( double  d)
inline

Definition at line 50 of file qgsdxfexport.h.

SymbologyExport QgsDxfExport::symbologyExport ( ) const
inline

Definition at line 57 of file qgsdxfexport.h.

double QgsDxfExport::symbologyScaleDenominator ( ) const
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 
)

Write circle (as polyline)

Definition at line 3441 of file qgsdxfexport.cpp.

void QgsDxfExport::writeDouble ( double  d)

Definition at line 455 of file qgsdxfexport.cpp.

void QgsDxfExport::writeFilledCircle ( const QString layer,
QColor  color,
const QgsPoint pt,
double  radius 
)

Write filled circle (as hatch)

Definition at line 3401 of file qgsdxfexport.cpp.

void QgsDxfExport::writeGroup ( int  code,
int  i 
)
Note
available in python bindings as writeGroupInt

Definition at line 391 of file qgsdxfexport.cpp.

void QgsDxfExport::writeGroup ( int  code,
double  d 
)
Note
available in python bindings as writeGroupDouble

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 ( 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,
QColor  color,
double  width = -1 
)

Write line (as a polyline)

Definition at line 3382 of file qgsdxfexport.cpp.

void QgsDxfExport::writeMText ( const QString layer,
const QString text,
const QgsPoint pt,
double  width,
double  angle,
QColor  color 
)

Write mtext (MTEXT)

Definition at line 3478 of file qgsdxfexport.cpp.

void QgsDxfExport::writePoint ( const QString layer,
QColor  color,
const QgsPoint pt 
)

Write point.

Definition at line 3390 of file qgsdxfexport.cpp.

void QgsDxfExport::writePolygon ( const QgsPolygon polygon,
const QString layer,
const QString hatchPattern,
QColor  color 
)

Draw dxf polygon (HATCH)

Definition at line 3343 of file qgsdxfexport.cpp.

void QgsDxfExport::writePolyline ( const QgsPolyline line,
const QString layer,
const QString lineStyleName,
QColor  color,
double  width = -1 
)

Draw dxf primitives (LWPOLYLINE)

Definition at line 3309 of file qgsdxfexport.cpp.

void QgsDxfExport::writeSolid ( const QString layer,
QColor  color,
const QgsPoint pt1,
const QgsPoint pt2,
const QgsPoint pt3,
const QgsPoint pt4 
)

Draw solid.

Deprecated:
see writePolygon

Definition at line 3515 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,
QColor  color 
)

Write text (TEXT)

Definition at line 3463 of file qgsdxfexport.cpp.

int QgsDxfExport::writeToFile ( QIODevice d,
QString  codec 
)

Definition at line 468 of file qgsdxfexport.cpp.


The documentation for this class was generated from the following files: