libDXF 0.0.1
A library with DXF related functions written in C.
Data Fields

dxf_shape_struct Struct Reference

DXF definition of an AutoCAD shape entity. More...

#include <shape.h>

Collaboration diagram for dxf_shape_struct:
Collaboration graph
[legend]

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
DxfBinaryGraphicsDatabinary_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
char * shape_name
DxfPointp0
double x0
double y0
double z0
double size
double rel_x_scale
double rot_angle
double obl_angle
double extr_x0
double extr_y0
double extr_z0
struct DxfShapenext

Detailed Description

DXF definition of an AutoCAD shape entity.

Definition at line 59 of file shape.h.


Field Documentation

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 shape.h.

Referenced by dxf_shape_get_id_code(), dxf_shape_init(), dxf_shape_read(), dxf_shape_set_id_code(), and dxf_shape_write().

The linetype of the entity.
Defaults to BYLAYER if ommitted in the DXF file.
Group code = 6.

Definition at line 69 of file shape.h.

Referenced by dxf_shape_free(), dxf_shape_get_linetype(), dxf_shape_init(), dxf_shape_read(), dxf_shape_set_linetype(), and dxf_shape_write().

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 shape.h.

Referenced by dxf_shape_free(), dxf_shape_get_layer(), dxf_shape_init(), dxf_shape_read(), dxf_shape_set_layer(), and dxf_shape_write().

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.

Deprecated:
As of version R11.

Definition at line 77 of file shape.h.

Referenced by dxf_shape_get_elevation(), dxf_shape_init(), dxf_shape_read(), dxf_shape_set_elevation(), and dxf_shape_write().

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 shape.h.

Referenced by dxf_shape_get_thickness(), dxf_shape_init(), dxf_shape_read(), dxf_shape_set_thickness(), and dxf_shape_write().

Linetype scale (optional).
Group code = 48.

Since:
Introduced in version R13.

Definition at line 87 of file shape.h.

Referenced by dxf_shape_get_linetype_scale(), dxf_shape_init(), dxf_shape_read(), dxf_shape_set_linetype_scale(), and dxf_shape_write().

Object visibility (optional):

  1. Visible
  2. Invisible

Group code = 60.

Since:
Introduced in version R13.

Definition at line 91 of file shape.h.

Referenced by dxf_shape_get_visibility(), dxf_shape_init(), dxf_shape_read(), dxf_shape_set_visibility(), and dxf_shape_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 99 of file shape.h.

Referenced by dxf_shape_get_color(), dxf_shape_init(), dxf_shape_read(), dxf_shape_set_color(), and dxf_shape_write().

Entities are to be drawn on either PAPERSPACE or MODELSPACE.
Optional, defaults to DXF_MODELSPACE (0).
Group code = 67.

Since:
Introduced in version R13.

Definition at line 106 of file shape.h.

Referenced by dxf_shape_get_paperspace(), dxf_shape_init(), dxf_shape_read(), dxf_shape_set_paperspace(), and dxf_shape_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.

Since:
Introduced in version R2000.
Warning:
On some 64 bit workstations output is generated with group code "160", thus omitting group code "92".

Definition at line 112 of file shape.h.

Referenced by dxf_shape_get_graphics_data_size(), dxf_shape_init(), dxf_shape_read(), dxf_shape_set_graphics_data_size(), and dxf_shape_write().

Shadow mode:

  1. Casts and receives shadows.
  2. Casts shadows.
  3. Receives shadows.
  4. Ignores shadows.


Group code = 284.

Since:
Introduced in version R2009.

Definition at line 121 of file shape.h.

Referenced by dxf_shape_get_shadow_mode(), dxf_shape_init(), dxf_shape_read(), dxf_shape_set_shadow_mode(), and dxf_shape_write().

Proxy entity graphics data.
Multiple lines of 256 characters maximum per line (optional).
Group code = 310.

Since:
Introduced in version R2000.

Definition at line 131 of file shape.h.

Referenced by dxf_shape_free(), dxf_shape_get_binary_graphics_data(), dxf_shape_init(), dxf_shape_read(), dxf_shape_set_binary_graphics_data(), and dxf_shape_write().

Soft-pointer ID/handle to owner dictionary (optional).
Group code = 330.

Since:
Introduced in version R14.

Definition at line 137 of file shape.h.

Referenced by dxf_shape_free(), dxf_shape_get_dictionary_owner_soft(), dxf_shape_init(), dxf_shape_read(), dxf_shape_set_dictionary_owner_soft(), and dxf_shape_write().

Hard-pointer ID/handle to material object (present if not BYLAYER).
Group code = 347.

Since:
Introduced in version R2008.

Definition at line 141 of file shape.h.

Referenced by dxf_shape_free(), dxf_shape_get_material(), dxf_shape_init(), dxf_shape_read(), dxf_shape_set_material(), and dxf_shape_write().

Hard owner ID/handle to owner dictionary (optional).
Group code = 360.

Since:
Introduced in version R14.

Definition at line 146 of file shape.h.

Referenced by dxf_shape_free(), dxf_shape_get_dictionary_owner_hard(), dxf_shape_init(), dxf_shape_read(), dxf_shape_set_dictionary_owner_hard(), and dxf_shape_write().

Lineweight enum value.
Stored and moved around as a 16-bit integer.
Group code = 370.

Since:
Introduced in version R2002.

Definition at line 150 of file shape.h.

Referenced by dxf_shape_get_lineweight(), dxf_shape_init(), dxf_shape_read(), dxf_shape_set_lineweight(), and dxf_shape_write().

Hard pointer ID / handle of PlotStyleName object.
Group code = 390.

Since:
Introduced in version R2009.

Definition at line 155 of file shape.h.

Referenced by dxf_shape_free(), dxf_shape_get_plot_style_name(), dxf_shape_init(), dxf_shape_read(), dxf_shape_set_plot_style_name(), and dxf_shape_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.

Since:
Introduced in version R2004.

Definition at line 159 of file shape.h.

Referenced by dxf_shape_get_color_value(), dxf_shape_init(), dxf_shape_read(), dxf_shape_set_color_value(), and dxf_shape_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.

Since:
Introduced in version R2004.

Definition at line 171 of file shape.h.

Referenced by dxf_shape_free(), dxf_shape_get_color_name(), dxf_shape_init(), dxf_shape_read(), dxf_shape_set_color_name(), and dxf_shape_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.

Since:
Introduced in version R2004.

Definition at line 179 of file shape.h.

Referenced by dxf_shape_get_transparency(), dxf_shape_init(), dxf_shape_read(), dxf_shape_set_transparency(), and dxf_shape_write().

Shape name.
Group code = 2.

Definition at line 188 of file shape.h.

Referenced by dxf_shape_free(), dxf_shape_init(), dxf_shape_read(), and dxf_shape_write().

X-value of the insertion point (in WCS).
Group code = 10.

Definition at line 194 of file shape.h.

Referenced by dxf_shape_set_x0(), and dxf_shape_write().

Y-value of the insertion point (in WCS).
Group code = 20.

Definition at line 197 of file shape.h.

Referenced by dxf_shape_set_y0(), and dxf_shape_write().

Z-value of the insertion point (in WCS).
Group code = 30.

Definition at line 200 of file shape.h.

Referenced by dxf_shape_set_z0(), and dxf_shape_write().

Size.
Group code = 40.

Definition at line 203 of file shape.h.

Referenced by dxf_shape_get_size(), dxf_shape_init(), dxf_shape_read(), dxf_shape_set_size(), dxf_shape_write(), and dxf_solid_new().

Relative X scale factor (optional; default =1.0).
Group code = 41.

Definition at line 206 of file shape.h.

Referenced by dxf_shape_get_rel_x_scale(), dxf_shape_init(), dxf_shape_read(), dxf_shape_set_rel_x_scale(), and dxf_shape_write().

Rotation angle (optional; default = 0.0).
Group code = 50.

Definition at line 209 of file shape.h.

Referenced by dxf_shape_get_rot_angle(), dxf_shape_init(), dxf_shape_read(), dxf_shape_set_rot_angle(), and dxf_shape_write().

Oblique angle (optional; default =0.0).
Group code = 51.

Definition at line 212 of file shape.h.

Referenced by dxf_shape_get_obl_angle(), dxf_shape_init(), dxf_shape_read(), dxf_shape_set_obl_angle(), and dxf_shape_write().

X-value of the extrusion vector.
Defaults to 0.0 if ommitted in the DXF file.
Group code = 210.

Definition at line 215 of file shape.h.

Referenced by dxf_shape_get_extr_x0(), dxf_shape_init(), dxf_shape_read(), dxf_shape_set_extr_x0(), and dxf_shape_write().

Y-value of the extrusion vector.
Defaults to 0.0 if ommitted in the DXF file.
Group code = 220.

Definition at line 219 of file shape.h.

Referenced by dxf_shape_get_extr_y0(), dxf_shape_init(), dxf_shape_read(), dxf_shape_set_extr_y0(), and dxf_shape_write().

Z-value of the extrusion vector.
Defaults to 1.0 if ommitted in the DXF file.
Group code = 230.

Definition at line 223 of file shape.h.

Referenced by dxf_shape_get_extr_z0(), dxf_shape_init(), dxf_shape_read(), dxf_shape_set_extr_z0(), and dxf_shape_write().

Pointer to the next DxfShape.
NULL in the last DxfShape.

Definition at line 226 of file shape.h.

Referenced by dxf_shape_free(), dxf_shape_free_chain(), dxf_shape_get_last(), dxf_shape_get_next(), dxf_shape_init(), and dxf_shape_set_next().


The documentation for this struct was generated from the following file: