18 #ifndef QGSDXFEXPORT_H 19 #define QGSDXFEXPORT_H 26 #include <QTextStream> 140 static int closestColorMatch( QRgb color );
164 void writeGroup(
int code,
int i );
172 void writeGroup(
int code,
double d );
179 void writeGroup(
int code,
const QString &s );
189 void writeGroup(
int code,
const QgsPoint &p,
double z = 0.0,
bool skipz =
false );
199 void writeGroup(
const QColor& color,
int exactMatch = 62,
int rgbCode = 420,
int transparencyCode = 440 );
205 void writeGroupCode(
int code );
211 void writeInt(
int i );
217 void writeDouble(
double d );
223 void writeString(
const QString &s );
231 int writeHandle(
int code = 5,
int handle = 0 );
271 void writeFilledCircle(
const QString &layer,
const QColor& color,
const QgsPoint &pt,
double radius );
274 void writeCircle(
const QString &layer,
const QColor& color,
const QgsPoint &pt,
double radius,
const QString &lineStyleName,
double width );
315 double mSymbologyScaleDenominator;
318 bool mLayerTitleAsName;
322 static int mDxfColors[][3];
323 static const char *mDxfEncodings[][2];
325 int mSymbolLayerCounter;
333 void writeHeader(
const QString& codepage );
336 void writeEntities();
345 void writeDefaultLinetypes();
358 static int color_distance( QRgb p1,
int index );
359 static QRgb createRgbEntry( qreal r, qreal g, qreal b );
367 double dashSize()
const;
368 double dotSize()
const;
369 double dashSeparatorSize()
const;
370 double sizeToMapUnits(
double s )
const;
371 static QString lineNameFromPenStyle( Qt::PenStyle style );
372 bool layerIsScaleBasedVisible(
const QgsMapLayer *layer )
const;
381 #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.
void setSymbologyExport(SymbologyExport e)
Set symbology export mode.
QGis::UnitType mapUnits() const
Retrieve map units.
The feature class encapsulates a single feature including its id, geometry and a list of field/values...
double symbologyScaleDenominator() const
Retrieve reference scale for output.
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)
Contains information about the context of a rendering operation.
QgsRectangle extent() const
Get extent of area to export.
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.
LabelPosition is a candidate feature label position.
UnitType
Map units that qgis supports.
Represents a vector layer which manages a vector based data sets.