libDXF 0.0.1
A library with DXF related functions written in C.
|
DXF definition of an AutoCAD block or external reference insert entity. More...
#include <insert.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 * | block_name |
DxfPoint * | p0 |
double | rel_x_scale |
double | rel_y_scale |
double | rel_z_scale |
double | column_spacing |
double | row_spacing |
double | rot_angle |
int | attributes_follow |
int | columns |
int | rows |
double | extr_x0 |
double | extr_y0 |
double | extr_z0 |
struct DxfInsert * | next |
DXF definition of an AutoCAD block or external reference insert entity.
Identification number for the entity.
This is to be an unique (sequential) number in the DXF file.
Group code = 5.
Definition at line 70 of file insert.h.
Referenced by dxf_insert_get_id_code(), dxf_insert_read(), and dxf_insert_set_id_code().
The linetype of the entity.
Defaults to BYLAYER
if ommitted in the DXF file.
Group code = 6.
Definition at line 75 of file insert.h.
Referenced by dxf_insert_get_linetype(), dxf_insert_read(), and dxf_insert_set_linetype().
char* dxf_insert_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 79 of file insert.h.
Referenced by dxf_insert_get_layer(), dxf_insert_read(), dxf_insert_set_layer(), and dxf_layer_new().
double dxf_insert_struct::elevation |
Elevation of the entity 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 83 of file insert.h.
Referenced by dxf_insert_get_elevation(), dxf_insert_read(), and dxf_insert_set_elevation().
double dxf_insert_struct::thickness |
Thickness of the entity in the local Z-direction.
Defaults to 0.0 if ommitted in the DXF file.
Group code = 39.
Definition at line 89 of file insert.h.
Referenced by dxf_insert_get_thickness(), dxf_insert_read(), and dxf_insert_set_thickness().
Linetype scale (optional).
Group code = 48.
Definition at line 93 of file insert.h.
Referenced by dxf_insert_get_linetype_scale(), dxf_insert_read(), and dxf_insert_set_linetype_scale().
int16_t dxf_insert_struct::visibility |
Object visibility (optional):
Group code = 60.
Definition at line 97 of file insert.h.
Referenced by dxf_insert_get_visibility(), dxf_insert_read(), and dxf_insert_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 105 of file insert.h.
Referenced by dxf_insert_get_color(), dxf_insert_read(), and dxf_insert_set_color().
Entities are to be drawn on either PAPERSPACE
or MODELSPACE
.
Optional, defaults to DXF_MODELSPACE
(0).
Group code = 67.
Definition at line 112 of file insert.h.
Referenced by dxf_insert_get_paperspace(), dxf_insert_read(), and dxf_insert_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 118 of file insert.h.
Referenced by dxf_insert_get_graphics_data_size(), and dxf_insert_set_graphics_data_size().
int16_t dxf_insert_struct::shadow_mode |
Shadow mode:
Group code = 284.
Definition at line 127 of file insert.h.
Referenced by dxf_insert_get_shadow_mode(), and dxf_insert_set_shadow_mode().
Proxy entity graphics data.
Multiple lines of 256 characters maximum per line (optional).
Group code = 310.
Definition at line 137 of file insert.h.
Referenced by dxf_insert_get_binary_graphics_data(), and dxf_insert_set_binary_graphics_data().
Soft-pointer ID/handle to owner dictionary (optional).
Group code = 330.
Definition at line 143 of file insert.h.
Referenced by dxf_insert_get_dictionary_owner_soft(), dxf_insert_read(), and dxf_insert_set_dictionary_owner_soft().
Hard-pointer ID/handle to material object (present if not BYLAYER).
Group code = 347.
Definition at line 147 of file insert.h.
Referenced by dxf_insert_get_material(), and dxf_insert_set_material().
Hard owner ID/handle to owner dictionary (optional).
Group code = 360.
Definition at line 152 of file insert.h.
Referenced by dxf_insert_get_dictionary_owner_hard(), dxf_insert_read(), and dxf_insert_set_dictionary_owner_hard().
int16_t dxf_insert_struct::lineweight |
Lineweight enum value.
Stored and moved around as a 16-bit integer.
Group code = 370.
Definition at line 156 of file insert.h.
Referenced by dxf_insert_get_lineweight(), and dxf_insert_set_lineweight().
Hard pointer ID / handle of PlotStyleName object.
Group code = 390.
Definition at line 161 of file insert.h.
Referenced by dxf_insert_get_plot_style_name(), and dxf_insert_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 165 of file insert.h.
Referenced by dxf_insert_get_color_value(), and dxf_insert_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 177 of file insert.h.
Referenced by dxf_insert_get_color_name(), and dxf_insert_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 185 of file insert.h.
Referenced by dxf_insert_get_transparency(), and dxf_insert_set_transparency().
group code = 2.
Definition at line 194 of file insert.h.
Referenced by dxf_insert_get_block_name(), dxf_insert_read(), and dxf_insert_set_block_name().
Base point.
Group codes = 10, 20 and 30.
Definition at line 196 of file insert.h.
Referenced by dxf_insert_get_p0(), dxf_insert_get_x0(), dxf_insert_get_y0(), dxf_insert_get_z0(), dxf_insert_read(), dxf_insert_set_p0(), dxf_insert_set_x0(), dxf_insert_set_y0(), and dxf_insert_set_z0().
Relative scale along the X-axis.
Optional, defaults to 1.0.
Group code = 41.
Definition at line 199 of file insert.h.
Referenced by dxf_insert_get_rel_x_scale(), dxf_insert_read(), and dxf_insert_set_rel_x_scale().
Relative scale along the Y-axis.
Optional, defaults to 1.0.
Group code = 42.
Definition at line 203 of file insert.h.
Referenced by dxf_insert_get_rel_y_scale(), dxf_insert_read(), and dxf_insert_set_rel_y_scale().
Relative scale along the Z-axis.
Optional, defaults to 1.0.
Group code = 43.
Definition at line 207 of file insert.h.
Referenced by dxf_insert_get_rel_z_scale(), dxf_insert_read(), and dxf_insert_set_rel_z_scale().
Column spacing.
Optional, defaults to 0.0.
Group code = 44.
Definition at line 211 of file insert.h.
Referenced by dxf_insert_get_column_spacing(), dxf_insert_read(), and dxf_insert_set_column_spacing().
Row spacing.
Optional, defaults to 0.0.
Group code = 45.
Definition at line 215 of file insert.h.
Referenced by dxf_insert_get_row_spacing(), dxf_insert_read(), and dxf_insert_set_row_spacing().
double dxf_insert_struct::rot_angle |
Rotation angle.
Optional, defaults to 0.0.
Group code = 50.
Definition at line 219 of file insert.h.
Referenced by dxf_insert_get_rot_angle(), dxf_insert_read(), and dxf_insert_set_rot_angle().
Attributes follow flag.
Optional, defaults to 0
If the value of the "Attributes follow" flag is 1, a series of Attribute (Attrib) entities is expected to follow the Insert, terminated by a sequence end (Seqend) entity.
Group code = 66.
Definition at line 223 of file insert.h.
Referenced by dxf_insert_get_attributes_follow(), dxf_insert_read(), and dxf_insert_set_attributes_follow().
Number of columns.
Optional, defaults to 1.
Group code = 70.
Definition at line 231 of file insert.h.
Referenced by dxf_insert_get_columns(), dxf_insert_read(), and dxf_insert_set_columns().
Number of rows.
Optional, defaults to 1.
Group code = 71.
Definition at line 235 of file insert.h.
Referenced by dxf_insert_get_rows(), dxf_insert_read(), and dxf_insert_set_rows().
double dxf_insert_struct::extr_x0 |
X-value of the extrusion vector.
Defaults to 0.0 if ommitted in the DXF file.
Group code = 210.
Definition at line 239 of file insert.h.
Referenced by dxf_insert_get_extr_x0(), dxf_insert_read(), dxf_insert_set_extr_x0(), dxf_insert_set_extrusion_vector(), and dxf_insert_set_extrusion_vector_from_point().
double dxf_insert_struct::extr_y0 |
Y-value of the extrusion vector.
Defaults to 0.0 if ommitted in the DXF file.
Group code = 220.
Definition at line 243 of file insert.h.
Referenced by dxf_insert_get_extr_y0(), dxf_insert_read(), dxf_insert_set_extr_y0(), dxf_insert_set_extrusion_vector(), and dxf_insert_set_extrusion_vector_from_point().
double dxf_insert_struct::extr_z0 |
Z-value of the extrusion vector.
Defaults to 1.0 if ommitted in the DXF file.
Group code = 230.
Definition at line 247 of file insert.h.
Referenced by dxf_insert_get_extr_z0(), dxf_insert_read(), dxf_insert_set_extr_z0(), dxf_insert_set_extrusion_vector(), and dxf_insert_set_extrusion_vector_from_point().
struct DxfInsert* dxf_insert_struct::next |
pointer to the next DxfInsert.
NULL
in the last DxfInsert.
Definition at line 250 of file insert.h.
Referenced by dxf_insert_free(), dxf_insert_free_chain(), dxf_insert_get_last(), dxf_insert_get_next(), and dxf_insert_set_next().