libDXF 0.0.1
A library with DXF related functions written in C.
|
DXF definition of an AutoCAD solid entity. More...
#include <solid.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 |
DxfPoint * | p0 |
double | x0 |
double | y0 |
double | z0 |
DxfPoint * | p1 |
double | x1 |
double | y1 |
double | z1 |
DxfPoint * | p2 |
double | x2 |
double | y2 |
double | z2 |
DxfPoint * | p3 |
double | x3 |
double | y3 |
double | z3 |
double | extr_x0 |
double | extr_y0 |
double | extr_z0 |
struct DxfSolid * | next |
DXF definition of an AutoCAD solid entity.
If only three points are entered (forming a triangular SOLID
), the third and fourth points will coincide.
Identification number for the entity.
This is to be an unique (sequential) number in the DXF file.
Group code = 5.
Definition at line 74 of file solid.h.
Referenced by dxf_solid_get_id_code(), dxf_solid_init(), dxf_solid_read(), dxf_solid_set_id_code(), and dxf_solid_write().
The linetype of the entity.
Defaults to BYLAYER
if ommitted in the DXF file.
Group code = 6.
Definition at line 79 of file solid.h.
Referenced by dxf_solid_free(), dxf_solid_get_linetype(), dxf_solid_init(), dxf_solid_read(), dxf_solid_set_linetype(), and dxf_solid_write().
char* dxf_solid_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 83 of file solid.h.
Referenced by dxf_solid_free(), dxf_solid_get_layer(), dxf_solid_init(), dxf_solid_read(), dxf_solid_set_layer(), and dxf_solid_write().
double dxf_solid_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 87 of file solid.h.
Referenced by dxf_solid_get_elevation(), dxf_solid_init(), dxf_solid_read(), dxf_solid_set_elevation(), and dxf_solid_write().
double dxf_solid_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 93 of file solid.h.
Referenced by dxf_solid_get_thickness(), dxf_solid_init(), dxf_solid_read(), dxf_solid_set_thickness(), and dxf_solid_write().
Linetype scale (optional).
Group code = 48.
Definition at line 97 of file solid.h.
Referenced by dxf_solid_get_linetype_scale(), dxf_solid_init(), dxf_solid_read(), dxf_solid_set_linetype_scale(), and dxf_solid_write().
int16_t dxf_solid_struct::visibility |
Object visibility (optional):
Group code = 60.
Definition at line 101 of file solid.h.
Referenced by dxf_solid_get_visibility(), dxf_solid_init(), dxf_solid_read(), dxf_solid_set_visibility(), and dxf_solid_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 109 of file solid.h.
Referenced by dxf_solid_get_color(), dxf_solid_init(), dxf_solid_read(), dxf_solid_set_color(), and dxf_solid_write().
Entities are to be drawn on either PAPERSPACE
or MODELSPACE
.
Optional, defaults to DXF_MODELSPACE
(0).
Group code = 67.
Definition at line 116 of file solid.h.
Referenced by dxf_solid_get_paperspace(), dxf_solid_init(), dxf_solid_read(), dxf_solid_set_paperspace(), and dxf_solid_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 122 of file solid.h.
Referenced by dxf_solid_get_graphics_data_size(), dxf_solid_init(), dxf_solid_read(), dxf_solid_set_graphics_data_size(), and dxf_solid_write().
int16_t dxf_solid_struct::shadow_mode |
Shadow mode:
Group code = 284.
Definition at line 131 of file solid.h.
Referenced by dxf_solid_get_shadow_mode(), dxf_solid_init(), dxf_solid_read(), dxf_solid_set_shadow_mode(), and dxf_solid_write().
Proxy entity graphics data.
Multiple lines of 256 characters maximum per line (optional).
Group code = 310.
Definition at line 141 of file solid.h.
Referenced by dxf_solid_get_binary_graphics_data(), dxf_solid_init(), dxf_solid_read(), dxf_solid_set_binary_graphics_data(), and dxf_solid_write().
Soft-pointer ID/handle to owner dictionary (optional).
Group code = 330.
Definition at line 147 of file solid.h.
Referenced by dxf_solid_free(), dxf_solid_get_dictionary_owner_soft(), dxf_solid_init(), dxf_solid_read(), dxf_solid_set_dictionary_owner_soft(), and dxf_solid_write().
Hard-pointer ID/handle to material object (present if not BYLAYER).
Group code = 347.
Definition at line 151 of file solid.h.
Referenced by dxf_solid_get_material(), dxf_solid_init(), dxf_solid_read(), dxf_solid_set_material(), and dxf_solid_write().
Hard owner ID/handle to owner dictionary (optional).
Group code = 360.
Definition at line 156 of file solid.h.
Referenced by dxf_solid_free(), dxf_solid_get_dictionary_owner_hard(), dxf_solid_init(), dxf_solid_read(), dxf_solid_set_dictionary_owner_hard(), and dxf_solid_write().
int16_t dxf_solid_struct::lineweight |
Lineweight enum value.
Stored and moved around as a 16-bit integer.
Group code = 370.
Definition at line 160 of file solid.h.
Referenced by dxf_solid_get_lineweight(), dxf_solid_init(), dxf_solid_read(), dxf_solid_set_lineweight(), and dxf_solid_write().
Hard pointer ID / handle of PlotStyleName object.
Group code = 390.
Definition at line 165 of file solid.h.
Referenced by dxf_solid_get_plot_style_name(), dxf_solid_init(), dxf_solid_read(), dxf_solid_set_plot_style_name(), and dxf_solid_write().
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 169 of file solid.h.
Referenced by dxf_solid_get_color_value(), dxf_solid_init(), dxf_solid_read(), dxf_solid_set_color_value(), and dxf_solid_write().
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 181 of file solid.h.
Referenced by dxf_solid_get_color_name(), dxf_solid_init(), dxf_solid_read(), dxf_solid_set_color_name(), and dxf_solid_write().
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 189 of file solid.h.
Referenced by dxf_solid_get_transparency(), dxf_solid_init(), dxf_solid_read(), dxf_solid_set_transparency(), and dxf_solid_write().
Base point.
Group codes = 10, 20 and 30.
Definition at line 198 of file solid.h.
Referenced by dxf_solid_get_p0(), dxf_solid_get_x0(), dxf_solid_get_y0(), dxf_solid_get_z0(), dxf_solid_init(), dxf_solid_read(), dxf_solid_set_p0(), dxf_solid_set_x0(), dxf_solid_set_y0(), dxf_solid_set_z0(), and dxf_solid_write().
double dxf_solid_struct::x0 |
group code = 10
base point.
Definition at line 201 of file solid.h.
Referenced by dxf_solid_set_x0().
double dxf_solid_struct::y0 |
group code = 20
base point.
Definition at line 204 of file solid.h.
Referenced by dxf_solid_set_y0().
double dxf_solid_struct::z0 |
group code = 30
base point.
Definition at line 207 of file solid.h.
Referenced by dxf_solid_set_z0().
Alignment point.
Group codes = 11, 21 and 31.
Definition at line 210 of file solid.h.
Referenced by dxf_solid_get_p1(), dxf_solid_get_x1(), dxf_solid_get_y1(), dxf_solid_get_z1(), dxf_solid_init(), dxf_solid_read(), dxf_solid_set_p1(), dxf_solid_set_x1(), dxf_solid_set_y1(), dxf_solid_set_z1(), and dxf_solid_write().
double dxf_solid_struct::x1 |
group code = 11
alignment point.
Definition at line 213 of file solid.h.
Referenced by dxf_solid_set_x1().
double dxf_solid_struct::y1 |
group code = 21
alignment point.
Definition at line 216 of file solid.h.
Referenced by dxf_solid_set_y1().
double dxf_solid_struct::z1 |
group code = 31
alignment point.
Definition at line 219 of file solid.h.
Referenced by dxf_solid_set_z1().
Alignment point.
Group codes = 12, 22 and 32.
Definition at line 222 of file solid.h.
Referenced by dxf_solid_get_p2(), dxf_solid_get_x2(), dxf_solid_get_y2(), dxf_solid_get_z2(), dxf_solid_init(), dxf_solid_read(), dxf_solid_set_p2(), dxf_solid_set_x2(), dxf_solid_set_y2(), dxf_solid_set_z2(), and dxf_solid_write().
double dxf_solid_struct::x2 |
group code = 12
alignment point.
Definition at line 225 of file solid.h.
Referenced by dxf_solid_set_x2().
double dxf_solid_struct::y2 |
group code = 22
alignment point.
Definition at line 228 of file solid.h.
Referenced by dxf_solid_set_y2().
double dxf_solid_struct::z2 |
group code = 32
alignment point.
Definition at line 231 of file solid.h.
Referenced by dxf_solid_set_z2().
Alignment point.
Group codes = 13, 23 and 33.
Definition at line 234 of file solid.h.
Referenced by dxf_solid_get_p3(), dxf_solid_get_x3(), dxf_solid_get_y3(), dxf_solid_get_z3(), dxf_solid_init(), dxf_solid_read(), dxf_solid_set_p3(), dxf_solid_set_x3(), dxf_solid_set_y3(), dxf_solid_set_z3(), and dxf_solid_write().
double dxf_solid_struct::x3 |
group code = 13
alignment point.
Definition at line 237 of file solid.h.
Referenced by dxf_solid_set_x3().
double dxf_solid_struct::y3 |
group code = 23
alignment point.
Definition at line 240 of file solid.h.
Referenced by dxf_solid_set_y3().
double dxf_solid_struct::z3 |
group code = 33
alignment point.
Definition at line 243 of file solid.h.
Referenced by dxf_solid_set_z3().
double dxf_solid_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 246 of file solid.h.
Referenced by dxf_solid_get_extr_x0(), dxf_solid_get_extrusion_vector_as_point(), dxf_solid_init(), dxf_solid_read(), dxf_solid_set_extr_x0(), dxf_solid_set_extrusion_vector(), dxf_solid_set_extrusion_vector_from_point(), and dxf_solid_write().
double dxf_solid_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 250 of file solid.h.
Referenced by dxf_solid_get_extr_y0(), dxf_solid_get_extrusion_vector_as_point(), dxf_solid_init(), dxf_solid_read(), dxf_solid_set_extr_y0(), dxf_solid_set_extrusion_vector(), dxf_solid_set_extrusion_vector_from_point(), and dxf_solid_write().
double dxf_solid_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 254 of file solid.h.
Referenced by dxf_solid_get_extr_z0(), dxf_solid_get_extrusion_vector_as_point(), dxf_solid_init(), dxf_solid_read(), dxf_solid_set_extr_z0(), dxf_solid_set_extrusion_vector(), dxf_solid_set_extrusion_vector_from_point(), and dxf_solid_write().
struct DxfSolid* dxf_solid_struct::next |
pointer to the next DxfSolid.
NULL
in the last DxfSolid.
Definition at line 257 of file solid.h.
Referenced by dxf_solid_free(), dxf_solid_free_chain(), dxf_solid_get_last(), dxf_solid_get_next(), dxf_solid_init(), and dxf_solid_set_next().