libDXF 0.0.1
A library with DXF related functions written in C.
|
DXF definition of an AutoCAD body entity (BODY
).
More...
#include <body.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 |
DxfProprietaryData * | proprietary_data |
DxfProprietaryData * | additional_proprietary_data |
int | modeler_format_version_number |
struct DxfBody * | 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 body.h.
Referenced by dxf_body_get_id_code(), dxf_body_read(), and dxf_body_set_id_code().
The linetype of the entity.
Defaults to BYLAYER
if omitted in the DXF file.
Group code = 6.
Definition at line 69 of file body.h.
Referenced by dxf_body_free(), dxf_body_get_linetype(), dxf_body_read(), and dxf_body_set_linetype().
char* dxf_body_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 body.h.
Referenced by dxf_body_free(), dxf_body_get_layer(), dxf_body_read(), and dxf_body_set_layer().
double dxf_body_struct::elevation |
Elevation of the body 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 body.h.
Referenced by dxf_body_get_elevation(), dxf_body_read(), and dxf_body_set_elevation().
double dxf_body_struct::thickness |
group code = 39
Thickness of the body in the local Z-direction.
Defaults to 0.0 if omitted in the DXF file. Linetype scale (optional).
Group code = 48.
Definition at line 82 of file body.h.
Referenced by dxf_body_get_thickness(), dxf_body_read(), and dxf_body_set_thickness().
Linetype scale (optional).
Group code = 48.
Definition at line 89 of file body.h.
Referenced by dxf_body_get_linetype_scale(), and dxf_body_set_linetype_scale().
int16_t dxf_body_struct::visibility |
Object visibility (optional):
Group code = 60.
Definition at line 93 of file body.h.
Referenced by dxf_body_get_visibility(), and dxf_body_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 101 of file body.h.
Referenced by dxf_body_get_color(), dxf_body_read(), and dxf_body_set_color().
Entities are to be drawn on either PAPERSPACE
or MODELSPACE
.
Optional, defaults to DXF_MODELSPACE
(0).
Group code = 67.
Definition at line 108 of file body.h.
Referenced by dxf_body_get_paperspace(), dxf_body_read(), and dxf_body_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 114 of file body.h.
Referenced by dxf_body_get_graphics_data_size(), and dxf_body_set_graphics_data_size().
int16_t dxf_body_struct::shadow_mode |
Shadow mode:
Group code = 284.
Definition at line 123 of file body.h.
Referenced by dxf_body_get_shadow_mode(), and dxf_body_set_shadow_mode().
Proxy entity graphics data.
Multiple lines of 256 characters maximum per line (optional).
Group code = 310.
Definition at line 133 of file body.h.
Referenced by dxf_body_get_binary_graphics_data(), dxf_body_init(), and dxf_body_set_binary_graphics_data().
Soft-pointer ID/handle to owner dictionary (optional).
Group code = 330.
Definition at line 139 of file body.h.
Referenced by dxf_body_free(), dxf_body_get_dictionary_owner_soft(), dxf_body_read(), and dxf_body_set_dictionary_owner_soft().
Hard-pointer ID/handle to material object (present if not BYLAYER).
Group code = 347.
Definition at line 143 of file body.h.
Referenced by dxf_body_get_material(), and dxf_body_set_material().
Hard owner ID/handle to owner dictionary (optional).
Group code = 360.
Definition at line 148 of file body.h.
Referenced by dxf_body_free(), dxf_body_get_dictionary_owner_hard(), dxf_body_read(), and dxf_body_set_dictionary_owner_hard().
int16_t dxf_body_struct::lineweight |
Lineweight enum value.
Stored and moved around as a 16-bit integer.
Group code = 370.
Definition at line 152 of file body.h.
Referenced by dxf_body_get_lineweight(), and dxf_body_set_lineweight().
Hard pointer ID / handle of PlotStyleName object.
Group code = 390.
Definition at line 157 of file body.h.
Referenced by dxf_body_get_plot_style_name(), and dxf_body_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 161 of file body.h.
Referenced by dxf_body_get_color_value(), and dxf_body_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 173 of file body.h.
Referenced by dxf_body_get_color_name(), and dxf_body_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 181 of file body.h.
Referenced by dxf_body_get_transparency(), and dxf_body_set_transparency().
group code = 1
Proprietary data (multiple lines < 255 characters each).
Definition at line 190 of file body.h.
Referenced by dxf_body_free(), dxf_body_get_proprietary_data(), dxf_body_init(), dxf_body_read(), and dxf_body_set_proprietary_data().
group code = 3
Additional lines of proprietary data if previous group 1 string is greater than 255 characters (optional).
Definition at line 194 of file body.h.
Referenced by dxf_body_free(), dxf_body_get_additional_proprietary_data(), dxf_body_init(), dxf_body_read(), and dxf_body_set_additional_proprietary_data().
group code = 70
Modeler format version number (currently = 1).
Definition at line 199 of file body.h.
Referenced by dxf_body_get_modeler_format_version_number(), dxf_body_read(), and dxf_body_set_modeler_format_version_number().
struct DxfBody* dxf_body_struct::next |
pointer to the next DxfBody.
NULL
in the last DxfBody.
Definition at line 201 of file body.h.
Referenced by dxf_body_free(), dxf_body_free_chain(), dxf_body_get_last(), dxf_body_get_next(), and dxf_body_set_next().