|
QCAD Application Framework
CAD Application Development and Automation.
|
Storing and passing around attributes. More...
#include <dl_attributes.h>
Public Member Functions | |
| DL_Attributes () | |
| Default constructor. | |
| DL_Attributes (const string &layer, int color, int width, const string &lineType) | |
| Constructor for DXF attributes. | |
| DL_Attributes (const string &layer, int color, int color24, int width, const string &lineType) | |
| Constructor for DXF attributes. | |
| int | getColor () const |
| int | getColor24 () const |
| string | getLayer () const |
| string | getLineType () const |
| int | getWidth () const |
| DL_Attributes | operator= (const DL_Attributes &attrib) |
| Copies attributes (deep copies) from another attribute object. | |
| void | setColor (int color) |
| Sets the color. | |
| void | setColor24 (int color) |
| Sets the 24bit color. | |
| void | setLayer (const string &layer) |
| Sets the layer. | |
| void | setLineType (const string &lineType) |
| Sets the line type. | |
| void | setWidth (int width) |
| Sets the width. | |
Private Attributes | |
| int | color |
| int | color24 |
| string | layer |
| string | lineType |
| int | width |
Storing and passing around attributes.
Attributes are the layer name, color, width and line type.
|
inline |
Default constructor.
|
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" |
|
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 (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" |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Copies attributes (deep copies) from another attribute object.
|
inline |
|
inline |
Sets the layer.
If the given pointer points to NULL, the new layer name will be an empty but valid string.
|
inline |
Sets the line type.
This can be any string and is not checked to be a valid line type.
|
inline |
Sets the width.
|
private |
|
private |
|
private |
|
private |
|
private |