QGIS API Documentation  2.7.0-Master
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules 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)
 
void writeDouble (double d)
 
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 tranparencyCode=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)
 
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)
 
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)
 

Static Public Member Functions

static int closestColorMatch (QRgb pixel)
 
static QString dxfLayerName (const QString &name)
 
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 307 of file qgsdxfexport.cpp.

QgsDxfExport::QgsDxfExport ( const QgsDxfExport dxfExport)

Definition at line 317 of file qgsdxfexport.cpp.

QgsDxfExport::~QgsDxfExport ( )

Definition at line 334 of file qgsdxfexport.cpp.

Member Function Documentation

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

Definition at line 338 of file qgsdxfexport.cpp.

int QgsDxfExport::closestColorMatch ( QRgb  pixel)
static

Definition at line 3616 of file qgsdxfexport.cpp.

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

Definition at line 3894 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 3933 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 3668 of file qgsdxfexport.cpp.

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

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

Definition at line 3330 of file qgsdxfexport.cpp.

void QgsDxfExport::writeDouble ( double  d)

Definition at line 407 of file qgsdxfexport.cpp.

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

Definition at line 343 of file qgsdxfexport.cpp.

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

Definition at line 349 of file qgsdxfexport.cpp.

void QgsDxfExport::writeGroup ( int  code,
const QString &  s 
)

Definition at line 355 of file qgsdxfexport.cpp.

void QgsDxfExport::writeGroup ( int  code,
const QgsPoint p,
double  z = 0.0,
bool  skipz = false 
)

Definition at line 361 of file qgsdxfexport.cpp.

void QgsDxfExport::writeGroup ( QColor  color,
int  exactMatch = 62,
int  rgbCode = 420,
int  tranparencyCode = 440 
)

Definition at line 369 of file qgsdxfexport.cpp.

void QgsDxfExport::writeGroupCode ( int  code)

Definition at line 397 of file qgsdxfexport.cpp.

int QgsDxfExport::writeHandle ( int  code = 5,
int  handle = 0 
)

Definition at line 489 of file qgsdxfexport.cpp.

void QgsDxfExport::writeInt ( int  i)

Definition at line 402 of file qgsdxfexport.cpp.

void QgsDxfExport::writeLine ( const QgsPoint pt1,
const QgsPoint pt2,
const QString &  layer,
const QString &  lineStyleName,
QColor  color,
double  width = -1 
)

Definition at line 3311 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 3386 of file qgsdxfexport.cpp.

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

Definition at line 3319 of file qgsdxfexport.cpp.

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

Definition at line 3271 of file qgsdxfexport.cpp.

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

Definition at line 3248 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 3417 of file qgsdxfexport.cpp.

void QgsDxfExport::writeString ( const QString &  s)

Definition at line 415 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 3371 of file qgsdxfexport.cpp.

int QgsDxfExport::writeToFile ( QIODevice *  d)

Definition at line 420 of file qgsdxfexport.cpp.


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