QGIS API Documentation  2.6.0-Brighton
 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 ()
QgsDxfExportoperator= (const QgsDxfExport &dxfExport)
void addLayers (const QList< QPair< QgsVectorLayer *, int > > &layers)
int writeToFile (QIODevice *d)
void setSymbologyScaleDenominator (double d)
double symbologyScaleDenominator () const
void setMapUnits (QGis::UnitType u)
QGis::UnitType mapUnits () const
void setSymbologyExport (SymbologyExport e)
SymbologyExport symbologyExport () const
void setExtent (const QgsRectangle &r)
QgsRectangle extent () const
QString layerName (const QString &id, const QgsFeature &f) const
void writeGroup (int code, int i)
void writeGroup (int code, double d)
void writeGroup (int code, const QString &s)
void writeGroupCode (int code)
void writeInt (int i)
void writeDouble (double d)
void writeString (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 tranparencyCode=440)
int writeHandle (int code=5, int handle=0)
void writePolyline (const QgsPolyline &line, const QString &layer, const QString &lineStyleName, QColor color, double width=-1, bool polygon=false)
void writePolygon (const QgsPolygon &polygon, const QString &layer, const QString &hatchPattern, QColor color)
void writeSolid (const QString &layer, QColor color, const QgsPoint &pt1, const QgsPoint &pt2, const QgsPoint &pt3, const QgsPoint &pt4)
void writeLine (const QgsPoint &pt1, const QgsPoint &pt2, const QString &layer, const QString &lineStyleName, QColor color, double width=-1)
void writePoint (const QString &layer, QColor color, const QgsPoint &pt)
void writeCircle (const QString &layer, QColor color, const QgsPoint &pt, double radius)
void writeText (const QString &layer, const QString &text, const QgsPoint &pt, double size, double angle, QColor color)
void writeMText (const QString &layer, const QString &text, const QgsPoint &pt, double width, double angle, QColor color)

Static Public Member Functions

static int closestColorMatch (QRgb pixel)
static double mapUnitScaleFactor (double scaleDenominator, QgsSymbolV2::OutputUnit symbolUnits, QGis::UnitType mapUnits)
static QString dxfLayerName (const QString &name)

Member Enumeration Documentation

Enumerator:
NoSymbology 
FeatureSymbology 
SymbolLayerSymbology 

Constructor & Destructor Documentation

QgsDxfExport::QgsDxfExport ( )
QgsDxfExport::QgsDxfExport ( const QgsDxfExport dxfExport)
QgsDxfExport::~QgsDxfExport ( )

Member Function Documentation

void QgsDxfExport::addLayers ( const QList< QPair< QgsVectorLayer *, int > > &  layers)
int QgsDxfExport::closestColorMatch ( QRgb  pixel)
static
QString QgsDxfExport::dxfLayerName ( const QString &  name)
static
QgsRectangle QgsDxfExport::extent ( ) const
inline
QString QgsDxfExport::layerName ( const QString &  id,
const QgsFeature f 
) const
QGis::UnitType QgsDxfExport::mapUnits ( ) const
inline
double QgsDxfExport::mapUnitScaleFactor ( double  scaleDenominator,
QgsSymbolV2::OutputUnit  symbolUnits,
QGis::UnitType  mapUnits 
)
static
QgsDxfExport & QgsDxfExport::operator= ( const QgsDxfExport dxfExport)
void QgsDxfExport::setExtent ( const QgsRectangle r)
inline
void QgsDxfExport::setMapUnits ( QGis::UnitType  u)
inline
void QgsDxfExport::setSymbologyExport ( SymbologyExport  e)
inline
void QgsDxfExport::setSymbologyScaleDenominator ( double  d)
inline
SymbologyExport QgsDxfExport::symbologyExport ( ) const
inline
double QgsDxfExport::symbologyScaleDenominator ( ) const
inline
void QgsDxfExport::writeCircle ( const QString &  layer,
QColor  color,
const QgsPoint pt,
double  radius 
)
void QgsDxfExport::writeDouble ( double  d)
void QgsDxfExport::writeGroup ( int  code,
int  i 
)
Note
available in python bindings as writeGroupInt
void QgsDxfExport::writeGroup ( int  code,
double  d 
)
Note
available in python bindings as writeGroupDouble
void QgsDxfExport::writeGroup ( int  code,
const QString &  s 
)
void QgsDxfExport::writeGroup ( int  code,
const QgsPoint p,
double  z = 0.0,
bool  skipz = false 
)
void QgsDxfExport::writeGroup ( QColor  color,
int  exactMatch = 62,
int  rgbCode = 420,
int  tranparencyCode = 440 
)
void QgsDxfExport::writeGroupCode ( int  code)
int QgsDxfExport::writeHandle ( int  code = 5,
int  handle = 0 
)
void QgsDxfExport::writeInt ( int  i)
void QgsDxfExport::writeLine ( const QgsPoint pt1,
const QgsPoint pt2,
const QString &  layer,
const QString &  lineStyleName,
QColor  color,
double  width = -1 
)
void QgsDxfExport::writeMText ( const QString &  layer,
const QString &  text,
const QgsPoint pt,
double  width,
double  angle,
QColor  color 
)
void QgsDxfExport::writePoint ( const QString &  layer,
QColor  color,
const QgsPoint pt 
)
void QgsDxfExport::writePolygon ( const QgsPolygon polygon,
const QString &  layer,
const QString &  hatchPattern,
QColor  color 
)
void QgsDxfExport::writePolyline ( const QgsPolyline line,
const QString &  layer,
const QString &  lineStyleName,
QColor  color,
double  width = -1,
bool  polygon = false 
)
void QgsDxfExport::writeSolid ( const QString &  layer,
QColor  color,
const QgsPoint pt1,
const QgsPoint pt2,
const QgsPoint pt3,
const QgsPoint pt4 
)
void QgsDxfExport::writeString ( const QString &  s)
void QgsDxfExport::writeText ( const QString &  layer,
const QString &  text,
const QgsPoint pt,
double  size,
double  angle,
QColor  color 
)
int QgsDxfExport::writeToFile ( QIODevice *  d)

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