LibrePCB Developers Documentation
|
Private helper class to break dependency to dxflib. More...
Inherits DL_CreationAdapter.
Public Member Functions | |
DxfReaderImpl (DxfReader &reader) | |
virtual | ~DxfReaderImpl () |
virtual void | addPoint (const DL_PointData &data) override |
virtual void | addLine (const DL_LineData &data) override |
virtual void | addArc (const DL_ArcData &data) override |
virtual void | addCircle (const DL_CircleData &data) override |
virtual void | addEllipse (const DL_EllipseData &data) override |
virtual void | addPolyline (const DL_PolylineData &data) override |
virtual void | addVertex (const DL_VertexData &data) override |
virtual void | endSequence () override |
virtual void | setVariableInt (const std::string &key, int value, int code) override |
Private Member Functions | |
Angle | angle (double angle) const |
Angle | bulgeToAngle (double bulge) const |
Point | point (double x, double y) const |
Length | length (double value) const |
Private Attributes | |
DxfReader & | mReader |
qreal | mScaleToMm |
bool | mPolylineClosed |
int | mPolylineVertices |
Path | mPolylinePath |
Private helper class to break dependency to dxflib.
Having this class in the *.cpp file avoid including dxflib headers in our own header file. This way, dxflib only needs to be in the include path for the librepcb common library, but not for any other library or application.
Or in other words: This way, the dependency to dxflib is an implementation detail which other parts of the code base do not have to care about.
|
inline |
|
inlinevirtual |
|
inlineoverridevirtual |
|
inlineoverridevirtual |
|
inlineoverridevirtual |
|
inlineoverridevirtual |
|
inlineoverridevirtual |
|
inlineoverridevirtual |
|
inlineoverridevirtual |
|
inlineoverridevirtual |
|
inlineoverridevirtual |
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
|
private |
|
private |
|
private |
|
private |
|
private |