The Reader class parses DXF files using 'dxflib' and stores entities by layer.
More...
#include <Reader.h>
The Reader class parses DXF files using 'dxflib' and stores entities by layer.
◆ Reader()
sf::dxf::Reader::Reader |
( |
QObject * |
parent = nullptr | ) |
|
|
explicit |
Constructs a Reader object.
- Parameters
-
parent | The parent QObject. |
◆ ~Reader()
sf::dxf::Reader::~Reader |
( |
| ) |
|
|
override |
◆ getEntitiesByLayer()
const LayerEntities & sf::dxf::Reader::getEntitiesByLayer |
( |
| ) |
const |
Gets the parsed entities organized by layer.
- Returns
- A constant reference to the map of entities by layer.
◆ getLayerEntities()
const Entities & sf::dxf::Reader::getLayerEntities |
( |
const QString & |
layer | ) |
const |
Gets the entity list reference from the given layer name.
- Parameters
-
- Returns
- When the layer does not exist, the list is empty.
◆ getLayerInfo()
const Layers & sf::dxf::Reader::getLayerInfo |
( |
| ) |
const |
Gets the parsed layer information.
- Returns
- A constant reference to the map of layer information.
◆ read()
bool sf::dxf::Reader::read |
( |
const QString & |
filepath, |
|
|
const QStringList & |
layers = {} |
|
) |
| |
Reads and parses a DXF file.
- Parameters
-
filepath | The path to the DXF file. |
layers | The layer names which are only read. When empty, all are read. |
- Returns
- True if the file was successfully read, false otherwise.
The documentation for this class was generated from the following file: