18 #ifndef QGSDXFEXPORT_H
19 #define QGSDXFEXPORT_H
25 #include <QTextStream>
63 static int closestColorMatch( QRgb pixel );
68 void writeGroup(
int code,
int i );
70 void writeGroup(
int code,
double d );
71 void writeGroup(
int code,
const QString &s );
72 void writeGroupCode(
int code );
73 void writeInt(
int i );
74 void writeDouble(
double d );
75 void writeString(
const QString &s );
76 void writeGroup(
int code,
const QgsPoint &p,
double z = 0.0,
bool skipz =
false );
77 void writeGroup(
const QColor& color,
int exactMatch = 62,
int rgbCode = 420,
int transparencyCode = 440 );
79 int writeHandle(
int code = 5,
int handle = 0 );
99 void writeFilledCircle(
const QString &layer,
const QColor& color,
const QgsPoint &pt,
double radius );
102 void writeCircle(
const QString &layer,
const QColor& color,
const QgsPoint &pt,
double radius,
const QString &lineStyleName,
double width );
127 double mSymbologyScaleDenominator;
128 SymbologyExport mSymbologyExport;
133 static int mDxfColors[][3];
134 static const char *mDxfEncodings[][2];
136 int mSymbolLayerCounter;
144 void writeHeader(
const QString& codepage );
147 void writeEntities();
156 void writeDefaultLinetypes();
169 static int color_distance( QRgb p1,
int index );
170 static QRgb createRgbEntry( qreal r, qreal g, qreal b );
178 double dashSize()
const;
179 double dotSize()
const;
180 double dashSeparatorSize()
const;
181 double sizeToMapUnits(
double s )
const;
182 static QString lineNameFromPenStyle( Qt::PenStyle style );
183 bool layerIsScaleBasedVisible(
const QgsMapLayer *layer )
const;
189 #endif // QGSDXFEXPORT_H
A rectangle specified with double values.
Base class for all map layer types.
void setSymbologyScaleDenominator(double d)
OutputUnit
The unit of the output.
SymbologyExport symbologyExport() const
UnitType
Map units that qgis supports.
QGis::UnitType mapUnits() const
void setSymbologyExport(SymbologyExport e)
The feature class encapsulates a single feature including its id, geometry and a list of field/values...
QgsRectangle extent() const
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
Contains information about the context of a rendering operation.
void setExtent(const QgsRectangle &r)
void setMapUnits(QGis::UnitType u)
Represents a vector layer which manages a vector based data sets.