QGIS API Documentation  2.8.2-Wien
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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)
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)

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 366 of file qgsdxfexport.cpp.

QgsDxfExport::~QgsDxfExport ( )

Definition at line 384 of file qgsdxfexport.cpp.

Member Function Documentation

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

Definition at line 388 of file qgsdxfexport.cpp.

int QgsDxfExport::closestColorMatch ( QRgb  pixel)
static

Definition at line 3768 of file qgsdxfexport.cpp.

QString QgsDxfExport::dxfEncoding ( const QString &  name)
static

return DXF encoding for Qt encoding

Definition at line 4097 of file qgsdxfexport.cpp.

QString QgsDxfExport::dxfLayerName ( const QString &  name)
static

return cleaned layer name for use in DXF

Definition at line 4046 of file qgsdxfexport.cpp.

QStringList QgsDxfExport::encodings ( )
static

return list of available DXF encodings

Definition at line 4117 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 4085 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 3820 of file qgsdxfexport.cpp.

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

Definition at line 372 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 
)

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 
)
Note
available in python bindings as writeGroupInt

Definition at line 393 of file qgsdxfexport.cpp.

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

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.


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