Scanframe Modular Application 0.1.0
Loading...
Searching...
No Matches
sf::dxf::Polyline Struct Reference

Represents a DXF POLYLINE entity. More...

#include <Entities.h>

Inheritance diagram for sf::dxf::Polyline:
Collaboration diagram for sf::dxf::Polyline:

Public Member Functions

 Polyline (const QList< QPointF > &points, bool closed, const QString &layer_name, const QColor &color)
 Constructs a Polyline entity.
 
- Public Member Functions inherited from sf::dxf::Entity
 Entity (Type type, const QString &layer_name, const QColor &color)
 Constructs a DxfEntity object.
 
virtual ~Entity ()=default
 Virtual destructor for proper polymorphic cleanup.
 

Public Attributes

QList< QPointF > _points
 
bool _isClosed
 Whether the polyline is closed.
 
- Public Attributes inherited from sf::dxf::Entity
Type _type
 
QString _layerName
 
QColor _color
 Color of the entity, derived from layer or entity itself.
 

Additional Inherited Members

- Public Types inherited from sf::dxf::Entity
enum  Type {
  etLine , etPolyline , etCircle , etArc ,
  etUnknown
}
 Enumeration of supported DXF entity types. More...
 

Detailed Description

Represents a DXF POLYLINE entity.

For simplicity, this structure stores a list of 2D points. DXF polylines can be very complex (3D, fit curves, spline curves, width, etc.). This basic structure covers a simple 2D polyline.

Constructor & Destructor Documentation

◆ Polyline()

sf::dxf::Polyline::Polyline ( const QList< QPointF > &  points,
bool  closed,
const QString &  layer_name,
const QColor &  color 
)
inline

Constructs a Polyline entity.

Parameters
pointsThe list of points defining the polyline.
closedTrue if the polyline is closed, false otherwise.
layer_nameThe name of the layer.
colorThe color of the polyline.

Member Data Documentation

◆ _isClosed

bool sf::dxf::Polyline::_isClosed

Whether the polyline is closed.

◆ _points

QList<QPointF> sf::dxf::Polyline::_points

The documentation for this struct was generated from the following file: