46 , m_line_type_scale(1.0)
48 , m_in_paper_space(false)
54 , m_line_type(
std::move(linetype))
55 , m_line_type_scale(linetypeScale)
57 , m_in_paper_space(false)
61 : m_layer(
std::move(layer))
63 , m_line_type(
std::move(linetype))
64 , m_line_type_scale(1.0)
67 , m_in_paper_space(false)
72 return m_layer == attributes.m_layer
73 && m_color == attributes.m_color
74 && m_block == attributes.m_block
75 && m_line_type == attributes.m_line_type
76 && m_line_type_scale == attributes.m_line_type_scale
77 && m_handle == attributes.m_handle
78 && m_width == attributes.m_width
79 && m_in_paper_space == attributes.m_in_paper_space;
83 return m_layer != attributes.m_layer
84 || m_color != attributes.m_color
85 || m_block != attributes.m_block
86 || m_line_type != attributes.m_line_type
87 || m_line_type_scale != attributes.m_line_type_scale
88 || m_handle != attributes.m_handle
89 || m_width != attributes.m_width
90 || m_in_paper_space != attributes.m_in_paper_space;
114 static const String by_layer(
"BYLAYER");
115 return m_line_type.
size() == 0 ? by_layer : m_line_type;
137 bool m_in_paper_space;
constexpr t_index_type size() const
Definition Buffer.hpp:823
DXF Style attributes that can be applied to CAD Entity objects.
Definition DXFAttributes.h:42
bool isInPaperSpace() const
Definition DXFAttributes.h:122
void setInPaperSpace(bool on)
Definition DXFAttributes.h:121
void setSection(const String &h)
Definition DXFAttributes.h:124
DXFAttributes(String layer, const RGBColor &color, int width, String linetype, uint04 handle)
Definition DXFAttributes.h:60
const String & getLayer() const
Definition DXFAttributes.h:94
void setColor(const RGBColor &color)
Definition DXFAttributes.h:99
const String & section() const
Definition DXFAttributes.h:125
DXFAttributes(const String &layer, const RGBColor &color, int width, String linetype, double linetypeScale)
Definition DXFAttributes.h:51
void setLinetypeScale(double linetypeScale)
Definition DXFAttributes.h:109
DXFAttributes()
Definition DXFAttributes.h:44
void setLayer(const String &layer)
Definition DXFAttributes.h:93
void setLinetype(const String &linetype)
Definition DXFAttributes.h:107
const String & getLinetype() const
Definition DXFAttributes.h:112
void setWidth(int width)
Definition DXFAttributes.h:103
const String & block() const
Definition DXFAttributes.h:97
bool operator==(const DXFAttributes &attributes) const
Definition DXFAttributes.h:70
double getLinetypeScale() const
Definition DXFAttributes.h:111
const RGBColor & getColor() const
Definition DXFAttributes.h:101
int getWidth() const
Definition DXFAttributes.h:105
void setBlock(const String &block)
Definition DXFAttributes.h:96
void setHandle(const String &h)
Definition DXFAttributes.h:118
const String & handle() const
Definition DXFAttributes.h:119
bool operator!=(const DXFAttributes &attributes) const
Definition DXFAttributes.h:81
Represents a color in the RGB space with optional alpha transparency.
Definition RGBColor.h:54
The core String class for the NDEVR API.
Definition String.h:69
uint32_t uint04
-Defines an alias representing a 4 byte, unsigned integer -Can represent exact integer values 0 throu...
Definition BaseValues.hpp:96
double fltp08
Defines an alias representing an 8 byte floating-point number.
Definition BaseValues.hpp:149
Defines for a given type (such as sint04, fltp08, UUID, etc) a maximum, minimum, and reserved 'invali...
Definition BaseValues.hpp:233