25#ifndef DL_ATTRIBUTES_H
26#define DL_ATTRIBUTES_H
72 const std::string& linetype,
73 double linetypeScale) :
79 linetypeScale(linetypeScale),
98 int color,
int color24,
int width,
99 const std::string& linetype,
108 inPaperSpace(
false) {
141 this->color24 = color;
181 this->linetype = linetype;
188 this->linetypeScale = linetypeScale;
192 return linetypeScale;
199 if (linetype.length()==0) {
Storing and passing around attributes.
Definition dl_attributes.h:41
std::string layer
Definition dl_attributes.h:223
void setColor24(int color)
Sets the 24bit color.
Definition dl_attributes.h:140
void setLayer(const std::string &layer)
Sets the layer.
Definition dl_attributes.h:115
std::string getLinetype() const
Definition dl_attributes.h:198
DL_Attributes(const std::string &layer, int color, int color24, int width, const std::string &linetype, int handle=-1)
Constructor for DXF attributes.
Definition dl_attributes.h:97
int color24
Definition dl_attributes.h:225
DL_Attributes()
Default constructor.
Definition dl_attributes.h:48
void setLinetype(const std::string &linetype)
Sets the line type.
Definition dl_attributes.h:180
bool isInPaperSpace() const
Definition dl_attributes.h:218
double linetypeScale
Definition dl_attributes.h:228
int getColor() const
Definition dl_attributes.h:149
std::string linetype
Definition dl_attributes.h:227
int getWidth() const
Definition dl_attributes.h:172
void setInPaperSpace(bool on)
Definition dl_attributes.h:214
std::string getLayer() const
Definition dl_attributes.h:122
int handle
Definition dl_attributes.h:229
DL_Attributes(const std::string &layer, int color, int width, const std::string &linetype, double linetypeScale)
Constructor for DXF attributes.
Definition dl_attributes.h:70
void setLinetypeScale(double linetypeScale)
Sets the entity specific line type scale.
Definition dl_attributes.h:187
void setHandle(int h)
Definition dl_attributes.h:206
int width
Definition dl_attributes.h:226
int getHandle() const
Definition dl_attributes.h:210
void setWidth(int width)
Sets the width.
Definition dl_attributes.h:165
bool inPaperSpace
Definition dl_attributes.h:232
int getColor24() const
Definition dl_attributes.h:158
int color
Definition dl_attributes.h:224
double getLinetypeScale() const
Definition dl_attributes.h:191
void setColor(int color)
Sets the color.
Definition dl_attributes.h:131
#define DXFLIB_EXPORT
Definition dl_global.h:12
#define false
Definition opennurbs_system.h:252