2#include <QGraphicsRectItem>
3#include <QGraphicsScene>
46 void drawLine(
const Line& line);
52 void drawPolyline(
const Polyline& polyline);
58 void drawCircle(
const Circle& circle);
64 void drawArc(
const Arc& arc);
65 void drawArcOld(
const Arc& arc);
72 QPen getDrawingPen(
const Entity& entity)
const;
The GraphicsScene class is a custom QGraphicsScene for rendering DXF entities.
Definition GraphicsScene.h:16
void load(const LayerEntities &entities_by_layer, const Layers &layer_info)
Loads and draws DXF entities onto the scene.
GraphicsScene(QObject *parent=nullptr)
Constructs a GraphicsScene object.
~GraphicsScene() override
Destroys the GraphicsScene object.
void clearScene()
Clears all items from the scene.
#define _DXF_CLASS
Definition dxf/global.h:38
QMap< QString, LayerInfo > Layers
Layers holds information for all layers in the DXF file.
Definition Entities.h:193
QMap< QString, EntityList > LayerEntities
Definition Entities.h:156
Represents a DXF ARC entity.
Definition Entities.h:125
Represents a DXF CIRCLE entity.
Definition Entities.h:103
Base class for all DXF geometric entities.
Definition Entities.h:16
Represents a DXF LINE entity.
Definition Entities.h:55
Represents a DXF POLYLINE entity.
Definition Entities.h:81