libDXF 0.0.1
A library with DXF related functions written in C.
Data Fields

dxf_leader_struct Struct Reference

DXF definition of an AutoCAD leader entity (LEADER). More...

#include <leader.h>

Collaboration diagram for dxf_leader_struct:
Collaboration graph
[legend]

Data Fields

int id_code
char * linetype
char * layer
double elevation
double thickness
double linetype_scale
int16_t visibility
int color
int paperspace
char * dictionary_owner_soft
char * dictionary_owner_hard
char * dimension_style_name
DxfPointp0
double text_annotation_height
double text_annotation_width
int arrow_head_flag
int path_type
int creation_flag
int hookline_direction_flag
int hookline_flag
int number_vertices
int leader_color
double extr_x0
double extr_y0
double extr_z0
DxfPointp1
DxfPointp2
DxfPointp3
char * annotation_reference_hard
struct DxfLeadernext

Detailed Description

DXF definition of an AutoCAD leader entity (LEADER).

Definition at line 59 of file leader.h.


Field Documentation

Identification number for the entity.
This is to be an unique (sequential) number in the DXF file.
Group code = 5.

Definition at line 64 of file leader.h.

Referenced by dxf_leader_get_id_code(), dxf_leader_init(), dxf_leader_read(), dxf_leader_set_id_code(), and dxf_leader_write().

The linetype of the entity.
Defaults to BYLAYER if ommitted in the DXF file.
Group code = 6.

Definition at line 69 of file leader.h.

Referenced by dxf_leader_free(), dxf_leader_get_linetype(), dxf_leader_init(), dxf_leader_read(), dxf_leader_set_linetype(), and dxf_leader_write().

Layer on which the entity is drawn.
Defaults to layer "0" if no valid layername is given.
Group code = 8.

Definition at line 73 of file leader.h.

Referenced by dxf_leader_free(), dxf_leader_get_layer(), dxf_leader_init(), dxf_leader_read(), dxf_leader_set_dimension_style_name(), dxf_leader_set_layer(), and dxf_leader_write().

Elevation of the arc in the local Z-direction.
Defaults to 0.0 if omitted in the DXF file, or prior to DXF version R12, or DXF_FLATLAND equals 0 (default).
Group code = 38.

Definition at line 77 of file leader.h.

Referenced by dxf_leader_get_elevation(), dxf_leader_init(), dxf_leader_read(), dxf_leader_set_elevation(), and dxf_leader_write().

Thickness of the arc in the local Z-direction.
Defaults to 0.0 if ommitted in the DXF file.
Group code = 39.

Definition at line 82 of file leader.h.

Referenced by dxf_leader_get_thickness(), dxf_leader_init(), dxf_leader_read(), dxf_leader_set_thickness(), and dxf_leader_write().

Linetype scale (optional).
Group code = 48.

Definition at line 86 of file leader.h.

Referenced by dxf_leader_get_linetype_scale(), dxf_leader_init(), dxf_leader_read(), dxf_leader_set_linetype_scale(), and dxf_leader_write().

Object visibility (optional):

  1. Visible
  2. Invisible

Group code = 60.

Definition at line 89 of file leader.h.

Referenced by dxf_leader_get_visibility(), dxf_leader_init(), dxf_leader_read(), dxf_leader_set_visibility(), and dxf_leader_write().

Color of the entity.
Defaults to BYLAYER if ommitted in the DXF file.
Note that entities encapsulated in a block with the color BYBLOCK are represented in the "native" color of the BLOCK entity.
Group code = 62.

Definition at line 96 of file leader.h.

Referenced by dxf_leader_get_color(), dxf_leader_init(), dxf_leader_read(), dxf_leader_set_color(), and dxf_leader_write().

Entities are to be drawn on either PAPERSPACE or MODELSPACE.
Optional, defaults to DXF_MODELSPACE (0).
Group code = 67.

Definition at line 103 of file leader.h.

Referenced by dxf_leader_get_paperspace(), dxf_leader_init(), dxf_leader_read(), dxf_leader_set_paperspace(), and dxf_leader_write().

Soft-pointer ID/handle to owner dictionary (optional).
Group code = 330.

Definition at line 108 of file leader.h.

Referenced by dxf_leader_free(), dxf_leader_get_dictionary_owner_soft(), dxf_leader_init(), dxf_leader_read(), dxf_leader_set_dictionary_owner_soft(), and dxf_leader_write().

Hard owner ID/handle to owner dictionary (optional).
Group code = 360.

Definition at line 111 of file leader.h.

Referenced by dxf_leader_free(), dxf_leader_get_dictionary_owner_hard(), dxf_leader_init(), dxf_leader_read(), dxf_leader_set_dictionary_owner_hard(), and dxf_leader_write().

Dimension style name.
Group code = 3.

Definition at line 115 of file leader.h.

Referenced by dxf_leader_free(), dxf_leader_get_dimension_style_name(), dxf_leader_init(), dxf_leader_read(), and dxf_leader_write().

Vertex coordinates (single linked list, one entry for each vertex).
Group codes = 10, 20 and 30.

Definition at line 118 of file leader.h.

Referenced by dxf_leader_get_p0(), dxf_leader_get_x0(), dxf_leader_get_y0(), dxf_leader_get_z0(), dxf_leader_init(), dxf_leader_read(), dxf_leader_set_p0(), dxf_leader_set_x0(), dxf_leader_set_y0(), dxf_leader_set_z0(), and dxf_leader_write().

Text annotation height.
Group code = 40.

Definition at line 122 of file leader.h.

Referenced by dxf_leader_get_text_annotation_height(), dxf_leader_init(), dxf_leader_read(), dxf_leader_set_text_annotation_height(), and dxf_leader_write().

Text annotation width.
Group code = 41.

Definition at line 125 of file leader.h.

Referenced by dxf_leader_get_text_annotation_width(), dxf_leader_init(), dxf_leader_read(), dxf_leader_set_text_annotation_width(), and dxf_leader_write().

Arrow head flag.
Bit coded:

  1. Disabled.
  2. Enabled.

Group code = 71.

Definition at line 128 of file leader.h.

Referenced by dxf_leader_get_arrow_head_flag(), dxf_leader_init(), dxf_leader_read(), dxf_leader_set_arrow_head_flag(), and dxf_leader_write().

Leader path type.
Bit coded:

  1. Straight line segments.
  2. Spline.

Group code = 72.

Definition at line 136 of file leader.h.

Referenced by dxf_leader_get_path_type(), dxf_leader_init(), dxf_leader_read(), dxf_leader_set_path_type(), and dxf_leader_write().

Leader creation flag (default = 3).
Not bit coded:

  1. Leader created with text annotation.
  2. Created with tolerance annotation.
  3. Created with block reference annotation.
  4. Created without any annotation.

Group code = 73.

Definition at line 144 of file leader.h.

Referenced by dxf_leader_get_creation_flag(), dxf_leader_init(), dxf_leader_read(), dxf_leader_set_creation_flag(), and dxf_leader_write().

Hookline direction flag.
Not bit coded:

  1. Hookline (or end of tangent for a splined leader) is the opposite direction from the horizontal vector.
  2. Hookline (or end of tangent for a splined leader) is the same direction as horizontal vector (see Group code 75).

Group code = 74.

Definition at line 154 of file leader.h.

Referenced by dxf_leader_get_hookline_direction_flag(), dxf_leader_init(), dxf_leader_read(), dxf_leader_set_hookline_direction_flag(), and dxf_leader_write().

Hookline flag.
Bit coded:

  1. No hookline.
  2. Has a hookline.

Group code = 75.

Definition at line 166 of file leader.h.

Referenced by dxf_leader_get_hookline_flag(), dxf_leader_init(), dxf_leader_read(), dxf_leader_set_hookline_flag(), and dxf_leader_write().

Number of vertices in leader (ignored for DXFIN).
Group code = 76.

Definition at line 174 of file leader.h.

Referenced by dxf_leader_get_number_vertices(), dxf_leader_init(), dxf_leader_read(), dxf_leader_set_number_vertices(), and dxf_leader_write().

Color to use if leader's DIMCLRD=BYBLOCK.
Group code = 77.

Definition at line 177 of file leader.h.

Referenced by dxf_leader_get_leader_color(), dxf_leader_init(), dxf_leader_read(), dxf_leader_set_leader_color(), and dxf_leader_write().

X-value of the extrusion vector.
Defaults to 0.0 if omitted in the DXF file.
Group code = 210.

Definition at line 180 of file leader.h.

Referenced by dxf_leader_get_extr_x0(), dxf_leader_init(), dxf_leader_read(), dxf_leader_set_extr_x0(), and dxf_leader_write().

Y-value of the extrusion vector.
Defaults to 0.0 if omitted in the DXF file.
Group code = 220.

Definition at line 184 of file leader.h.

Referenced by dxf_leader_get_extr_y0(), dxf_leader_init(), dxf_leader_read(), dxf_leader_set_extr_y0(), and dxf_leader_write().

Z-value of the extrusion vector.
Defaults to 1.0 if omitted in the DXF file.
Group code = 230.

Definition at line 188 of file leader.h.

Referenced by dxf_leader_get_extr_z0(), dxf_leader_init(), dxf_leader_read(), dxf_leader_set_extr_z0(), and dxf_leader_write().

The Block reference insertion point offset from the last leader vertex.
Group code = 212, 222 and 232.

Definition at line 195 of file leader.h.

Referenced by dxf_leader_get_p2(), dxf_leader_get_x2(), dxf_leader_get_y2(), dxf_leader_get_z2(), dxf_leader_init(), dxf_leader_read(), dxf_leader_set_p2(), dxf_leader_set_x2(), dxf_leader_set_y2(), dxf_leader_set_z2(), and dxf_leader_write().

the Annotation placement point offset from last leader vertex.
Group codes = 213, 223 and 233.

Definition at line 199 of file leader.h.

Referenced by dxf_leader_get_p3(), dxf_leader_get_x3(), dxf_leader_get_y3(), dxf_leader_get_z3(), dxf_leader_init(), dxf_leader_read(), dxf_leader_set_p3(), dxf_leader_set_x3(), dxf_leader_set_y3(), dxf_leader_set_z3(), and dxf_leader_write().

Hard reference to associated annotation (mtext, tolerance, or insert entity).
Group code = 340.

Definition at line 203 of file leader.h.

Referenced by dxf_leader_free(), dxf_leader_get_annotation_reference_hard(), dxf_leader_init(), dxf_leader_read(), dxf_leader_set_annotation_reference_hard(), and dxf_leader_write().

Pointer to the next DxfLeader.
NULL in the last DxfLeader.

Definition at line 206 of file leader.h.

Referenced by dxf_leader_free(), dxf_leader_free_chain(), dxf_leader_get_last(), dxf_leader_get_next(), dxf_leader_init(), and dxf_leader_set_next().


The documentation for this struct was generated from the following file: