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.

FieldType and defaultMeaning
LengthdoubleThe length: positive for a dash, 0 for a dot, negative for a space. Group 49.
FlagsintBits: 1 when Rotation is absolute rather than along the line, 2 when Text is drawn, 4 when Shape is. Group 74, from R13.
ShapeintThe number of the shape drawn, in the shape file Style names; 0 for text. Group 75, from R13.
StyleHandleThe text style or shape file the shape or text is drawn from. Group 340, from R13.
Scaledouble{1}The scale of the shape or text. Group 46, from R13.
RotationdoubleThe rotation of the shape or text. Group 50, from R13.
AlongdoubleHow far the shape or text is moved along the line. Group 44, from R13.
AcrossdoubleHow far the shape or text is moved across the line. Group 45, from R13.
Textstd::stringThe 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.

FieldType and defaultMeaning
RecordTables::RecordThe name, flags and handles every table record carries.
Descriptionstd::stringThe text that tells what the pattern looks like, such as "__ __ __". Group 3.
Alignmentint{Aligned}How the pattern fits the line; always 'A'. Group 72.
LengthdoubleThe length of the whole pattern. Group 40.
Dashesstd::vector<Tables::Dash>The elements of the pattern, in order; their count is group 73.

Constants

Alignedint = 'A'The alignment every linetype has: 'A', the pattern fitted to the ends of the line.