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

dxf_spline_struct Struct Reference

Definition of an AutoCAD spline entity (SPLINE). More...

#include <spline.h>

Collaboration diagram for dxf_spline_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
DxfPointp0
DxfPointp1
DxfPointp2
DxfPointp3
DxfDoubleknot_value
DxfDoubleweight_value
double knot_tolerance
double control_point_tolerance
double fit_tolerance
int flag
int degree
int number_of_knots
int number_of_control_points
int number_of_fit_points
double extr_x0
double extr_y0
double extr_z0
struct DxfSplinenext

Detailed Description

Definition of an AutoCAD spline entity (SPLINE).

Definition at line 65 of file spline.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 70 of file spline.h.

Referenced by dxf_spline_get_id_code(), dxf_spline_init(), dxf_spline_read(), dxf_spline_set_id_code(), and dxf_spline_write().

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

Definition at line 75 of file spline.h.

Referenced by dxf_spline_free(), dxf_spline_get_linetype(), dxf_spline_init(), dxf_spline_read(), dxf_spline_set_linetype(), and dxf_spline_write().

Layer on which the entity is drawn.
Defaults to layer "0" if no valid layername is given.
Group code = 8.

Definition at line 79 of file spline.h.

Referenced by dxf_spline_free(), dxf_spline_get_layer(), dxf_spline_init(), dxf_spline_read(), dxf_spline_set_layer(), and dxf_spline_write().

Elevation of the spline 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 83 of file spline.h.

Referenced by dxf_spline_get_elevation(), dxf_spline_init(), dxf_spline_read(), dxf_spline_set_elevation(), and dxf_spline_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 88 of file spline.h.

Referenced by dxf_spline_get_thickness(), dxf_spline_init(), dxf_spline_read(), dxf_spline_set_thickness(), and dxf_spline_write().

Linetype scale (optional).
Group code = 48.

Definition at line 92 of file spline.h.

Referenced by dxf_spline_get_linetype_scale(), dxf_spline_init(), dxf_spline_read(), dxf_spline_set_linetype_scale(), and dxf_spline_write().

Object visibility (optional):

  1. Visible
  2. Invisible

Group code = 60.

Definition at line 95 of file spline.h.

Referenced by dxf_spline_get_visibility(), dxf_spline_init(), dxf_spline_read(), dxf_spline_set_visibility(), and dxf_spline_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 102 of file spline.h.

Referenced by dxf_spline_get_color(), dxf_spline_init(), dxf_spline_read(), dxf_spline_set_color(), and dxf_spline_write().

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

Definition at line 109 of file spline.h.

Referenced by dxf_spline_get_paperspace(), dxf_spline_init(), dxf_spline_read(), dxf_spline_set_paperspace(), and dxf_spline_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 spline.h.

Referenced by dxf_spline_get_graphics_data_size(), dxf_spline_init(), dxf_spline_read(), dxf_spline_set_graphics_data_size(), and dxf_spline_write().

Shadow mode:

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


Group code = 284.

Definition at line 119 of file spline.h.

Referenced by dxf_spline_get_shadow_mode(), dxf_spline_init(), dxf_spline_read(), dxf_spline_set_shadow_mode(), and dxf_spline_write().

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

Definition at line 128 of file spline.h.

Referenced by dxf_spline_free(), dxf_spline_get_binary_graphics_data(), dxf_spline_init(), dxf_spline_read(), dxf_spline_set_binary_graphics_data(), and dxf_spline_write().

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

Definition at line 133 of file spline.h.

Referenced by dxf_spline_free(), dxf_spline_get_dictionary_owner_soft(), dxf_spline_init(), dxf_spline_read(), dxf_spline_set_dictionary_owner_soft(), and dxf_spline_write().

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

Definition at line 136 of file spline.h.

Referenced by dxf_spline_free(), dxf_spline_get_material(), dxf_spline_init(), dxf_spline_read(), dxf_spline_set_material(), and dxf_spline_write().

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

Definition at line 140 of file spline.h.

Referenced by dxf_spline_free(), dxf_spline_get_dictionary_owner_hard(), dxf_spline_init(), dxf_spline_read(), dxf_spline_set_dictionary_owner_hard(), and dxf_spline_write().

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

Definition at line 143 of file spline.h.

Referenced by dxf_spline_get_lineweight(), dxf_spline_init(), dxf_spline_read(), dxf_spline_set_lineweight(), and dxf_spline_write().

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

Definition at line 147 of file spline.h.

Referenced by dxf_spline_free(), dxf_spline_get_plot_style_name(), dxf_spline_init(), dxf_spline_read(), dxf_spline_set_plot_style_name(), and dxf_spline_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.

Definition at line 150 of file spline.h.

Referenced by dxf_spline_get_color_value(), dxf_spline_init(), dxf_spline_read(), dxf_spline_set_color_value(), and dxf_spline_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.

Definition at line 161 of file spline.h.

Referenced by dxf_spline_free(), dxf_spline_get_color_name(), dxf_spline_init(), dxf_spline_read(), dxf_spline_set_color_name(), and dxf_spline_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.

Definition at line 168 of file spline.h.

Referenced by dxf_spline_get_transparency(), dxf_spline_init(), dxf_spline_read(), dxf_spline_set_transparency(), and dxf_spline_write().

Knot value (one entry per knot, multiple entries).
Group code = 40.

Definition at line 190 of file spline.h.

Referenced by dxf_helix_write(), dxf_spline_free(), dxf_spline_init(), dxf_spline_read(), and dxf_spline_write().

Weight (if not 1); with multiple group pairs, they are present if all are not 1.
Group code = 41.

Definition at line 193 of file spline.h.

Referenced by dxf_helix_write(), dxf_spline_free(), dxf_spline_init(), dxf_spline_read(), and dxf_spline_write().

Knot tolerance (default = 0.0000001).
Group code = 42.

Definition at line 197 of file spline.h.

Referenced by dxf_helix_write(), dxf_spline_get_knot_tolerance(), dxf_spline_init(), dxf_spline_read(), dxf_spline_set_knot_tolerance(), and dxf_spline_write().

Control-point tolerance (default = 0.0000001).
Group code = 43.

Definition at line 200 of file spline.h.

Referenced by dxf_helix_write(), dxf_spline_get_control_point_tolerance(), dxf_spline_init(), dxf_spline_read(), dxf_spline_set_control_point_tolerance(), and dxf_spline_write().

Fit tolerance (default = 0.0000000001).
Group code = 44.

Definition at line 203 of file spline.h.

Referenced by dxf_spline_get_fit_tolerance(), dxf_spline_init(), dxf_spline_read(), and dxf_spline_set_fit_tolerance().

Spline flag (bit coded):

  1. Closed spline.
  2. Periodic spline.
  3. Rational spline.
  4. Planar.
  5. Linear (planar bit is also set).


Group code = 70.

Definition at line 206 of file spline.h.

Referenced by dxf_helix_write(), dxf_spline_get_flag(), dxf_spline_init(), dxf_spline_read(), and dxf_spline_write().

Degree of the spline curve.
Group code = 71.

Definition at line 216 of file spline.h.

Referenced by dxf_helix_write(), dxf_spline_init(), dxf_spline_read(), and dxf_spline_write().

Number of knots.
Group code = 72.

Definition at line 219 of file spline.h.

Referenced by dxf_helix_write(), dxf_spline_init(), dxf_spline_read(), and dxf_spline_write().

Number of control points.
Group code = 73.

Definition at line 222 of file spline.h.

Referenced by dxf_helix_write(), dxf_spline_init(), dxf_spline_read(), and dxf_spline_write().

group code = 74
Number of fit points (if any).

Definition at line 225 of file spline.h.

Referenced by dxf_helix_write(), dxf_spline_init(), dxf_spline_read(), and dxf_spline_write().

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

Definition at line 228 of file spline.h.

Referenced by dxf_spline_init(), and dxf_spline_write().

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

Definition at line 232 of file spline.h.

Referenced by dxf_spline_init(), and dxf_spline_write().

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

Definition at line 236 of file spline.h.

Referenced by dxf_spline_init(), and dxf_spline_write().

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

Definition at line 239 of file spline.h.

Referenced by dxf_spline_free(), dxf_spline_free_chain(), and dxf_spline_init().


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