2#include <QGraphicsRectItem>
3#include <QGraphicsScene>
48 void drawLine(
const QPointF& from,
const QPointF& to,
const QColor& color);
54 void drawLine(
const Line& line);
60 void drawPolyline(
const Polyline& polyline);
66 void drawCircle(
const Circle& circle);
72 void drawArc(
const Arc& arc);
73 void drawArcOld(
const Arc& arc);
80 QPen getDrawingPen(
const Entity& entity)
const;
The GraphicsScene class is a custom QGraphicsScene for rendering DXF entities.
Definition GraphicsScene.h:15
GraphicsScene(QObject *parent=nullptr)
Constructs a GraphicsScene object.
~GraphicsScene() override
Destroys the GraphicsScene object.
void load(const LayerEntities &layer_entities, const Layers &layer_info, bool as_lines)
Loads and draws DXF entities onto the scene.
void clearScene()
Clears all items from the scene.
#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
QMap< QString, LayerInfo > Layers
Layers holds information for all layers in the DXF file.
Definition Entities.h:201
Represents a DXF ARC entity.
Definition Entities.h:126
Represents a DXF CIRCLE entity.
Definition Entities.h:104
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