18 #ifndef QGSDXFEXPORT_H 19 #define QGSDXFEXPORT_H 25 #include <QTextStream> 133 static int closestColorMatch( QRgb color );
157 void writeGroup(
int code,
int i );
165 void writeGroup(
int code,
double d );
172 void writeGroup(
int code,
const QString &s );
182 void writeGroup(
int code,
const QgsPoint &p,
double z = 0.0,
bool skipz =
false );
192 void writeGroup(
const QColor& color,
int exactMatch = 62,
int rgbCode = 420,
int transparencyCode = 440 );
198 void writeGroupCode(
int code );
204 void writeInt(
int i );
210 void writeDouble(
double d );
216 void writeString(
const QString &s );
224 int writeHandle(
int code = 5,
int handle = 0 );
264 void writeFilledCircle(
const QString &layer,
const QColor& color,
const QgsPoint &pt,
double radius );
267 void writeCircle(
const QString &layer,
const QColor& color,
const QgsPoint &pt,
double radius,
const QString &lineStyleName,
double width );
292 double mSymbologyScaleDenominator;
295 bool mLayerTitleAsName;
299 static int mDxfColors[][3];
300 static const char *mDxfEncodings[][2];
302 int mSymbolLayerCounter;
310 void writeHeader(
const QString& codepage );
313 void writeEntities();
322 void writeDefaultLinetypes();
335 static int color_distance( QRgb p1,
int index );
336 static QRgb createRgbEntry( qreal r, qreal g, qreal b );
344 double dashSize()
const;
345 double dotSize()
const;
346 double dashSeparatorSize()
const;
347 double sizeToMapUnits(
double s )
const;
348 static QString lineNameFromPenStyle( Qt::PenStyle style );
349 bool layerIsScaleBasedVisible(
const QgsMapLayer *layer )
const;
355 #endif // QGSDXFEXPORT_H
A rectangle specified with double values.
Base class for all map layer types.
void setSymbologyScaleDenominator(double d)
Set reference scale for output.
OutputUnit
The unit of the output.
SymbologyExport symbologyExport() const
Get symbology export mode.
QGis::UnitType mapUnits() const
Retrieve map units.
void setSymbologyExport(SymbologyExport e)
Set symbology export mode.
The feature class encapsulates a single feature including its id, geometry and a list of field/values...
QgsRectangle extent() const
Get extent of area to export.
A class to represent a point.
double ANALYSIS_EXPORT angle(Point3D *p1, Point3D *p2, Point3D *p3, Point3D *p4)
Calculates the angle between two segments (in 2 dimension, z-values are ignored)
double symbologyScaleDenominator() const
Retrieve reference scale for output.
Contains information about the context of a rendering operation.
void setLayerTitleAsName(bool layerTitleAsName)
Enable use of title (where set) instead of layer name, when attribute index of corresponding layer in...
void setExtent(const QgsRectangle &r)
Set extent of area to export.
void setMapUnits(QGis::UnitType u)
Set map units.
bool layerTitleAsName()
Retrieve wether layer title (where set) instead of name shall be use.
UnitType
Map units that qgis supports.
Represents a vector layer which manages a vector based data sets.