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

dxf_text Struct Reference

DXF definition of an AutoCAD text entity. More...

#include <text.h>

Collaboration diagram for dxf_text:
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 * text_value
char * text_style
double x0
double y0
double z0
double x1
double y1
double z1
double height
double rel_x_scale
double rot_angle
double obl_angle
int text_flags
int hor_align
int vert_align
double extr_x0
double extr_y0
double extr_z0
struct DxfTextnext

Detailed Description

DXF definition of an AutoCAD text entity.

DXFOUT handles ASCII control characters in text strings by expanding the character into a ^ (caret) followed by the appropriate letter.
For example, an ASCII Control-G (BEL, decimal code 7) is output as ^G.
If the text itself contains a caret character, it is expanded to ^ (caret, space).
DXFIN performs the complementary conversion.

Version:
According to DXF R10.
According to DXF R11.
According to DXF R12.
According to DXF R13.
According to DXF R14.

Definition at line 66 of file text.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 71 of file text.h.

Referenced by dxf_text_init(), dxf_text_read(), and dxf_text_write().

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

Definition at line 76 of file text.h.

Referenced by dxf_text_free(), dxf_text_init(), dxf_text_read(), and dxf_text_write().

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

Definition at line 80 of file text.h.

Referenced by dxf_text_free(), dxf_text_init(), dxf_text_read(), and dxf_text_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 84 of file text.h.

Referenced by dxf_text_init(), dxf_text_read(), and dxf_text_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 89 of file text.h.

Referenced by dxf_text_init(), dxf_text_read(), and dxf_text_write().

Linetype scale (optional).
Group code = 48.

Definition at line 93 of file text.h.

Referenced by dxf_text_init(), dxf_text_read(), and dxf_text_write().

Object visibility (optional):

  1. Visible
  2. Invisible

Group code = 60.

Definition at line 96 of file text.h.

Referenced by dxf_text_init(), dxf_text_read(), and dxf_text_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 103 of file text.h.

Referenced by dxf_text_init(), dxf_text_read(), and dxf_text_write().

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

Definition at line 110 of file text.h.

Referenced by dxf_text_init(), dxf_text_read(), and dxf_text_write().

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

Definition at line 115 of file text.h.

Referenced by dxf_text_free(), dxf_text_init(), dxf_text_read(), and dxf_text_write().

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

Definition at line 118 of file text.h.

Referenced by dxf_text_free(), dxf_text_init(), dxf_text_read(), and dxf_text_write().

Default value (the string itself).
Group code = 1.

Definition at line 122 of file text.h.

Referenced by dxf_text_free(), dxf_text_init(), dxf_text_read(), and dxf_text_write().

Optional, defaults to STANDARD.
Group code = 7.

Definition at line 125 of file text.h.

Referenced by dxf_text_free(), dxf_text_init(), dxf_text_read(), and dxf_text_write().

double dxf_text::x0

X-value first alignment point.
Group code = 10.

Definition at line 128 of file text.h.

Referenced by dxf_text_init(), dxf_text_read(), and dxf_text_write().

double dxf_text::y0

Y-value first alignment point.
Group code = 20.

Definition at line 131 of file text.h.

Referenced by dxf_text_init(), dxf_text_read(), and dxf_text_write().

double dxf_text::z0

Z-value first alignment point.
Group code = 30.

Definition at line 134 of file text.h.

Referenced by dxf_text_init(), dxf_text_read(), and dxf_text_write().

double dxf_text::x1

X-value second alignment point.
This value is meaningful only if the value of a 72 or 73 group is nonzero (if the justification is anything other than baseline/left).
Group code = 11.

Definition at line 137 of file text.h.

Referenced by dxf_text_init(), and dxf_text_write().

double dxf_text::y1

Y-value second alignment point.
This value is meaningful only if the value of a 72 or 73 group is nonzero (if the justification is anything other than baseline/left).
Group code = 21.

Definition at line 143 of file text.h.

Referenced by dxf_text_init(), and dxf_text_write().

double dxf_text::z1

Z-value second alignment point.
This value is meaningful only if the value of a 72 or 73 group is nonzero (if the justification is anything other than baseline/left).
Group code = 31.

Definition at line 149 of file text.h.

Referenced by dxf_text_init(), and dxf_text_write().

Text height.
Group code = 40.

Definition at line 155 of file text.h.

Referenced by dxf_text_init(), dxf_text_read(), and dxf_text_write().

Relative X scale factor-width (optional; default = 1.0).
This value is also adjusted when fit-type text is used.
Group code = 41.

Definition at line 158 of file text.h.

Referenced by dxf_text_init(), dxf_text_read(), and dxf_text_write().

Text rotation (optional; default = 0.0).
Group code = 50.

Definition at line 164 of file text.h.

Referenced by dxf_text_init(), dxf_text_read(), and dxf_text_write().

Oblique angle (optional; default = 0.0).
Group code = 51.

Definition at line 167 of file text.h.

Referenced by dxf_text_init(), dxf_text_read(), and dxf_text_write().

Text generation flags (optional, default = 0).
Bit coded:

  1. Text is backward (mirrored in X).
  2. Text is upside down (mirrored in Y).

Group code = 71.

Definition at line 170 of file text.h.

Referenced by dxf_text_init(), dxf_text_read(), and dxf_text_write().

Horizontal text justification type (optional, default = 0) integer codes (not bit-coded)

  1. left.
  2. center.
  3. right.
  4. aligned, only when vert_align = 0.
  5. middle, only when vert_align = 0.
  6. fit, only when vert_align = 0.

Group code = 72.

Definition at line 178 of file text.h.

Referenced by dxf_text_init(), dxf_text_read(), and dxf_text_write().

Vertical text justification type (optional, default = 0): integer codes (not bit-coded)

  1. baseline.
  2. bottom.
  3. middle.
  4. top.

Group code = 73.

Definition at line 190 of file text.h.

Referenced by dxf_text_init(), dxf_text_read(), and dxf_text_write().

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

Definition at line 200 of file text.h.

Referenced by dxf_text_init(), dxf_text_read(), and dxf_text_write().

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

Definition at line 204 of file text.h.

Referenced by dxf_text_init(), dxf_text_read(), and dxf_text_write().

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

Definition at line 208 of file text.h.

Referenced by dxf_text_init(), dxf_text_read(), and dxf_text_write().

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

Definition at line 211 of file text.h.

Referenced by dxf_text_free_chain(), and dxf_text_init().


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