libDXF 0.0.1
A library with DXF related functions written in C.
|
DXF definition of an AutoCAD attribute definition entity (ATTDEF
).
More...
#include <attdef.h>
Data Fields | |
int | id_code |
char * | linetype |
char * | layer |
double | elevation |
double | thickness |
double | linetype_scale |
int16_t | visibility |
int | color |
int | paperspace |
int | graphics_data_size |
int16_t | shadow_mode |
DxfBinaryGraphicsData * | binary_graphics_data |
char * | dictionary_owner_soft |
char * | material |
char * | dictionary_owner_hard |
int16_t | lineweight |
char * | plot_style_name |
long | color_value |
char * | color_name |
long | transparency |
char * | default_value |
char * | tag_value |
char * | prompt_value |
char * | text_style |
DxfPoint * | p0 |
DxfPoint * | p1 |
double | height |
double | rel_x_scale |
double | rot_angle |
double | obl_angle |
int | attr_flags |
int | text_flags |
int | hor_align |
int | field_length |
int | vert_align |
double | extr_x0 |
double | extr_y0 |
double | extr_z0 |
struct DxfAttdef * | next |
DXF definition of an AutoCAD attribute definition entity (ATTDEF
).
Identification number for the entity.
This is to be an unique (sequential) number in the DXF file.
Group code = 5.
Definition at line 65 of file attdef.h.
Referenced by dxf_attdef_get_id_code(), dxf_attdef_read(), and dxf_attdef_set_id_code().
The linetype of the entity.
Defaults to BYLAYER
if ommitted in the DXF file.
Group code = 6.
Definition at line 70 of file attdef.h.
Referenced by dxf_attdef_free(), dxf_attdef_get_linetype(), dxf_attdef_read(), and dxf_attdef_set_linetype().
char* dxf_attdef_struct::layer |
Layer on which the entity is drawn.
Defaults to layer "0" if no valid layername is given.
Group code = 8.
Definition at line 74 of file attdef.h.
Referenced by dxf_attdef_free(), dxf_attdef_get_layer(), dxf_attdef_read(), and dxf_attdef_set_layer().
double dxf_attdef_struct::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 78 of file attdef.h.
Referenced by dxf_attdef_get_elevation(), dxf_attdef_read(), and dxf_attdef_set_elevation().
double dxf_attdef_struct::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 83 of file attdef.h.
Referenced by dxf_attdef_get_thickness(), dxf_attdef_read(), and dxf_attdef_set_thickness().
Linetype scale (optional).
Group code = 48.
Definition at line 87 of file attdef.h.
Referenced by dxf_attdef_get_linetype_scale(), dxf_attdef_read(), and dxf_attdef_set_linetype_scale().
int16_t dxf_attdef_struct::visibility |
Object visibility (optional):
Group code = 60.
Definition at line 90 of file attdef.h.
Referenced by dxf_attdef_get_visibility(), dxf_attdef_read(), and dxf_attdef_set_visibility().
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 98 of file attdef.h.
Referenced by dxf_attdef_get_color(), dxf_attdef_read(), and dxf_attdef_set_color().
Entities are to be drawn on either PAPERSPACE
or MODELSPACE
.
Optional, defaults to DXF_MODELSPACE
(0).
Group code = 67.
Definition at line 105 of file attdef.h.
Referenced by dxf_attdef_get_paperspace(), dxf_attdef_read(), dxf_attdef_set_paperspace(), and dxf_attdef_write().
Number of bytes in the proxy entity graphics represented in the sub-sequent 310 groups, which are binary chunk records (optional).
Group code = 92.
Definition at line 111 of file attdef.h.
Referenced by dxf_attdef_get_graphics_data_size(), and dxf_attdef_set_graphics_data_size().
int16_t dxf_attdef_struct::shadow_mode |
Shadow mode:
Group code = 284.
Definition at line 120 of file attdef.h.
Referenced by dxf_attdef_get_shadow_mode(), and dxf_attdef_set_shadow_mode().
Proxy entity graphics data.
Multiple lines of 256 characters maximum per line (optional).
Group code = 310.
Definition at line 130 of file attdef.h.
Referenced by dxf_attdef_get_binary_graphics_data(), and dxf_attdef_set_binary_graphics_data().
Soft-pointer ID/handle to owner dictionary (optional).
Group code = 330.
Definition at line 136 of file attdef.h.
Referenced by dxf_attdef_free(), dxf_attdef_get_dictionary_owner_soft(), dxf_attdef_read(), and dxf_attdef_set_dictionary_owner_soft().
Hard-pointer ID/handle to material object (present if not BYLAYER).
Group code = 347.
Definition at line 140 of file attdef.h.
Referenced by dxf_attdef_get_material(), and dxf_attdef_set_material().
Hard owner ID/handle to owner dictionary (optional).
Group code = 360.
Definition at line 145 of file attdef.h.
Referenced by dxf_attdef_free(), dxf_attdef_get_dictionary_owner_hard(), dxf_attdef_read(), and dxf_attdef_set_dictionary_owner_hard().
int16_t dxf_attdef_struct::lineweight |
Lineweight enum value.
Stored and moved around as a 16-bit integer.
Group code = 370.
Definition at line 149 of file attdef.h.
Referenced by dxf_attdef_get_lineweight(), and dxf_attdef_set_lineweight().
Hard pointer ID / handle of PlotStyleName object.
Group code = 390.
Definition at line 154 of file attdef.h.
Referenced by dxf_attdef_get_plot_style_name(), and dxf_attdef_set_plot_style_name().
A 24-bit color value that should be dealt with in terms of bytes with values of 0 to 255.
The lowest byte is the blue value, the middle byte is the green value, and the third byte is the red value.
The top byte is always 0.
The group code cannot be used by custom entities for their own data because the group code is reserved for AcDbEntity, class-level color data and AcDbEntity, class-level transparency data.
Group code = 420.
Definition at line 158 of file attdef.h.
Referenced by dxf_attdef_get_color_value(), and dxf_attdef_set_color_value().
Color name.
The group code cannot be used by custom entities for their own data because the group code is reserved for AcDbEntity, class-level color data and AcDbEntity, class-level transparency data.
Group code = 430.
Definition at line 170 of file attdef.h.
Referenced by dxf_attdef_get_color_name(), and dxf_attdef_set_color_name().
Transparency value.
The group code cannot be used by custom entities for their own data because the group code is reserved for AcDbEntity, class-level color data and AcDbEntity, class-level transparency data.
Group code = 440.
Definition at line 178 of file attdef.h.
Referenced by dxf_attdef_get_transparency(), and dxf_attdef_set_transparency().
Default value for the attribute.
Group code = 1.
Definition at line 187 of file attdef.h.
Referenced by dxf_attdef_free(), dxf_attdef_get_default_value(), dxf_attdef_read(), and dxf_attdef_set_default_value().
Tagname for the attribute.
Group code = 2.
Definition at line 190 of file attdef.h.
Referenced by dxf_attdef_free(), dxf_attdef_get_tag_value(), dxf_attdef_read(), and dxf_attdef_set_tag_value().
Prompt text for the value to be stored in the attribute.
Group code = 3.
Definition at line 193 of file attdef.h.
Referenced by dxf_attdef_free(), dxf_attdef_get_prompt_value(), dxf_attdef_read(), and dxf_attdef_set_prompt_value().
The style used for the presentation of the value of the attribute.
Defaults to STANDARD
if omitted in the DXF file.
Group code = 7.
Definition at line 197 of file attdef.h.
Referenced by dxf_attdef_free(), dxf_attdef_get_text_style(), dxf_attdef_read(), and dxf_attdef_set_text_style().
First alignment point (in OCS).
Group codes = 10, 20 and 30.
Definition at line 202 of file attdef.h.
Referenced by dxf_attdef_get_p0(), dxf_attdef_get_x0(), dxf_attdef_get_y0(), dxf_attdef_get_z0(), dxf_attdef_read(), dxf_attdef_set_p0(), dxf_attdef_set_x0(), dxf_attdef_set_y0(), and dxf_attdef_set_z0().
Second alignment point (in OCS)(optional).
Meaningful only if 72 or 74 group values are nonzero.
Group codes = 11, 21 and 31.
Definition at line 205 of file attdef.h.
Referenced by dxf_attdef_get_p1(), dxf_attdef_get_x1(), dxf_attdef_get_y1(), dxf_attdef_get_z1(), dxf_attdef_read(), dxf_attdef_set_p1(), dxf_attdef_set_x1(), dxf_attdef_set_y1(), and dxf_attdef_set_z1().
double dxf_attdef_struct::height |
Character height of the attribute value.
Group code = 40.
Definition at line 209 of file attdef.h.
Referenced by dxf_attdef_get_height(), dxf_attdef_get_rel_x_scale(), dxf_attdef_read(), and dxf_attdef_set_height().
Relative scale in the X-direction.
Defaults to 1.0 if omitted from DXF file.
Group code = 41.
Definition at line 212 of file attdef.h.
Referenced by dxf_attdef_get_rel_x_scale(), dxf_attdef_read(), and dxf_attdef_set_rel_x_scale().
double dxf_attdef_struct::rot_angle |
Rotation angle of the attribute value.
Defaults to 0.0 if omitted from DXF file.
Group code = 50.
Definition at line 216 of file attdef.h.
Referenced by dxf_attdef_get_rot_angle(), dxf_attdef_read(), and dxf_attdef_set_rot_angle().
double dxf_attdef_struct::obl_angle |
Oblique angle of the attribute value.
Defaults to 0.0 if omitted from DXF file.
Group code = 51.
Definition at line 220 of file attdef.h.
Referenced by dxf_attdef_get_obl_angle(), dxf_attdef_read(), and dxf_attdef_set_obl_angle().
Attribute flags.
Bit coded:
Group code = 70.
Definition at line 224 of file attdef.h.
Referenced by dxf_attdef_get_attr_flags(), dxf_attdef_is_constant(), dxf_attdef_is_invisible(), dxf_attdef_is_preset(), dxf_attdef_is_verification_required(), dxf_attdef_read(), and dxf_attdef_set_attr_flags().
Text flags.
Bit coded:
Defaults to 0 if ommited from DXF file.
Group code = 71.
Definition at line 235 of file attdef.h.
Referenced by dxf_attdef_get_text_flags(), dxf_attdef_read(), and dxf_attdef_set_text_flags().
Horizontal text justification type (optional, default = 0).
See TEXT
.
Not bit coded:
Group code = 72.
Definition at line 244 of file attdef.h.
Referenced by dxf_attdef_get_hor_align(), dxf_attdef_read(), and dxf_attdef_set_hor_align().
Field length (optional; default = 0) (not currently used in DXF R14).
Group code = 73.
Definition at line 258 of file attdef.h.
Referenced by dxf_attdef_get_field_length(), dxf_attdef_read(), and dxf_attdef_set_field_length().
Vertical text justification type (optional, default = 0).
See group code 73 in TEXT
.
Not bit coded:
Group code = 74.
Definition at line 262 of file attdef.h.
Referenced by dxf_attdef_get_vert_align(), dxf_attdef_read(), and dxf_attdef_set_vert_align().
double dxf_attdef_struct::extr_x0 |
X-value of the extrusion vector.
Defaults to 0.0 if omitted in the DXF file.
Group code = 210.
Definition at line 275 of file attdef.h.
Referenced by dxf_attdef_get_extr_x0(), dxf_attdef_get_extrusion_vector_as_point(), dxf_attdef_read(), dxf_attdef_set_extr_x0(), dxf_attdef_set_extrusion_vector(), and dxf_attdef_set_extrusion_vector_from_point().
double dxf_attdef_struct::extr_y0 |
Y-value of the extrusion vector.
Defaults to 0.0 if omitted in the DXF file.
Group code = 220.
Definition at line 279 of file attdef.h.
Referenced by dxf_attdef_get_extr_y0(), dxf_attdef_get_extrusion_vector_as_point(), dxf_attdef_read(), dxf_attdef_set_extr_y0(), dxf_attdef_set_extrusion_vector(), and dxf_attdef_set_extrusion_vector_from_point().
double dxf_attdef_struct::extr_z0 |
Z-value of the extrusion vector.
Defaults to 1.0 if omitted in the DXF file.
Group code = 230.
Definition at line 283 of file attdef.h.
Referenced by dxf_attdef_get_extr_z0(), dxf_attdef_get_extrusion_vector_as_point(), dxf_attdef_read(), dxf_attdef_set_extr_z0(), dxf_attdef_set_extrusion_vector(), and dxf_attdef_set_extrusion_vector_from_point().
struct DxfAttdef* dxf_attdef_struct::next |
Pointer to the next DxfAttdef.
NULL
in the last DxfAttdef.
Definition at line 286 of file attdef.h.
Referenced by dxf_attdef_free(), dxf_attdef_free_chain(), dxf_attdef_get_last(), dxf_attdef_get_next(), and dxf_attdef_set_next().