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)
93 Polyline(
const QList<QPointF>& points,
bool closed,
const QString& layer_name,
const QColor& color)
115 Circle(
const QPointF& center,
double radius,
const QString& layer_name,
const QColor& color)
141 Arc(
const QPointF& center,
double radius,
double start_angle,
double end_angle,
const QString& layer_name,
const QColor& color)
179 LayerInfo(
const QString& name,
int color_index,
const QColor& color,
bool is_visible)
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
Represents a DXF ARC entity.
Definition Entities.h:126
double _endAngle
End-angle in degrees.
Definition Entities.h:130
double _radius
Radius in undefined units.
Definition Entities.h:128
double _startAngle
Start-angle in degrees.
Definition Entities.h:129
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:141
QPointF _center
Venter point in undefined units.
Definition Entities.h:127
Represents a DXF CIRCLE entity.
Definition Entities.h:104
Circle(const QPointF ¢er, double radius, const QString &layer_name, const QColor &color)
Constructs a Circle entity.
Definition Entities.h:115
double _radius
Definition Entities.h:106
QPointF _center
Definition Entities.h:105
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:154
LayerInfo(const QString &name, int color_index, const QColor &color, bool is_visible)
Initializing constructor a LayerInfo object.
Definition Entities.h:179
bool _isVisible
Flag on the visibility of the layer.
Definition Entities.h:162
int _colorIndex
AutoCAD Color Index (ACI).
Definition Entities.h:158
QColor _color
Qt color value of the index.
Definition Entities.h:160
LayerInfo()
Default constructor.
Definition Entities.h:167
QString _name
NAme of the layer.
Definition Entities.h:156
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:84
Polyline(const QList< QPointF > &points, bool closed, const QString &layer_name, const QColor &color)
Constructs a Polyline entity.
Definition Entities.h:93
QList< QPointF > _points
Definition Entities.h:82