Tables
tables/ ltype
#include "dxfio/tables/ltype.hpp"In DxfIO::Tables
struct Dash
One element of a linetype's pattern: a dash, a dot or a space, with the shape or text it may carry.
| Field | Type and default | Meaning |
|---|---|---|
Length | double | The length: positive for a dash, 0 for a dot, negative for a space. Group 49. |
Flags | int | Bits: 1 when Rotation is absolute rather than along the line, 2 when Text is drawn, 4 when Shape is. Group 74, from R13. |
Shape | int | The number of the shape drawn, in the shape file Style names; 0 for text. Group 75, from R13. |
Style | Handle | The text style or shape file the shape or text is drawn from. Group 340, from R13. |
Scale | double{1} | The scale of the shape or text. Group 46, from R13. |
Rotation | double | The rotation of the shape or text. Group 50, from R13. |
Along | double | How far the shape or text is moved along the line. Group 44, from R13. |
Across | double | How far the shape or text is moved across the line. Group 45, from R13. |
Text | std::string | The text drawn, when Flags has 2. Group 9, from R13. |
struct LtypeLTYPE
An LTYPE table record: the pattern of dashes, dots and spaces a line is drawn with.
| Field | Type and default | Meaning |
|---|---|---|
Record | Tables::Record | The name, flags and handles every table record carries. |
Description | std::string | The text that tells what the pattern looks like, such as "__ __ __". Group 3. |
Alignment | int{Aligned} | How the pattern fits the line; always 'A'. Group 72. |
Length | double | The length of the whole pattern. Group 40. |
Dashes | std::vector<Tables::Dash> | The elements of the pattern, in order; their count is group 73. |
Constants
Aligned | int = 'A' | The alignment every linetype has: 'A', the pattern fitted to the ends of the line. |