libDXF 0.0.1
A library with DXF related functions written in C.
|
DXF definition of an AutoCAD 3D face entity (3DFACE
).
More...
#include <3dface.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 |
DxfPoint * | p1 |
DxfPoint * | p2 |
DxfPoint * | p3 |
int | flag |
struct Dxf3dface * | 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 3dface.h.
Referenced by dxf_3dface_get_id_code(), dxf_3dface_read(), and dxf_3dface_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 3dface.h.
Referenced by dxf_3dface_get_linetype(), dxf_3dface_read(), and dxf_3dface_set_linetype().
char* dxf_3dface_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 3dface.h.
Referenced by dxf_3dface_get_layer(), dxf_3dface_read(), and dxf_3dface_set_layer().
double dxf_3dface_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 77 of file 3dface.h.
Referenced by dxf_3dface_get_elevation(), dxf_3dface_read(), and dxf_3dface_set_elevation().
double dxf_3dface_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 83 of file 3dface.h.
Referenced by dxf_3dface_get_thickness(), dxf_3dface_read(), and dxf_3dface_set_thickness().
Linetype scale (optional).
Group code = 48.
Definition at line 87 of file 3dface.h.
Referenced by dxf_3dface_get_linetype_scale(), dxf_3dface_read(), and dxf_3dface_set_linetype_scale().
int16_t dxf_3dface_struct::visibility |
Object visibility (optional):
Group code = 60.
Definition at line 91 of file 3dface.h.
Referenced by dxf_3dface_get_visibility(), dxf_3dface_read(), and dxf_3dface_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 99 of file 3dface.h.
Referenced by dxf_3dface_get_color(), dxf_3dface_read(), and dxf_3dface_set_color().
Entities are to be drawn on either PAPERSPACE
or MODELSPACE
.
Optional, defaults to DXF_MODELSPACE
(0).
Group code = 67.
Definition at line 106 of file 3dface.h.
Referenced by dxf_3dface_get_paperspace(), dxf_3dface_read(), and dxf_3dface_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 112 of file 3dface.h.
Referenced by dxf_3dface_get_graphics_data_size(), dxf_3dface_read(), and dxf_3dface_set_graphics_data_size().
int16_t dxf_3dface_struct::shadow_mode |
Shadow mode:
Group code = 284.
Definition at line 121 of file 3dface.h.
Referenced by dxf_3dface_get_shadow_mode(), dxf_3dface_read(), and dxf_3dface_set_shadow_mode().
Proxy entity graphics data.
Multiple lines of 256 characters maximum per line (optional).
Group code = 310.
Definition at line 131 of file 3dface.h.
Referenced by dxf_3dface_get_binary_graphics_data(), dxf_3dface_read(), and dxf_3dface_set_binary_graphics_data().
Soft-pointer ID/handle to owner dictionary (optional).
Group code = 330.
Definition at line 137 of file 3dface.h.
Referenced by dxf_3dface_get_dictionary_owner_soft(), dxf_3dface_read(), and dxf_3dface_set_dictionary_owner_soft().
Hard-pointer ID/handle to material object (present if not BYLAYER).
Group code = 347.
Definition at line 141 of file 3dface.h.
Referenced by dxf_3dface_get_material(), dxf_3dface_read(), and dxf_3dface_set_material().
Hard owner ID/handle to owner dictionary (optional).
Group code = 360.
Definition at line 146 of file 3dface.h.
Referenced by dxf_3dface_get_dictionary_owner_hard(), dxf_3dface_read(), and dxf_3dface_set_dictionary_owner_hard().
int16_t dxf_3dface_struct::lineweight |
Lineweight enum value.
Stored and moved around as a 16-bit integer.
Group code = 370.
Definition at line 150 of file 3dface.h.
Referenced by dxf_3dface_get_lineweight(), dxf_3dface_read(), and dxf_3dface_set_lineweight().
Hard pointer ID / handle of PlotStyleName object.
Group code = 390.
Definition at line 155 of file 3dface.h.
Referenced by dxf_3dface_get_plot_style_name(), dxf_3dface_read(), and dxf_3dface_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 159 of file 3dface.h.
Referenced by dxf_3dface_get_color_value(), dxf_3dface_read(), and dxf_3dface_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 171 of file 3dface.h.
Referenced by dxf_3dface_get_color_name(), dxf_3dface_read(), and dxf_3dface_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 179 of file 3dface.h.
Referenced by dxf_3dface_get_transparency(), dxf_3dface_read(), and dxf_3dface_set_transparency().
Base point.
Group codes = 10, 20 and 30.
Definition at line 188 of file 3dface.h.
Referenced by dxf_3dface_get_p0(), dxf_3dface_get_x0(), dxf_3dface_get_y0(), dxf_3dface_get_z0(), dxf_3dface_read(), dxf_3dface_set_p0(), dxf_3dface_set_x0(), dxf_3dface_set_y0(), and dxf_3dface_set_z0().
First alignment point.
Group codes = 11, 21 and 31.
Definition at line 191 of file 3dface.h.
Referenced by dxf_3dface_get_p1(), dxf_3dface_get_x1(), dxf_3dface_get_y1(), dxf_3dface_get_z1(), dxf_3dface_read(), dxf_3dface_set_p1(), dxf_3dface_set_x1(), dxf_3dface_set_y1(), and dxf_3dface_set_z1().
Second alignment point.
Group codes = 12, 22 and 32.
Definition at line 194 of file 3dface.h.
Referenced by dxf_3dface_get_p2(), dxf_3dface_get_x2(), dxf_3dface_get_y2(), dxf_3dface_get_z2(), dxf_3dface_read(), dxf_3dface_set_p2(), dxf_3dface_set_x2(), dxf_3dface_set_y2(), and dxf_3dface_set_z2().
Third alignment point.
Group codes = 13, 23 and 33.
Definition at line 197 of file 3dface.h.
Referenced by dxf_3dface_get_p3(), dxf_3dface_get_x3(), dxf_3dface_get_y3(), dxf_3dface_get_z3(), dxf_3dface_read(), dxf_3dface_set_p3(), dxf_3dface_set_x3(), dxf_3dface_set_y3(), and dxf_3dface_set_z3().
Optional, defaults to 0.
Bit coded:
Group code = 70.
Definition at line 200 of file 3dface.h.
Referenced by dxf_3dface_get_flag(), dxf_3dface_is_first_edge_invisible(), dxf_3dface_is_fourth_edge_invisible(), dxf_3dface_is_second_edge_invisible(), dxf_3dface_is_third_edge_invisible(), dxf_3dface_read(), and dxf_3dface_set_flag().
struct Dxf3dface* dxf_3dface_struct::next |
Pointer to the next Dxf3dface.
NULL
in the last Dxf3dface.
Definition at line 209 of file 3dface.h.
Referenced by dxf_3dface_free(), dxf_3dface_free_chain(), dxf_3dface_get_last(), dxf_3dface_get_next(), and dxf_3dface_set_next().