libDXF 0.0.1
A library with DXF related functions written in C.
|
DXF definition of an AutoCAD text entity. More...
#include <text.h>
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 DxfText * | next |
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.
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().
char* dxf_text::linetype |
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().
char* dxf_text::layer |
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().
double dxf_text::elevation |
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().
double dxf_text::thickness |
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().
double dxf_text::linetype_scale |
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().
int16_t dxf_text::visibility |
Object visibility (optional):
Group code = 60.
Definition at line 96 of file text.h.
Referenced by dxf_text_init(), dxf_text_read(), and dxf_text_write().
int dxf_text::color |
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().
char* dxf_text::text_value |
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().
char* dxf_text::text_style |
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().
double dxf_text::height |
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().
double dxf_text::rel_x_scale |
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().
double dxf_text::rot_angle |
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().
double dxf_text::obl_angle |
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:
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)
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)
Group code = 73.
Definition at line 190 of file text.h.
Referenced by dxf_text_init(), dxf_text_read(), and dxf_text_write().
double dxf_text::extr_x0 |
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().
double dxf_text::extr_y0 |
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().
double dxf_text::extr_z0 |
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().
struct DxfText* dxf_text::next |
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().