libDXF 0.0.1
A library with DXF related functions written in C.
|
DXF definition of an AutoCAD attribute entity (ATTRIB
).
More...
#include <attrib.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 * | 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 DxfAttrib * | next |
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 attrib.h.
Referenced by dxf_attrib_get_id_code(), dxf_attrib_read(), and dxf_attrib_set_id_code().
The linetype of the entity.
Defaults to BYLAYER
if ommitted in the DXF file.
Group code = 6.
Definition at line 69 of file attrib.h.
Referenced by dxf_attrib_free(), dxf_attrib_get_linetype(), dxf_attrib_read(), and dxf_attrib_set_linetype().
char* dxf_attrib_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 73 of file attrib.h.
Referenced by dxf_attrib_free(), dxf_attrib_get_layer(), dxf_attrib_read(), and dxf_attrib_set_layer().
double dxf_attrib_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 77 of file attrib.h.
Referenced by dxf_attrib_get_elevation(), dxf_attrib_read(), and dxf_attrib_set_elevation().
double dxf_attrib_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 attrib.h.
Referenced by dxf_attrib_get_thickness(), dxf_attrib_read(), and dxf_attrib_set_thickness().
Linetype scale (optional).
Group code = 48.
Definition at line 87 of file attrib.h.
Referenced by dxf_attrib_get_linetype_scale(), dxf_attrib_read(), and dxf_attrib_set_linetype_scale().
int16_t dxf_attrib_struct::visibility |
Object visibility (optional):
Group code = 60.
Definition at line 90 of file attrib.h.
Referenced by dxf_attrib_get_visibility(), dxf_attrib_read(), and dxf_attrib_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 attrib.h.
Referenced by dxf_attrib_get_color(), dxf_attrib_read(), and dxf_attrib_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 attrib.h.
Referenced by dxf_attrib_get_paperspace(), dxf_attrib_read(), and dxf_attrib_set_paperspace().
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 attrib.h.
Referenced by dxf_attrib_get_graphics_data_size(), and dxf_attrib_set_graphics_data_size().
int16_t dxf_attrib_struct::shadow_mode |
Shadow mode:
Group code = 284.
Definition at line 120 of file attrib.h.
Referenced by dxf_attrib_get_shadow_mode(), and dxf_attrib_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 attrib.h.
Referenced by dxf_attrib_free(), dxf_attrib_get_binary_graphics_data(), and dxf_attrib_set_binary_graphics_data().
Soft-pointer ID/handle to owner dictionary (optional).
Group code = 330.
Definition at line 136 of file attrib.h.
Referenced by dxf_attrib_free(), dxf_attrib_get_dictionary_owner_soft(), dxf_attrib_read(), and dxf_attrib_set_dictionary_owner_soft().
Hard-pointer ID/handle to material object (present if not BYLAYER).
Group code = 347.
Definition at line 140 of file attrib.h.
Referenced by dxf_attrib_free(), dxf_attrib_get_material(), and dxf_attrib_set_material().
Hard owner ID/handle to owner dictionary (optional).
Group code = 360.
Definition at line 145 of file attrib.h.
Referenced by dxf_attrib_free(), dxf_attrib_get_dictionary_owner_hard(), dxf_attrib_read(), and dxf_attrib_set_dictionary_owner_hard().
int16_t dxf_attrib_struct::lineweight |
Lineweight enum value.
Stored and moved around as a 16-bit integer.
Group code = 370.
Definition at line 149 of file attrib.h.
Referenced by dxf_attrib_get_lineweight(), and dxf_attrib_set_lineweight().
Hard pointer ID / handle of PlotStyleName object.
Group code = 390.
Definition at line 154 of file attrib.h.
Referenced by dxf_attrib_free(), dxf_attrib_get_plot_style_name(), and dxf_attrib_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 attrib.h.
Referenced by dxf_attrib_get_color_value(), and dxf_attrib_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 attrib.h.
Referenced by dxf_attrib_free(), dxf_attrib_get_color_name(), and dxf_attrib_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 attrib.h.
Referenced by dxf_attrib_get_transparency(), and dxf_attrib_set_transparency().
Default value (string).
Group code = 1.
Definition at line 187 of file attrib.h.
Referenced by dxf_attrib_free(), dxf_attrib_get_default_value(), dxf_attrib_read(), and dxf_attrib_set_default_value().
Attribute tag (string).
Group code = 2.
Definition at line 190 of file attrib.h.
Referenced by dxf_attrib_free(), dxf_attrib_get_tag_value(), dxf_attrib_read(), and dxf_attrib_set_tag_value().
Text style name (optional, default = STANDARD).
Group code = 7.
Definition at line 193 of file attrib.h.
Referenced by dxf_attrib_free(), dxf_attrib_get_text_style(), dxf_attrib_read(), and dxf_attrib_set_text_style().
Text start point (in OCS).
Group codes = 10, 20 and 30.
Definition at line 196 of file attrib.h.
Referenced by dxf_attrib_free(), dxf_attrib_get_p0(), dxf_attrib_get_x0(), dxf_attrib_get_y0(), dxf_attrib_get_z0(), dxf_attrib_read(), dxf_attrib_set_p0(), dxf_attrib_set_x0(), dxf_attrib_set_y0(), and dxf_attrib_set_z0().
Alignment point (in OCS).
Only present if a 72 or 74 group is present and nonzero.
Group codes = 11, 21 and 31.
Definition at line 199 of file attrib.h.
Referenced by dxf_attrib_free(), dxf_attrib_get_p1(), dxf_attrib_get_x1(), dxf_attrib_get_y1(), dxf_attrib_get_z1(), dxf_attrib_read(), dxf_attrib_set_p1(), dxf_attrib_set_x1(), dxf_attrib_set_y1(), and dxf_attrib_set_z1().
double dxf_attrib_struct::height |
Text height.
Group code = 40.
Definition at line 204 of file attrib.h.
Referenced by dxf_attrib_get_height(), dxf_attrib_get_rel_x_scale(), dxf_attrib_read(), and dxf_attrib_set_height().
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 207 of file attrib.h.
Referenced by dxf_attrib_get_rel_x_scale(), dxf_attrib_read(), and dxf_attrib_set_rel_x_scale().
double dxf_attrib_struct::rot_angle |
Text rotation (optional; default = 0.0).
Group code = 50.
Definition at line 213 of file attrib.h.
Referenced by dxf_attrib_get_rot_angle(), dxf_attrib_read(), and dxf_attrib_set_rot_angle().
double dxf_attrib_struct::obl_angle |
Oblique angle (optional; default = 0.0).
Group code = 51.
Definition at line 216 of file attrib.h.
Referenced by dxf_attrib_get_obl_angle(), dxf_attrib_read(), and dxf_attrib_set_obl_angle().
Attribute flags.
Bit coded:
Group code = 70.
Definition at line 219 of file attrib.h.
Referenced by dxf_attrib_get_attr_flags(), dxf_attrib_is_constant(), dxf_attrib_is_invisible(), dxf_attrib_is_preset(), dxf_attrib_is_verification_required(), dxf_attrib_read(), and dxf_attrib_set_attr_flags().
Text generation flags (optional, default = 0).
See TEXT
.
Optional, defaults to 0
Bit coded:
Group code = 71.
Definition at line 232 of file attrib.h.
Referenced by dxf_attrib_get_text_flags(), dxf_attrib_read(), and dxf_attrib_set_text_flags().
Horizontal text justification type (optional, default = 0).
See TEXT
.
Not bit coded:
Group code = 72.
Definition at line 242 of file attrib.h.
Referenced by dxf_attrib_get_hor_align(), dxf_attrib_read(), and dxf_attrib_set_hor_align().
Field length (optional; default = 0) (not currently used in DXF R14).
Group code = 73.
Definition at line 256 of file attrib.h.
Referenced by dxf_attrib_get_field_length(), dxf_attrib_read(), and dxf_attrib_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 260 of file attrib.h.
Referenced by dxf_attrib_get_vert_align(), dxf_attrib_read(), and dxf_attrib_set_vert_align().
double dxf_attrib_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 273 of file attrib.h.
Referenced by dxf_attrib_get_extr_x0(), dxf_attrib_get_extrusion_vector_as_point(), dxf_attrib_read(), dxf_attrib_set_extr_x0(), dxf_attrib_set_extrusion_vector(), and dxf_attrib_set_extrusion_vector_from_point().
double dxf_attrib_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 277 of file attrib.h.
Referenced by dxf_attrib_get_extr_y0(), dxf_attrib_get_extrusion_vector_as_point(), dxf_attrib_read(), dxf_attrib_set_extr_y0(), dxf_attrib_set_extrusion_vector(), and dxf_attrib_set_extrusion_vector_from_point().
double dxf_attrib_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 281 of file attrib.h.
Referenced by dxf_attrib_get_extr_z0(), dxf_attrib_get_extrusion_vector_as_point(), dxf_attrib_read(), dxf_attrib_set_extr_z0(), dxf_attrib_set_extrusion_vector(), and dxf_attrib_set_extrusion_vector_from_point().
struct DxfAttrib* dxf_attrib_struct::next |
Pointer to the next DxfAttrib.
NULL
in the last DxfAttrib.
Definition at line 284 of file attrib.h.
Referenced by dxf_attrib_free(), dxf_attrib_free_chain(), dxf_attrib_get_last(), dxf_attrib_get_next(), and dxf_attrib_set_next().