31 #include <QMessageLogger>
38 :QPaintDevice(), engine(new
VDxfEngine()), fileName()
67 qWarning(
"VDxfPaintDevice::setFileName(), cannot set file name while Dxf is being generated");
86 qWarning(
"VDxfPaintDevice::setSize(), cannot set size while Dxf is being generated");
103 qWarning(
"VDxfPaintDevice::setResolution(), cannot set dpi while Dxf is being generated");
120 qWarning(
"VDxfPaintDevice::SetVersion(), cannot set version while Dxf is being generated");
131 qWarning(
"VDxfPaintDevice::SetBinaryFormat(), cannot set binary format while Dxf is being generated");
148 qWarning(
"VDxfPaintDevice::setMeasurement(), cannot set measurements while Dxf is being generated");
159 qWarning(
"VDxfPaintDevice::setInsunits(), cannot set units while Dxf is being generated");
179 case QPaintDevice::PdmDepth:
181 case QPaintDevice::PdmWidth:
183 case QPaintDevice::PdmHeight:
185 case QPaintDevice::PdmHeightMM:
187 case QPaintDevice::PdmWidthMM:
189 case QPaintDevice::PdmNumColors:
190 return static_cast<int>(0xffffffff);
191 case QPaintDevice::PdmPhysicalDpiX:
192 case QPaintDevice::PdmPhysicalDpiY:
193 case QPaintDevice::PdmDpiX:
194 case QPaintDevice::PdmDpiY:
196 case QPaintDevice::PdmDevicePixelRatio:
197 case QPaintDevice::PdmDevicePixelRatioScaled:
200 qWarning(
"VDxfPaintDevice::metric(), unhandled metric %d\n",
metric);
void setMeasurement(const VarMeasurement &var)
double getResolution() const
bool ExportToAAMA(const QVector< VLayoutPiece > &details)
bool IsBinaryFormat() const
void SetBinaryFormat(bool binary)
void setSize(const QSize &value)
DRW::Version GetVersion() const
void setResolution(double value)
void setInsunits(const VarInsunits &var)
void SetVersion(DRW::Version version)
void setFileName(const QString &value)
void setInsunits(const VarInsunits &var)
virtual ~VDxfPaintDevice() Q_DECL_OVERRIDE
virtual QPaintEngine * paintEngine() const Q_DECL_OVERRIDE
bool ExportToAAMA(const QVector< VLayoutPiece > &details) const
void setFileName(const QString &value)
virtual int metric(PaintDeviceMetric metric) const Q_DECL_OVERRIDE
void SetBinaryFormat(bool binary)
QString getFileName() const
void setResolution(double dpi)
DRW::Version GetVersion() const
bool IsBinaryFormat() const
void SetVersion(DRW::Version version)
void setMeasurement(const VarMeasurement &var)
void setSize(const QSize &size)
double getResolution() const