32 #include <qcompilerdetection.h>
34 #include <QPaintEngine>
42 #include "../vmisc/def.h"
44 #include "libdxfrw/drw_base.h"
60 virtual bool begin(QPaintDevice *pdev) Q_DECL_OVERRIDE;
61 virtual bool end() Q_DECL_OVERRIDE;
62 virtual
void updateState(const QPaintEngineState &state) Q_DECL_OVERRIDE;
63 virtual
void drawPath(const QPainterPath &path) Q_DECL_OVERRIDE;
64 virtual
void drawLines(const QLineF * lines,
int lineCount) Q_DECL_OVERRIDE;
65 virtual
void drawLines(const QLine * lines,
int lineCount) Q_DECL_OVERRIDE;
66 virtual
void drawPolygon(const QPointF *points,
int pointCount, PolygonDrawMode mode) Q_DECL_OVERRIDE;
67 virtual
void drawPolygon(const QPoint *points,
int pointCount, PolygonDrawMode mode) Q_DECL_OVERRIDE;
68 virtual
void drawEllipse(const QRectF & rect) Q_DECL_OVERRIDE;
69 virtual
void drawEllipse(const QRect & rect) Q_DECL_OVERRIDE;
70 virtual
void drawTextItem(const QPointF & p, const QTextItem & textItem) Q_DECL_OVERRIDE;
71 virtual Type
type() const Q_DECL_OVERRIDE;
72 virtual
void drawPixmap(const QRectF &r, const QPixmap &pm, const QRectF &sr) Q_DECL_OVERRIDE;
75 void setSize(const QSize &value);
120 Q_REQUIRED_RESULT DRW_Entity *
AAMAPolygon(const
QVector<QPointF> &polygon, const QString &layer,
bool forceClosed);
121 Q_REQUIRED_RESULT DRW_Entity *
AAMALine(const QLineF &line, const QString &layer);
122 Q_REQUIRED_RESULT DRW_Entity *
AAMAText(const QPointF &pos, const QString &text, const QString &layer);
124 template<class P, class V>
void setMeasurement(const VarMeasurement &var)
virtual bool begin(QPaintDevice *pdev) Q_DECL_OVERRIDE
QSharedPointer< dx_iface > input
virtual void drawPixmap(const QRectF &r, const QPixmap &pm, const QRectF &sr) Q_DECL_OVERRIDE
virtual void drawLines(const QLineF *lines, int lineCount) Q_DECL_OVERRIDE
double getResolution() const
std::string getPenStyle()
QString getFileName() const
void ExportAAMAOutline(dx_ifaceBlock *detailBlock, const VLayoutPiece &detail)
virtual void drawTextItem(const QPointF &p, const QTextItem &textItem) Q_DECL_OVERRIDE
Q_REQUIRED_RESULT DRW_Entity * AAMAText(const QPointF &pos, const QString &text, const QString &layer)
virtual void drawPolygon(const QPointF *points, int pointCount, PolygonDrawMode mode) Q_DECL_OVERRIDE
void ExportAAMAIntcut(dx_ifaceBlock *detailBlock, const VLayoutPiece &detail)
virtual void drawEllipse(const QRectF &rect) Q_DECL_OVERRIDE
void ExportAAMAGlobalText(const QSharedPointer< dx_iface > &input, const QVector< VLayoutPiece > &details)
Q_REQUIRED_RESULT double FromPixel(double pix, const VarInsunits &unit) const
bool ExportToAAMA(const QVector< VLayoutPiece > &details)
bool IsBinaryFormat() const
void SetBinaryFormat(bool binary)
VarMeasurement varMeasurement
void setSize(const QSize &value)
virtual bool end() Q_DECL_OVERRIDE
void ExportAAMAGrainline(dx_ifaceBlock *detailBlock, const VLayoutPiece &detail)
void ExportAAMANotch(dx_ifaceBlock *detailBlock, const VLayoutPiece &detail)
Q_REQUIRED_RESULT DRW_Entity * AAMAPolygon(const QVector< QPointF > &polygon, const QString &layer, bool forceClosed)
DRW::Version GetVersion() const
void setResolution(double value)
void ExportAAMADraw(dx_ifaceBlock *detailBlock, const VLayoutPiece &detail)
virtual void drawPath(const QPainterPath &path) Q_DECL_OVERRIDE
Q_REQUIRED_RESULT double ToPixel(double val, const VarInsunits &unit) const
Q_REQUIRED_RESULT P * CreateAAMAPolygon(const QVector< QPointF > &polygon, const QString &layer, bool forceClosed)
virtual void updateState(const QPaintEngineState &state) Q_DECL_OVERRIDE
void ExportAAMAText(dx_ifaceBlock *detailBlock, const VLayoutPiece &detail)
void setInsunits(const VarInsunits &var)
void SetVersion(DRW::Version version)
void setFileName(const QString &value)
virtual Type type() const Q_DECL_OVERRIDE
Q_REQUIRED_RESULT DRW_Entity * AAMALine(const QLineF &line, const QString &layer)