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

Base class for all DXF geometric entities. More...

#include <Entities.h>

Inheritance diagram for sf::dxf::Entity:

Public Types

enum  Type {
  etLine , etPolyline , etCircle , etArc ,
  etUnknown
}
 Enumeration of supported DXF entity types. More...
 

Public Member Functions

 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

Type _type
 
QString _layerName
 
QColor _color
 Color of the entity, derived from layer or entity itself.
 

Detailed Description

Base class for all DXF geometric entities.

Member Enumeration Documentation

◆ Type

Enumeration of supported DXF entity types.

Enumerator
etLine 

Represents a LINE entity.

etPolyline 

Represents a POLYLINE entity.

etCircle 

Represents a CIRCLE entity.

etArc 

Represents an ARC entity.

etUnknown 

Represents an unknown or unsupported entity type.

Constructor & Destructor Documentation

◆ Entity()

sf::dxf::Entity::Entity ( Type  type,
const QString &  layer_name,
const QColor &  color 
)
inline

Constructs a DxfEntity object.

Parameters
typeThe type of the DXF entity.
layer_nameThe name of the layer the entity belongs to.
colorThe color of the entity.

◆ ~Entity()

virtual sf::dxf::Entity::~Entity ( )
virtualdefault

Virtual destructor for proper polymorphic cleanup.

Member Data Documentation

◆ _color

QColor sf::dxf::Entity::_color

Color of the entity, derived from layer or entity itself.

◆ _layerName

QString sf::dxf::Entity::_layerName

◆ _type

Type sf::dxf::Entity::_type

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