25 #ifndef DL_ATTRIBUTES_H
26 #define DL_ATTRIBUTES_H
28 #include "dl_global.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;
191 double getLinetypeScale()
const {
192 return linetypeScale;
199 if (linetype.length()==0) {
206 void setHandle(
int h) {
210 int getHandle()
const {
214 void setInPaperSpace(
bool on) {
218 bool isInPaperSpace() {
227 std::string linetype;
228 double linetypeScale;
int getColor() const
Definition: dl_attributes.h:149
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
void setColor(int color)
Sets the color.
Definition: dl_attributes.h:131
std::string getLayer() const
Definition: dl_attributes.h:122
Storing and passing around attributes.
Definition: dl_attributes.h:41
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
int getWidth() const
Definition: dl_attributes.h:172
void setColor24(int color)
Sets the 24bit color.
Definition: dl_attributes.h:140
void setWidth(int width)
Sets the width.
Definition: dl_attributes.h:165
DL_Attributes()
Default constructor.
Definition: dl_attributes.h:48
void setLinetypeScale(double linetypeScale)
Sets the entity specific line type scale.
Definition: dl_attributes.h:187
int getColor24() const
Definition: dl_attributes.h:158
void setLinetype(const std::string &linetype)
Sets the line type.
Definition: dl_attributes.h:180
std::string getLinetype() const
Definition: dl_attributes.h:198
void setLayer(const std::string &layer)
Sets the layer.
Definition: dl_attributes.h:115