libDXF 0.0.1
A library with DXF related functions written in C.
|
Definition of a DXF light weight polyline entity. More...
#include <lwpolyline.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 |
double | constant_width |
int | flag |
int | number_vertices |
double | extr_x0 |
double | extr_y0 |
double | extr_z0 |
struct DxfVertex * | vertices |
struct DxfLWPolyline * | next |
Definition of a DXF light weight polyline entity.
Definition at line 56 of file lwpolyline.h.
Identification number for the entity.
This is to be an unique (sequential) number in the DXF file.
Group code = 5.
Definition at line 61 of file lwpolyline.h.
Referenced by dxf_lwpolyline_get_id_code(), dxf_lwpolyline_init(), dxf_lwpolyline_read(), dxf_lwpolyline_set_id_code(), and dxf_lwpolyline_write().
The linetype of the entity.
Defaults to BYLAYER
if ommitted in the DXF file.
Group code = 6.
Definition at line 66 of file lwpolyline.h.
Referenced by dxf_lwpolyline_free(), dxf_lwpolyline_get_linetype(), dxf_lwpolyline_init(), dxf_lwpolyline_read(), dxf_lwpolyline_set_linetype(), and dxf_lwpolyline_write().
Layer on which the entity is drawn.
Defaults to layer "0" if no valid layername is given.
Group code = 8.
Definition at line 70 of file lwpolyline.h.
Referenced by dxf_lwpolyline_free(), dxf_lwpolyline_get_layer(), dxf_lwpolyline_init(), dxf_lwpolyline_read(), dxf_lwpolyline_set_layer(), and dxf_lwpolyline_write().
Elevation of the lwpolyline 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 74 of file lwpolyline.h.
Referenced by dxf_lwpolyline_get_elevation(), dxf_lwpolyline_init(), dxf_lwpolyline_read(), dxf_lwpolyline_set_elevation(), and dxf_lwpolyline_write().
Thickness of the lwpolyline in the local Z-direction.
Defaults to 0.0 if ommitted in the DXF file.
Group code = 39.
Definition at line 80 of file lwpolyline.h.
Referenced by dxf_lwpolyline_get_thickness(), dxf_lwpolyline_init(), dxf_lwpolyline_read(), dxf_lwpolyline_set_thickness(), and dxf_lwpolyline_write().
Linetype scale (optional).
Group code = 48.
Definition at line 84 of file lwpolyline.h.
Referenced by dxf_lwpolyline_get_linetype_scale(), dxf_lwpolyline_init(), dxf_lwpolyline_read(), dxf_lwpolyline_set_linetype_scale(), and dxf_lwpolyline_write().
Object visibility (optional):
Group code = 60.
Definition at line 88 of file lwpolyline.h.
Referenced by dxf_lwpolyline_get_visibility(), dxf_lwpolyline_init(), dxf_lwpolyline_read(), dxf_lwpolyline_set_visibility(), and dxf_lwpolyline_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 96 of file lwpolyline.h.
Referenced by dxf_lwpolyline_get_color(), dxf_lwpolyline_init(), dxf_lwpolyline_read(), dxf_lwpolyline_set_color(), and dxf_lwpolyline_write().
Entities are to be drawn on either PAPERSPACE
or MODELSPACE
.
Optional, defaults to DXF_MODELSPACE
(0).
Group code = 67.
Definition at line 103 of file lwpolyline.h.
Referenced by dxf_lwpolyline_get_paperspace(), dxf_lwpolyline_init(), dxf_lwpolyline_read(), dxf_lwpolyline_set_paperspace(), and dxf_lwpolyline_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 109 of file lwpolyline.h.
Referenced by dxf_lwpolyline_get_graphics_data_size(), and dxf_lwpolyline_set_graphics_data_size().
Shadow mode:
Group code = 284.
Definition at line 118 of file lwpolyline.h.
Referenced by dxf_lwpolyline_get_shadow_mode(), and dxf_lwpolyline_set_shadow_mode().
Proxy entity graphics data.
Multiple lines of 256 characters maximum per line (optional).
Group code = 310.
Definition at line 128 of file lwpolyline.h.
Referenced by dxf_lwpolyline_get_binary_graphics_data(), and dxf_lwpolyline_set_binary_graphics_data().
Soft-pointer ID/handle to owner dictionary (optional).
Group code = 330.
Definition at line 134 of file lwpolyline.h.
Referenced by dxf_lwpolyline_get_dictionary_owner_soft(), dxf_lwpolyline_init(), dxf_lwpolyline_read(), dxf_lwpolyline_set_dictionary_owner_soft(), and dxf_lwpolyline_write().
Hard-pointer ID/handle to material object (present if not BYLAYER).
Group code = 347.
Definition at line 138 of file lwpolyline.h.
Referenced by dxf_lwpolyline_get_material(), and dxf_lwpolyline_set_material().
Hard owner ID/handle to owner dictionary (optional).
Group code = 360.
Definition at line 143 of file lwpolyline.h.
Referenced by dxf_lwpolyline_get_dictionary_owner_hard(), dxf_lwpolyline_init(), dxf_lwpolyline_read(), dxf_lwpolyline_set_dictionary_owner_hard(), and dxf_lwpolyline_write().
Lineweight enum value.
Stored and moved around as a 16-bit integer.
Group code = 370.
Definition at line 147 of file lwpolyline.h.
Referenced by dxf_lwpolyline_get_lineweight(), and dxf_lwpolyline_set_lineweight().
Hard pointer ID / handle of PlotStyleName object.
Group code = 390.
Definition at line 152 of file lwpolyline.h.
Referenced by dxf_lwpolyline_get_plot_style_name(), and dxf_lwpolyline_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 156 of file lwpolyline.h.
Referenced by dxf_lwpolyline_get_color_value(), and dxf_lwpolyline_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 168 of file lwpolyline.h.
Referenced by dxf_lwpolyline_get_color_name(), and dxf_lwpolyline_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 176 of file lwpolyline.h.
Referenced by dxf_lwpolyline_get_transparency(), and dxf_lwpolyline_set_transparency().
Not used if variable width (codes 40 and/or 41) is set the default widths apply to any vertex that doesn't supply widths.
Optional, defaults to 0.0.
Group code = 43.
Definition at line 185 of file lwpolyline.h.
Referenced by dxf_lwpolyline_get_constant_width(), dxf_lwpolyline_init(), dxf_lwpolyline_read(), dxf_lwpolyline_set_constant_width(), and dxf_lwpolyline_write().
Polyline flag.
Bit coded:
Optional, defaults to 0.
Group code = 70.
Definition at line 191 of file lwpolyline.h.
Referenced by dxf_lwpolyline_get_flag(), dxf_lwpolyline_init(), dxf_lwpolyline_read(), dxf_lwpolyline_set_flag(), and dxf_lwpolyline_write().
Number of vertices.
Group code = 90.
Definition at line 200 of file lwpolyline.h.
Referenced by dxf_lwpolyline_get_number_vertices(), dxf_lwpolyline_init(), dxf_lwpolyline_read(), dxf_lwpolyline_set_number_vertices(), and dxf_lwpolyline_write().
Extrusion direction (optional; default = 0, 0, 1)
DXF: X value;
APP: 3D vector
Defaults to 0.0 if ommitted in the DXF file.
Group code = 210.
Definition at line 203 of file lwpolyline.h.
Referenced by dxf_lwpolyline_get_extr_x0(), dxf_lwpolyline_init(), dxf_lwpolyline_read(), dxf_lwpolyline_set_extr_x0(), and dxf_lwpolyline_write().
DXF: Y value of extrusion direction (optional).
Group code = 220.
Definition at line 209 of file lwpolyline.h.
Referenced by dxf_lwpolyline_get_extr_y0(), dxf_lwpolyline_init(), dxf_lwpolyline_read(), dxf_lwpolyline_set_extr_y0(), and dxf_lwpolyline_write().
DXF: Z value of extrusion direction (optional).
Group code = 230.
Definition at line 212 of file lwpolyline.h.
Referenced by dxf_lwpolyline_get_extr_z0(), dxf_lwpolyline_init(), dxf_lwpolyline_read(), dxf_lwpolyline_set_extr_z0(), and dxf_lwpolyline_write().
Pointer to the first DxfVertex of the lwpolyline.
NULL
in the last DxfVertex.
Definition at line 214 of file lwpolyline.h.
Referenced by dxf_lwpolyline_get_vertices(), dxf_lwpolyline_init(), dxf_lwpolyline_read(), dxf_lwpolyline_set_vertices(), and dxf_lwpolyline_write().
Pointer to the next DxfLWPolyline.
NULL
in the last DxfLWPolyline.
Definition at line 219 of file lwpolyline.h.
Referenced by dxf_lwpolyline_free(), dxf_lwpolyline_free_chain(), dxf_lwpolyline_get_last(), dxf_lwpolyline_get_next(), dxf_lwpolyline_init(), and dxf_lwpolyline_set_next().