19 explicit Reader(QObject* parent =
nullptr);
32 bool read(
const QString& filepath,
const QStringList& layers = {});
The Reader class parses DXF files using 'dxflib' and stores entities by layer.
Definition Reader.h:13
Reader(QObject *parent=nullptr)
Constructs a Reader object.
~Reader() override
Destroys the Reader object.
const Entities & getLayerEntities(const QString &layer) const
Gets the entity list reference from the given layer name.
const LayerEntities & getEntitiesByLayer() const
Gets the parsed entities organized by layer.
const Layers & getLayerInfo() const
Gets the parsed layer information.
bool read(const QString &filepath, const QStringList &layers={})
Reads and parses a DXF file.
#define _DXF_CLASS
Definition dxf/global.h:38
QMap< QString, QList< std::shared_ptr< Entity > > > LayerEntities
LayerEntities holds all parsed entities, organized by layer. Using std::shared_ptr for automatic memo...
Definition Entities.h:191
LayerEntities::mapped_type Entities
Entities type from the map for holding entities of a layer.
Definition Entities.h:196
QMap< QString, LayerInfo > Layers
Layers holds information for all layers in the DXF file.
Definition Entities.h:201