![]() |
ACloudViewer
3.9.4
A Modern Library for 3D Data Processing
|
#include <dl_attributes.h>
Public Member Functions | |
| DL_Attributes () | |
| DL_Attributes (const std::string &layer, int color, int width, const std::string &linetype, double linetypeScale) | |
| DL_Attributes (const std::string &layer, int color, int color24, int width, const std::string &linetype, int handle=-1) | |
| void | setLayer (const std::string &layer) |
| std::string | getLayer () const |
| void | setColor (int color) |
| void | setColor24 (int color) |
| int | getColor () const |
| int | getColor24 () const |
| void | setWidth (int width) |
| int | getWidth () const |
| void | setLinetype (const std::string &linetype) |
| void | setLinetypeScale (double linetypeScale) |
| double | getLinetypeScale () const |
| std::string | getLinetype () const |
| void | setHandle (int h) |
| int | getHandle () const |
| void | setInPaperSpace (bool on) |
| bool | isInPaperSpace () const |
Storing and passing around attributes. Attributes are the layer name, color, width and line type.
Definition at line 40 of file dl_attributes.h.
|
inline |
Default constructor.
Definition at line 45 of file dl_attributes.h.
|
inline |
Constructor for DXF attributes.
| layer | Layer name for this entity or NULL for no layer (every entity should be on a named layer!). |
| color | Color number (0..256). 0 = BYBLOCK, 256 = BYLAYER. |
| width | Line thickness. Defaults to zero. -1 = BYLAYER, -2 = BYBLOCK, -3 = default width |
| linetype | Line type name or "BYLAYER" or "BYBLOCK". Defaults to "BYLAYER" |
Definition at line 66 of file dl_attributes.h.
|
inline |
Constructor for DXF attributes.
| layer | Layer name for this entity or NULL for no layer (every entity should be on a named layer!). |
| color | Color number (0..256). 0 = BYBLOCK, 256 = BYLAYER. |
| color24 | 24 bit color (0x00RRGGBB, see DXF reference). |
| width | Line thickness. Defaults to zero. -1 = BYLAYER, -2 = BYBLOCK, -3 = default width |
| linetype | Line type name or "BYLAYER" or "BYBLOCK". Defaults to "BYLAYER" |
Definition at line 92 of file dl_attributes.h.
|
inline |
Definition at line 137 of file dl_attributes.h.
References color.
Referenced by DL_Dxf::addLayer(), DL_Writer::entityAttributes(), Test_CreationClass::printAttributes(), and DL_Dxf::writeLayer().
|
inline |
Definition at line 144 of file dl_attributes.h.
Referenced by DL_Writer::entityAttributes(), and DL_Dxf::writeLayer().
|
inline |
Definition at line 184 of file dl_attributes.h.
|
inline |
Definition at line 116 of file dl_attributes.h.
Referenced by DL_Writer::entityAttributes(), Test_CreationClass::printAttributes(), and DL_Dxf::writePolyline().
|
inline |
Definition at line 174 of file dl_attributes.h.
Referenced by DL_Dxf::addLayer(), DL_Writer::entityAttributes(), Test_CreationClass::printAttributes(), and DL_Dxf::writeLayer().
|
inline |
Definition at line 169 of file dl_attributes.h.
Referenced by DL_Writer::entityAttributes().
|
inline |
Definition at line 154 of file dl_attributes.h.
References width.
Referenced by DL_Dxf::addLayer(), DL_Writer::entityAttributes(), Test_CreationClass::printAttributes(), and DL_Dxf::writeLayer().
|
inline |
Definition at line 188 of file dl_attributes.h.
|
inline |
Sets the color.
Definition at line 123 of file dl_attributes.h.
References color.
Referenced by DL_Dxf::addLayer().
|
inline |
|
inline |
Definition at line 182 of file dl_attributes.h.
|
inline |
Definition at line 186 of file dl_attributes.h.
Referenced by DL_Dxf::processDXFGroup().
|
inline |
Sets the layer. If the given pointer points to NULL, the new layer name will be an empty but valid string.
Definition at line 111 of file dl_attributes.h.
|
inline |
Sets the line type. This can be any string and is not checked to be a valid line type.
Definition at line 160 of file dl_attributes.h.
Referenced by DL_Dxf::addLayer().
|
inline |
Sets the entity specific line type scale.
Definition at line 165 of file dl_attributes.h.
Referenced by DL_Dxf::processDXFGroup().
|
inline |
Sets the width.
Definition at line 149 of file dl_attributes.h.
References width.
Referenced by DL_Dxf::addLayer().