libDXF 0.0.1
A library with DXF related functions written in C.
|
Definition of an AutoCAD ellipse entity (ELLIPSE
).
More...
#include <ellipse.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 |
double | x0 |
double | y0 |
double | z0 |
double | x1 |
double | y1 |
double | z1 |
double | ratio |
double | start_angle |
double | end_angle |
double | extr_x0 |
double | extr_y0 |
double | extr_z0 |
struct DxfEllipse * | next |
Definition of an AutoCAD ellipse entity (ELLIPSE
).
This entity requires AutoCAD version R14 or higher.
Identification number for the entity.
This is to be an unique (sequential) number in the DXF file.
Group code = 5.
Definition at line 66 of file ellipse.h.
Referenced by dxf_ellipse_get_id_code(), dxf_ellipse_read(), dxf_ellipse_set_id_code(), dxf_ellipse_write(), and dxf_endblk_set_id_code().
The linetype of the entity.
Defaults to BYLAYER
if ommitted in the DXF file.
Group code = 6.
Definition at line 71 of file ellipse.h.
Referenced by dxf_ellipse_free(), dxf_ellipse_get_linetype(), dxf_ellipse_read(), dxf_ellipse_set_linetype(), and dxf_ellipse_write().
Layer on which the entity is drawn.
Defaults to layer "0" if no valid layername is given.
Group code = 8.
Definition at line 75 of file ellipse.h.
Referenced by dxf_ellipse_free(), dxf_ellipse_get_layer(), dxf_ellipse_read(), dxf_ellipse_set_layer(), and dxf_ellipse_write().
Elevation of the arc 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 79 of file ellipse.h.
Referenced by dxf_ellipse_get_elevation(), dxf_ellipse_read(), dxf_ellipse_set_elevation(), and dxf_ellipse_write().
Thickness of the arc in the local Z-direction.
Defaults to 0.0 if ommitted in the DXF file.
Group code = 39.
Definition at line 85 of file ellipse.h.
Referenced by dxf_ellipse_get_thickness(), dxf_ellipse_read(), dxf_ellipse_set_thickness(), and dxf_ellipse_write().
Linetype scale (optional).
Group code = 48.
Definition at line 89 of file ellipse.h.
Referenced by dxf_ellipse_get_linetype_scale(), dxf_ellipse_read(), dxf_ellipse_set_linetype_scale(), and dxf_ellipse_write().
int16_t dxf_ellipse_struct::visibility |
Object visibility (optional):
Group code = 60.
Definition at line 93 of file ellipse.h.
Referenced by dxf_ellipse_get_visibility(), dxf_ellipse_read(), dxf_ellipse_set_visibility(), and dxf_ellipse_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 101 of file ellipse.h.
Referenced by dxf_ellipse_get_color(), dxf_ellipse_read(), dxf_ellipse_set_color(), and dxf_ellipse_write().
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 ellipse.h.
Referenced by dxf_ellipse_get_paperspace(), dxf_ellipse_read(), dxf_ellipse_set_paperspace(), and dxf_ellipse_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 114 of file ellipse.h.
Referenced by dxf_ellipse_get_graphics_data_size(), and dxf_ellipse_set_graphics_data_size().
int16_t dxf_ellipse_struct::shadow_mode |
Shadow mode:
Group code = 284.
Definition at line 123 of file ellipse.h.
Referenced by dxf_ellipse_get_shadow_mode(), and dxf_ellipse_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 ellipse.h.
Referenced by dxf_ellipse_get_binary_graphics_data(), and dxf_ellipse_set_binary_graphics_data().
Soft-pointer ID/handle to owner dictionary (optional).
Group code = 330.
Definition at line 139 of file ellipse.h.
Referenced by dxf_ellipse_free(), dxf_ellipse_get_dictionary_owner_soft(), dxf_ellipse_read(), dxf_ellipse_set_dictionary_owner_soft(), and dxf_ellipse_write().
Hard-pointer ID/handle to material object (present if not BYLAYER).
Group code = 347.
Definition at line 143 of file ellipse.h.
Referenced by dxf_ellipse_get_material(), and dxf_ellipse_set_material().
Hard owner ID/handle to owner dictionary (optional).
Group code = 360.
Definition at line 148 of file ellipse.h.
Referenced by dxf_ellipse_free(), dxf_ellipse_get_dictionary_owner_hard(), dxf_ellipse_read(), dxf_ellipse_set_dictionary_owner_hard(), and dxf_ellipse_write().
int16_t dxf_ellipse_struct::lineweight |
Lineweight enum value.
Stored and moved around as a 16-bit integer.
Group code = 370.
Definition at line 152 of file ellipse.h.
Referenced by dxf_ellipse_get_lineweight(), and dxf_ellipse_set_lineweight().
Hard pointer ID / handle of PlotStyleName object.
Group code = 390.
Definition at line 157 of file ellipse.h.
Referenced by dxf_ellipse_get_plot_style_name(), and dxf_ellipse_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 ellipse.h.
Referenced by dxf_ellipse_get_color_value(), and dxf_ellipse_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 ellipse.h.
Referenced by dxf_ellipse_get_color_name(), and dxf_ellipse_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 ellipse.h.
Referenced by dxf_ellipse_get_transparency(), and dxf_ellipse_set_transparency().
Center point.
Group codes = 10, 20 and 30.
Definition at line 190 of file ellipse.h.
Referenced by dxf_ellipse_get_p0(), dxf_ellipse_get_x0(), dxf_ellipse_get_y0(), dxf_ellipse_get_z0(), dxf_ellipse_set_p0(), dxf_ellipse_set_x0(), dxf_ellipse_set_y0(), and dxf_ellipse_set_z0().
Endpoint of major axis, relative to the center (in WCS).
Group codes = 11, 21 and 31.
Definition at line 193 of file ellipse.h.
Referenced by dxf_ellipse_get_p1(), dxf_ellipse_get_x1(), dxf_ellipse_get_y1(), dxf_ellipse_get_z1(), dxf_ellipse_set_p1(), dxf_ellipse_set_x1(), dxf_ellipse_set_y1(), and dxf_ellipse_set_z1().
double dxf_ellipse_struct::x0 |
X value of the center point.
Group code = 10.
Definition at line 197 of file ellipse.h.
Referenced by dxf_ellipse_read(), dxf_ellipse_set_x0(), and dxf_ellipse_write().
double dxf_ellipse_struct::y0 |
Y value of the center point.
Group code = 20.
Definition at line 200 of file ellipse.h.
Referenced by dxf_ellipse_read(), dxf_ellipse_set_y0(), and dxf_ellipse_write().
double dxf_ellipse_struct::z0 |
Z value of the center point.
Group code = 30.
Definition at line 203 of file ellipse.h.
Referenced by dxf_ellipse_read(), dxf_ellipse_set_z0(), and dxf_ellipse_write().
double dxf_ellipse_struct::x1 |
X value of the endpoint of major axis, relative to the center (in WCS).
Group code = 11.
Definition at line 206 of file ellipse.h.
Referenced by dxf_ellipse_read(), dxf_ellipse_set_x1(), and dxf_ellipse_write().
double dxf_ellipse_struct::y1 |
Y value of the endpoint of major axis, relative to the center (in WCS).
Group code = 21.
Definition at line 210 of file ellipse.h.
Referenced by dxf_ellipse_read(), dxf_ellipse_set_y1(), and dxf_ellipse_write().
double dxf_ellipse_struct::z1 |
Z value of the endpoint of major axis, relative to the center (in WCS).
Group code = 31.
Definition at line 214 of file ellipse.h.
Referenced by dxf_ellipse_read(), dxf_ellipse_set_z1(), and dxf_ellipse_write().
double dxf_ellipse_struct::ratio |
Ratio of minor axis to major axis.
Group code = 40.
Definition at line 218 of file ellipse.h.
Referenced by dxf_ellipse_get_ratio(), dxf_ellipse_read(), dxf_ellipse_set_ratio(), and dxf_ellipse_write().
Group code = 41.
Definition at line 221 of file ellipse.h.
Referenced by dxf_ellipse_get_start_angle(), dxf_ellipse_read(), dxf_ellipse_set_start_angle(), and dxf_ellipse_write().
Group code = 42.
Definition at line 223 of file ellipse.h.
Referenced by dxf_ellipse_get_end_angle(), dxf_ellipse_read(), dxf_ellipse_set_end_angle(), and dxf_ellipse_write().
double dxf_ellipse_struct::extr_x0 |
X value of the extrusion direction.
Optional, if ommited defaults to 0.0.
Group code = 210.
Definition at line 225 of file ellipse.h.
Referenced by dxf_ellipse_get_extr_x0(), dxf_ellipse_get_extrusion_vector_as_point(), dxf_ellipse_read(), dxf_ellipse_set_extr_x0(), dxf_ellipse_set_extrusion_vector(), dxf_ellipse_set_extrusion_vector_from_point(), and dxf_ellipse_write().
double dxf_ellipse_struct::extr_y0 |
Y value of the extrusion direction.
Optional, if ommited defaults to 0.0.
Group code = 220.
Definition at line 229 of file ellipse.h.
Referenced by dxf_ellipse_get_extr_y0(), dxf_ellipse_get_extrusion_vector_as_point(), dxf_ellipse_read(), dxf_ellipse_set_extr_y0(), dxf_ellipse_set_extrusion_vector(), dxf_ellipse_set_extrusion_vector_from_point(), and dxf_ellipse_write().
double dxf_ellipse_struct::extr_z0 |
Z value of the extrusion direction.
Optional, if ommited defaults to 1.0.
Group code = 230.
Definition at line 233 of file ellipse.h.
Referenced by dxf_ellipse_get_extr_z0(), dxf_ellipse_get_extrusion_vector_as_point(), dxf_ellipse_read(), dxf_ellipse_set_extr_z0(), dxf_ellipse_set_extrusion_vector(), dxf_ellipse_set_extrusion_vector_from_point(), and dxf_ellipse_write().
struct DxfEllipse* dxf_ellipse_struct::next |
pointer to the next DxfEllipse.
NULL
in the last DxfEllipse.
Definition at line 236 of file ellipse.h.
Referenced by dxf_ellipse_free(), dxf_ellipse_free_chain(), dxf_ellipse_get_last(), dxf_ellipse_get_next(), and dxf_ellipse_set_next().