43 , m_line_type_scale(1.0)
45 , m_in_paper_space(false)
51 , m_line_type(
std::move(linetype))
52 , m_line_type_scale(linetypeScale)
54 , m_in_paper_space(false)
58 : m_layer(
std::move(layer))
60 , m_line_type(
std::move(linetype))
61 , m_line_type_scale(1.0)
64 , m_in_paper_space(false)
69 return m_layer == attributes.m_layer
70 && m_color == attributes.m_color
71 && m_block == attributes.m_block
72 && m_line_type == attributes.m_line_type
73 && m_line_type_scale == attributes.m_line_type_scale
74 && m_handle == attributes.m_handle
75 && m_width == attributes.m_width
76 && m_in_paper_space == attributes.m_in_paper_space;
80 return m_layer != attributes.m_layer
81 || m_color != attributes.m_color
82 || m_block != attributes.m_block
83 || m_line_type != attributes.m_line_type
84 || m_line_type_scale != attributes.m_line_type_scale
85 || m_handle != attributes.m_handle
86 || m_width != attributes.m_width
87 || m_in_paper_space != attributes.m_in_paper_space;
111 static const String by_layer(
"BYLAYER");
112 return m_line_type.
size() == 0 ? by_layer : m_line_type;
134 bool m_in_paper_space;
constexpr t_index_type size() const
Definition Buffer.hpp:1461
Definition DXFAttributes.h:39
bool isInPaperSpace() const
Definition DXFAttributes.h:119
void setInPaperSpace(bool on)
Definition DXFAttributes.h:118
void setSection(const String &h)
Definition DXFAttributes.h:121
DXFAttributes(String layer, const RGBColor &color, int width, String linetype, uint04 handle)
Definition DXFAttributes.h:57
const String & getLayer() const
Definition DXFAttributes.h:91
void setColor(const RGBColor &color)
Definition DXFAttributes.h:96
const String & section() const
Definition DXFAttributes.h:122
DXFAttributes(const String &layer, const RGBColor &color, int width, String linetype, double linetypeScale)
Definition DXFAttributes.h:48
void setLinetypeScale(double linetypeScale)
Definition DXFAttributes.h:106
DXFAttributes()
Definition DXFAttributes.h:41
void setLayer(const String &layer)
Definition DXFAttributes.h:90
void setLinetype(const String &linetype)
Definition DXFAttributes.h:104
const String & getLinetype() const
Definition DXFAttributes.h:109
void setWidth(int width)
Definition DXFAttributes.h:100
const String & block() const
Definition DXFAttributes.h:94
bool operator==(const DXFAttributes &attributes) const
Definition DXFAttributes.h:67
double getLinetypeScale() const
Definition DXFAttributes.h:108
const RGBColor & getColor() const
Definition DXFAttributes.h:98
int getWidth() const
Definition DXFAttributes.h:102
void setBlock(const String &block)
Definition DXFAttributes.h:93
void setHandle(const String &h)
Definition DXFAttributes.h:115
const String & handle() const
Definition DXFAttributes.h:116
bool operator!=(const DXFAttributes &attributes) const
Definition DXFAttributes.h:78
Represents a color in the RGB space with optional alpha transparency.
Definition RGBColor.h:53
uint32_t uint04
-Defines an alias representing a 4 byte, unsigned integer -Can represent exact integer values 0 throu...
Definition BaseValues.hpp:120
double fltp08
Defines an alias representing an 8 byte floating-point number.
Definition BaseValues.hpp:181
Definition BaseValues.hpp:272