Entities

entities/leader

#include "dxfio/entities/leader.hpp"

In DxfIO::Entities

struct Lead

The AcDbLeader subclass of a LEADER: its vertices, its arrowhead and the annotation it points from.

FieldType and defaultMeaning
StyleSymbolThe name of the dimension style. Group 3.
Arrowint{1}1 when the leader has an arrowhead, 0 when it has none. Group 71.
PathintThe path: 0 straight segments, 1 a spline. Group 72.
Annotationint{Unannotated}What the leader was made with: 0 an MTEXT, 1 a TOLERANCE, 2 a block reference, 3 no annotation. Group 73.
Directionint{1}1 when the hookline runs along the horizontal direction, 0 when it runs against it. Group 74.
Hookint1 when the leader ends in a hookline, 0 when it does not. Group 75.
Heightstd::optional<double>The height of the text annotation. Group 40.
Widthstd::optional<double>The width of the text annotation. Group 41.
Pointsstd::vector<Vector>The vertices, in world coordinates; group 76 counts them. Groups 10, 20, 30.
Colorstd::optional<int>The color of the leader when its dimension style's DIMCLRD is ByBlock. Group 77.
NoteHandleThe annotation: an MTEXT, a TOLERANCE or an INSERT. Group 340.
NormalVector{Up}The normal of the plane the entity is drawn in. Groups 210, 220, 230.
HorizontalVector{.X = 1}The horizontal direction of the leader. Groups 211, 221, 231.
BlockVectorThe offset of the last vertex from the insertion point of the block reference it annotates. Groups 212, 222, 232.
OffsetVectorThe offset of the last vertex from where the annotation is placed. Groups 213, 223, 233.

struct LeaderLEADER

A LEADER: a line with an arrowhead, from a feature to its annotation.

FieldTypeMeaning
RecordEntities::RecordThe layer, linetype, color and the rest every entity carries.
LeadBoxed<Entities::Lead>The vertices, arrowhead and annotation, from the AcDbLeader subclass.

Constants

Unannotatedint = 3The annotation type of a leader made without an annotation, which group 73 takes when it is left out.