Objects

objects/mleader/style

#include "dxfio/objects/mleader/style.hpp"

In DxfIO::Objects::Mleader

struct LeaderLEADER

How the leader lines of a multileader style are drawn.

FieldType and defaultMeaning
OrderintWhich end of a leader is drawn first: 0 the head, 1 the tail. Group 172.
Pointsint{2}The most points a leader line has. Group 90.
FirstdoubleThe angle the first segment snaps to; 0 for any. Group 40.
SeconddoubleThe angle the second segment snaps to; 0 for any. Group 41.
Typeint{1}The kind of line: 0 invisible, 1 straight, 2 spline. Group 173.
Colorint{PackedByblock}The color of the lines, packed into one integer as AutoCAD does. Group 91.
LinetypeHandleThe linetype of the lines. Group 340.
Lineweightint{Lineweights::Byblock}The lineweight in hundredths of a millimeter, or -1 ByLayer, -2 ByBlock, -3 the default. Group 92.
Landingbool{true}Whether the leader lands on the content. Group 290.
Gapdouble{Margin}The gap between the landing and the content. Group 42.
Doglegbool{true}Whether the leader ends in a horizontal dogleg. Group 291.
Lengthdouble{Reach}The length of the dogleg. Group 43.
ArrowHandleThe block record of the arrowhead; none for the closed filled arrow. Group 341.
Sizedouble{Mleader::Size}The size of the arrowhead. Group 44.

struct TextTEXT

How the text of a multileader style is drawn.

FieldType and defaultMeaning
Contentstd::stringThe text a new multileader starts with. Group 300.
StyleHandleThe text style. Group 342.
Leftint{1}Where a leader from the left meets the text, such as 1 at the middle of its top line. Group 174.
Rightint{1}Where a leader from the right meets the text, as Left. Group 178.
Angleint{1}How the text is turned: 0 along the leader, 1 horizontal, 2 along the leader but never upside down. Group 175.
AlignmentintHow the lines of the text are aligned: 0 left, 1 center, 2 right. Group 176.
Colorint{PackedByblock}The color of the text, packed into one integer as AutoCAD does. Group 93.
Heightdouble{Size}The height of the text. Group 45.
FrameboolWhether the text is framed. Group 292.
FlushboolWhether the text is always aligned left. Group 297.
Spacedouble{Size}The space between the text and its alignment. Group 46.
DirectionintWhich way leaders meet the text: 0 from the sides, 1 from above or below. Group 271, from R2010.
Bottomint{Centered}Where a leader from below meets the text. Group 272, from R2010.
Topint{Centered}Where a leader from above meets the text. Group 273, from R2010.

struct Block

How the block of a multileader style is drawn, when its content is a block.

FieldType and defaultMeaning
RecordHandleThe block record of the content. Group 343.
Colorint{PackedByblock}The color of the block, packed into one integer as AutoCAD does. Group 94.
ScaleVector{.X = 1, .Y = 1, .Z = 1}The scale of the block along X, Y and Z. Groups 47, 49, 140.
Scaledbool{true}Whether Scale applies. Group 293.
RotationdoubleThe rotation of the block. Group 141.
Rotatedbool{true}Whether Rotation applies. Group 294.
ConnectionintWhere the leader meets the block: 0 its extents, 1 its insertion point. Group 177.

struct MLeaderStyleMLEADERSTYLE

An MLEADERSTYLE: how a multileader draws its leader lines and its text or block, named by its entry in the multileader style dictionary.

FieldType and defaultMeaning
BaseDxfIO::BaseThe handle, owner, reactors and extended data.
Revisionint{2}A version number, 2 as AutoCAD writes it. Group 179, from R2010.
Contentint{2}The content at the end of the leader: 0 none, 1 a block, 2 text, 3 a tolerance. Group 170.
Orderint{1}What is drawn first: 0 the content, 1 the leader. Group 171.
Descriptionstd::stringThe style's description. Group 3.
LeaderBoxed<Mleader::Leader>How the leader lines are drawn, kept on the heap as the text and block are, so every object stays small.
TextBoxed<Mleader::Text>How the text is drawn.
BlockBoxed<Mleader::Block>How the block is drawn.
Scaledouble{1}The factor the whole multileader is scaled by. Group 142.
OverwriteboolWhether a property of the style was overridden. Group 295.
AnnotativeboolWhether the style is annotative. Group 296.
Breaksdouble{Mleader::Breaking}The gap left where a leader is broken. Group 143.
SpareintA value AutoCAD writes with no published meaning, usually 0. Group 298, from R2013.

Constants

PackedByblockint = -1056964608ByBlock as a packed color, AutoCAD's color in one integer: the color method 0xC1 in the top byte and nothing below it. Not Colors::Byblock, the index 0 of group 62.
Margindouble = 2The landing gap of a new multileader style.
Reachdouble = 8The dogleg length of a new multileader style.
Sizedouble = 4The arrow size and text height of a new multileader style.
Breakingdouble = 3.75The break gap of a new multileader style.
Centeredint = 9A text attachment above or below: centered on the text.