39 Entity(
Type type,
const QString& layer_name,
const QColor& color)
66 Line(
const QPointF& start,
const QPointF& end,
const QString& layer_name,
const QColor& color)
92 Polyline(
const QList<QPointF>& points,
bool closed,
const QString& layer_name,
const QColor& color)
114 Circle(
const QPointF& center,
double radius,
const QString& layer_name,
const QColor& color)
140 Arc(
const QPointF& center,
double radius,
double start_angle,
double end_angle,
const QString& layer_name,
const QColor& color)
182 LayerInfo(
const QString& name,
int color_index,
const QColor& color,
bool is_visible)
std::shared_ptr< Entity > EntityWrapper
LayerEntities holds all parsed entities, organized by layer.
Definition Entities.h:154
QMap< QString, LayerInfo > Layers
Layers holds information for all layers in the DXF file.
Definition Entities.h:193
QList< EntityWrapper > EntityList
Definition Entities.h:155
QMap< QString, EntityList > LayerEntities
Definition Entities.h:156
Represents a DXF ARC entity.
Definition Entities.h:125
double _endAngle
End angle in degrees.
Definition Entities.h:129
double _radius
Definition Entities.h:127
double _startAngle
Start angle in degrees.
Definition Entities.h:128
Arc(const QPointF ¢er, double radius, double start_angle, double end_angle, const QString &layer_name, const QColor &color)
Constructs an Arc entity.
Definition Entities.h:140
QPointF _center
Definition Entities.h:126
Represents a DXF CIRCLE entity.
Definition Entities.h:103
Circle(const QPointF ¢er, double radius, const QString &layer_name, const QColor &color)
Constructs a Circle entity.
Definition Entities.h:114
double _radius
Definition Entities.h:105
QPointF _center
Definition Entities.h:104
Base class for all DXF geometric entities.
Definition Entities.h:16
Type
Enumeration of supported DXF entity types.
Definition Entities.h:21
@ etArc
Represents an ARC entity.
Definition Entities.h:25
@ etPolyline
Represents a POLYLINE entity.
Definition Entities.h:23
@ etCircle
Represents a CIRCLE entity.
Definition Entities.h:24
@ etLine
Represents a LINE entity.
Definition Entities.h:22
@ etUnknown
Represents an unknown or unsupported entity type.
Definition Entities.h:26
QString _layerName
Definition Entities.h:30
QColor _color
Color of the entity, derived from layer or entity itself.
Definition Entities.h:31
Entity(Type type, const QString &layer_name, const QColor &color)
Constructs a DxfEntity object.
Definition Entities.h:39
Type _type
Definition Entities.h:29
virtual ~Entity()=default
Virtual destructor for proper polymorphic cleanup.
LayerInfo holds properties for each layer.
Definition Entities.h:162
LayerInfo(const QString &name, int color_index, const QColor &color, bool is_visible)
Constructs a LayerInfo object.
Definition Entities.h:182
bool _isVisible
Definition Entities.h:166
int _colorIndex
AutoCAD Color Index (ACI).
Definition Entities.h:164
QColor _color
Definition Entities.h:165
LayerInfo()
Definition Entities.h:170
QString _name
Definition Entities.h:163
Represents a DXF LINE entity.
Definition Entities.h:55
QPointF _endPoint
Definition Entities.h:57
QPointF _startPoint
Definition Entities.h:56
Line(const QPointF &start, const QPointF &end, const QString &layer_name, const QColor &color)
Constructs a Line entity.
Definition Entities.h:66
Represents a DXF POLYLINE entity.
Definition Entities.h:81
bool _isClosed
Whether the polyline is closed.
Definition Entities.h:83
Polyline(const QList< QPointF > &points, bool closed, const QString &layer_name, const QColor &color)
Constructs a Polyline entity.
Definition Entities.h:92
QList< QPointF > _points
Definition Entities.h:82