#include <vdxfengine.h>
Public Member Functions | |
VDxfEngine () | |
virtual | ~VDxfEngine () |
virtual bool | begin (QPaintDevice *pdev) Q_DECL_OVERRIDE |
virtual bool | end () Q_DECL_OVERRIDE |
virtual void | updateState (const QPaintEngineState &state) Q_DECL_OVERRIDE |
virtual void | drawPath (const QPainterPath &path) Q_DECL_OVERRIDE |
virtual void | drawLines (const QLineF *lines, int lineCount) Q_DECL_OVERRIDE |
virtual void | drawLines (const QLine *lines, int lineCount) Q_DECL_OVERRIDE |
virtual void | drawPolygon (const QPointF *points, int pointCount, PolygonDrawMode mode) Q_DECL_OVERRIDE |
virtual void | drawPolygon (const QPoint *points, int pointCount, PolygonDrawMode mode) Q_DECL_OVERRIDE |
virtual void | drawEllipse (const QRectF &rect) Q_DECL_OVERRIDE |
virtual void | drawEllipse (const QRect &rect) Q_DECL_OVERRIDE |
virtual void | drawTextItem (const QPointF &p, const QTextItem &textItem) Q_DECL_OVERRIDE |
virtual Type | type () const Q_DECL_OVERRIDE |
virtual void | drawPixmap (const QRectF &r, const QPixmap &pm, const QRectF &sr) Q_DECL_OVERRIDE |
QSize | getSize () const |
void | setSize (const QSize &value) |
double | getResolution () const |
void | setResolution (double value) |
QString | getFileName () const |
void | setFileName (const QString &value) |
DRW::Version | GetVersion () const |
void | SetVersion (DRW::Version version) |
void | SetBinaryFormat (bool binary) |
bool | IsBinaryFormat () const |
std::string | getPenStyle () |
int | getPenColor () |
void | setMeasurement (const VarMeasurement &var) |
void | setInsunits (const VarInsunits &var) |
template<class P , class V > | |
P * | CreateAAMAPolygon (const QVector< QPointF > &polygon, const QString &layer, bool forceClosed) |
Private Member Functions | |
Q_REQUIRED_RESULT double | FromPixel (double pix, const VarInsunits &unit) const |
Q_REQUIRED_RESULT double | ToPixel (double val, const VarInsunits &unit) const |
bool | ExportToAAMA (const QVector< VLayoutPiece > &details) |
void | ExportAAMAOutline (dx_ifaceBlock *detailBlock, const VLayoutPiece &detail) |
void | ExportAAMADraw (dx_ifaceBlock *detailBlock, const VLayoutPiece &detail) |
void | ExportAAMAIntcut (dx_ifaceBlock *detailBlock, const VLayoutPiece &detail) |
void | ExportAAMANotch (dx_ifaceBlock *detailBlock, const VLayoutPiece &detail) |
void | ExportAAMAGrainline (dx_ifaceBlock *detailBlock, const VLayoutPiece &detail) |
void | ExportAAMAText (dx_ifaceBlock *detailBlock, const VLayoutPiece &detail) |
void | ExportAAMAGlobalText (const QSharedPointer< dx_iface > &input, const QVector< VLayoutPiece > &details) |
Q_REQUIRED_RESULT DRW_Entity * | AAMAPolygon (const QVector< QPointF > &polygon, const QString &layer, bool forceClosed) |
Q_REQUIRED_RESULT DRW_Entity * | AAMALine (const QLineF &line, const QString &layer) |
Q_REQUIRED_RESULT DRW_Entity * | AAMAText (const QPointF &pos, const QString &text, const QString &layer) |
template<class P , class V > | |
Q_REQUIRED_RESULT P * | CreateAAMAPolygon (const QVector< QPointF > &polygon, const QString &layer, bool forceClosed) |
Private Attributes | |
QSize | size |
double | resolution |
QString | fileName |
DRW::Version | m_version |
bool | m_binary |
QTransform | transform |
QSharedPointer< dx_iface > | input |
VarMeasurement | varMeasurement |
VarInsunits | varInsunits |
DRW_Text * | textBuffer |
Friends | |
class | VDxfPaintDevice |
Definition at line 53 of file vdxfengine.h.
VDxfEngine::VDxfEngine | ( | ) |
Definition at line 74 of file vdxfengine.cpp.
References Metric, and Millimeters.
|
virtual |
Definition at line 90 of file vdxfengine.cpp.
References textBuffer.
|
private |
Definition at line 798 of file vdxfengine.cpp.
References FromPixel(), getSize(), and varInsunits.
Referenced by ExportAAMAGrainline(), and ExportAAMANotch().
|
private |
Definition at line 780 of file vdxfengine.cpp.
References m_version.
Referenced by ExportAAMADraw(), ExportAAMAIntcut(), and ExportAAMAOutline().
|
private |
Definition at line 811 of file vdxfengine.cpp.
References AAMATextHeight, FromPixel(), getSize(), and varInsunits.
Referenced by ExportAAMAGlobalText(), and ExportAAMAText().
|
virtual |
Definition at line 96 of file vdxfengine.cpp.
References fileName, input, m_version, size, varInsunits, and varMeasurement.
P* VDxfEngine::CreateAAMAPolygon | ( | const QVector< QPointF > & | polygon, |
const QString & | layer, | ||
bool | forceClosed | ||
) |
Definition at line 828 of file vdxfengine.cpp.
References FromPixel(), getSize(), and varInsunits.
|
private |
|
virtual |
Definition at line 338 of file vdxfengine.cpp.
|
virtual |
Definition at line 297 of file vdxfengine.cpp.
References FromPixel(), getPenColor(), getPenStyle(), getSize(), input, transform, and varInsunits.
|
virtual |
Definition at line 225 of file vdxfengine.cpp.
|
virtual |
Definition at line 203 of file vdxfengine.cpp.
References FromPixel(), getPenColor(), getPenStyle(), getSize(), input, transform, and varInsunits.
|
virtual |
Definition at line 142 of file vdxfengine.cpp.
References FromPixel(), getPenColor(), getPenStyle(), getSize(), input, m_version, transform, and varInsunits.
|
virtual |
Definition at line 396 of file vdxfengine.cpp.
|
virtual |
|
virtual |
Definition at line 231 of file vdxfengine.cpp.
References FromPixel(), getPenColor(), getPenStyle(), getSize(), input, m_version, transform, and varInsunits.
|
virtual |
Definition at line 344 of file vdxfengine.cpp.
References endStringPlaceholder, FromPixel(), getPenColor(), getPenStyle(), getSize(), input, textBuffer, transform, and varInsunits.
|
virtual |
Definition at line 119 of file vdxfengine.cpp.
|
private |
Definition at line 680 of file vdxfengine.cpp.
References AAMAPolygon(), dx_ifaceBlock::ent, VLayoutPiece::getContourPoints(), and VAbstractPiece::isHideSeamLine().
Referenced by ExportToAAMA().
|
private |
Definition at line 762 of file vdxfengine.cpp.
References AAMAText(), AAMATextHeight, getSize(), input, ToPixel(), and varInsunits.
Referenced by ExportToAAMA().
|
private |
Definition at line 735 of file vdxfengine.cpp.
References AAMALine(), dx_ifaceBlock::ent, and VLayoutPiece::getGrainline().
Referenced by ExportToAAMA().
|
private |
Definition at line 694 of file vdxfengine.cpp.
References AAMAPolygon(), dx_ifaceBlock::ent, and VLayoutPiece::InternalPathsForCut().
Referenced by ExportToAAMA().
|
private |
Definition at line 718 of file vdxfengine.cpp.
References AAMALine(), dx_ifaceBlock::ent, VLayoutPiece::getNotches(), and VAbstractPiece::IsSeamAllowance().
Referenced by ExportToAAMA().
|
private |
Definition at line 660 of file vdxfengine.cpp.
References AAMAPolygon(), dx_ifaceBlock::ent, VLayoutPiece::getContourPoints(), VLayoutPiece::GetSeamAllowancePoints(), VAbstractPiece::IsSeamAllowance(), and VAbstractPiece::IsSeamAllowanceBuiltIn().
Referenced by ExportToAAMA().
|
private |
Definition at line 749 of file vdxfengine.cpp.
References AAMAText(), AAMATextHeight, dx_ifaceBlock::ent, VLayoutPiece::GetPieceText(), VLayoutPiece::GetPieceTextPosition(), ToPixel(), and varInsunits.
Referenced by ExportToAAMA().
|
private |
Definition at line 607 of file vdxfengine.cpp.
References ExportAAMADraw(), ExportAAMAGlobalText(), ExportAAMAGrainline(), ExportAAMAIntcut(), ExportAAMANotch(), ExportAAMAOutline(), ExportAAMAText(), fileName, VAbstractPiece::GetName(), input, m_binary, m_version, size, varInsunits, and varMeasurement.
Referenced by VDxfPaintDevice::ExportToAAMA().
|
private |
Definition at line 575 of file vdxfengine.cpp.
References Centimeters, Inches, and Millimeters.
Referenced by AAMALine(), AAMAText(), CreateAAMAPolygon(), drawEllipse(), drawLines(), drawPath(), drawPolygon(), and drawTextItem().
QString VDxfEngine::getFileName | ( | ) | const |
Definition at line 430 of file vdxfengine.cpp.
References fileName.
int VDxfEngine::getPenColor | ( | ) |
Definition at line 487 of file vdxfengine.cpp.
Referenced by drawEllipse(), drawLines(), drawPath(), drawPolygon(), and drawTextItem().
std::string VDxfEngine::getPenStyle | ( | ) |
Definition at line 468 of file vdxfengine.cpp.
Referenced by drawEllipse(), drawLines(), drawPath(), drawPolygon(), and drawTextItem().
double VDxfEngine::getResolution | ( | ) | const |
Definition at line 417 of file vdxfengine.cpp.
References resolution.
Referenced by VDxfPaintDevice::getResolution(), and VDxfPaintDevice::metric().
QSize VDxfEngine::getSize | ( | ) | const |
Definition at line 404 of file vdxfengine.cpp.
References size.
Referenced by AAMALine(), AAMAText(), CreateAAMAPolygon(), drawEllipse(), drawLines(), drawPath(), drawPolygon(), drawTextItem(), ExportAAMAGlobalText(), VDxfPaintDevice::getSize(), and VDxfPaintDevice::metric().
DRW::Version VDxfEngine::GetVersion | ( | ) | const |
Definition at line 443 of file vdxfengine.cpp.
References m_version.
Referenced by VDxfPaintDevice::GetVersion().
bool VDxfEngine::IsBinaryFormat | ( | ) | const |
Definition at line 462 of file vdxfengine.cpp.
References m_binary.
Referenced by VDxfPaintDevice::IsBinaryFormat().
void VDxfEngine::SetBinaryFormat | ( | bool | binary | ) |
Definition at line 456 of file vdxfengine.cpp.
References m_binary.
Referenced by VDxfPaintDevice::SetBinaryFormat().
void VDxfEngine::setFileName | ( | const QString & | value | ) |
Definition at line 436 of file vdxfengine.cpp.
References fileName.
Referenced by VDxfPaintDevice::setFileName().
void VDxfEngine::setInsunits | ( | const VarInsunits & | var | ) |
Definition at line 565 of file vdxfengine.cpp.
References varInsunits.
Referenced by VDxfPaintDevice::setInsunits().
void VDxfEngine::setMeasurement | ( | const VarMeasurement & | var | ) |
Definition at line 558 of file vdxfengine.cpp.
References varMeasurement.
Referenced by VDxfPaintDevice::setMeasurement().
void VDxfEngine::setResolution | ( | double | value | ) |
Definition at line 423 of file vdxfengine.cpp.
References resolution.
Referenced by VDxfPaintDevice::setResolution().
void VDxfEngine::setSize | ( | const QSize & | value | ) |
Definition at line 410 of file vdxfengine.cpp.
References size.
Referenced by VDxfPaintDevice::setSize().
void VDxfEngine::SetVersion | ( | DRW::Version | version | ) |
Definition at line 449 of file vdxfengine.cpp.
References m_version.
Referenced by VDxfPaintDevice::SetVersion().
|
private |
Definition at line 590 of file vdxfengine.cpp.
References Centimeters, Inches, Millimeters, and resolution.
Referenced by ExportAAMAGlobalText(), and ExportAAMAText().
|
virtual |
Definition at line 389 of file vdxfengine.cpp.
|
virtual |
Definition at line 127 of file vdxfengine.cpp.
References transform.
|
friend |
Definition at line 55 of file vdxfengine.h.
|
private |
Definition at line 99 of file vdxfengine.h.
Referenced by begin(), ExportToAAMA(), getFileName(), and setFileName().
|
private |
Definition at line 103 of file vdxfengine.h.
Referenced by begin(), drawEllipse(), drawLines(), drawPath(), drawPolygon(), drawTextItem(), end(), ExportAAMAGlobalText(), and ExportToAAMA().
|
private |
Definition at line 101 of file vdxfengine.h.
Referenced by end(), ExportToAAMA(), IsBinaryFormat(), and SetBinaryFormat().
|
private |
Definition at line 100 of file vdxfengine.h.
Referenced by AAMAPolygon(), begin(), drawPath(), drawPolygon(), ExportToAAMA(), GetVersion(), and SetVersion().
|
private |
Definition at line 98 of file vdxfengine.h.
Referenced by getResolution(), setResolution(), and ToPixel().
|
private |
Definition at line 97 of file vdxfengine.h.
Referenced by begin(), ExportToAAMA(), getSize(), and setSize().
|
private |
Definition at line 106 of file vdxfengine.h.
Referenced by drawTextItem(), and ~VDxfEngine().
|
private |
Definition at line 102 of file vdxfengine.h.
Referenced by drawEllipse(), drawLines(), drawPath(), drawPolygon(), drawTextItem(), and updateState().
|
private |
Definition at line 105 of file vdxfengine.h.
Referenced by AAMALine(), AAMAText(), begin(), CreateAAMAPolygon(), drawEllipse(), drawLines(), drawPath(), drawPolygon(), drawTextItem(), ExportAAMAGlobalText(), ExportAAMAText(), ExportToAAMA(), and setInsunits().
|
private |
Definition at line 104 of file vdxfengine.h.
Referenced by begin(), ExportToAAMA(), and setMeasurement().