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

dxf_layer_struct Struct Reference

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

#include <layer.h>

Collaboration diagram for dxf_layer_struct:
Collaboration graph
[legend]

Data Fields

int id_code
char * layer_name
char * linetype
int color
int flag
int plotting_flag
char * dictionary_owner_soft
char * material
char * dictionary_owner_hard
int16_t lineweight
char * plot_style_name
struct DxfLayernext

Detailed Description

DXF definition of an AutoCAD layer entity.

Version:
According to DXF R13.
According to DXF R14.

Definition at line 54 of file layer.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 58 of file layer.h.

Referenced by dxf_layer_get_id_code(), dxf_layer_set_id_code(), and dxf_layer_write().

Layer name.
Group code = 2.

Definition at line 63 of file layer.h.

Referenced by dxf_layer_get_layer_name(), dxf_layer_read(), and dxf_layer_set_layer_name().

For these layers, the associated linetype name in the DXF file is always CONTINUOUS.\ Group code = 6.

Definition at line 66 of file layer.h.

Referenced by dxf_layer_get_linetype(), dxf_layer_read(), and dxf_layer_set_linetype().

Color.
If negative, layer is off.
Group code = 62.

Definition at line 70 of file layer.h.

Referenced by dxf_layer_get_color(), dxf_layer_is_off(), dxf_layer_read(), and dxf_layer_set_color().

Flag.
Bit coded:

  1. on and thawed
  2. if set, layer is frozen
  3. if set, layer is frozen by default in new viewports
  4. if set, layer is locked
  5. unused
  6. unused

Group code = 70.

Definition at line 74 of file layer.h.

Referenced by dxf_layer_get_flag(), dxf_layer_is_frozen(), dxf_layer_is_locked(), dxf_layer_is_referenced(), dxf_layer_is_xreferenced(), dxf_layer_is_xresolved(), dxf_layer_read(), and dxf_layer_set_flag().

Plotting flag.
Boolean, if set to 0, do not plot this layer.
Group code = 290.

Definition at line 87 of file layer.h.

Referenced by dxf_layer_get_plotting_flag(), dxf_layer_read(), and dxf_layer_set_plotting_flag().

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

Definition at line 91 of file layer.h.

Referenced by dxf_layer_get_dictionary_owner_soft(), dxf_layer_read(), and dxf_layer_set_dictionary_owner_soft().

Hard-pointer ID / handle to Material object.
Group code = 347.

Definition at line 95 of file layer.h.

Referenced by dxf_layer_get_material(), dxf_layer_read(), and dxf_layer_set_material().

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

Definition at line 98 of file layer.h.

Referenced by dxf_layer_get_dictionary_owner_hard(), dxf_layer_read(), and dxf_layer_set_dictionary_owner_hard().

Lineweight enum value.
Group code = 370.

Definition at line 101 of file layer.h.

Referenced by dxf_layer_get_lineweight(), dxf_layer_read(), and dxf_layer_set_lineweight().

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

Definition at line 104 of file layer.h.

Referenced by dxf_layer_get_plot_style_name(), dxf_layer_read(), and dxf_layer_set_plot_style_name().

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

Definition at line 106 of file layer.h.

Referenced by dxf_layer_free(), dxf_layer_free_chain(), dxf_layer_get_last(), dxf_layer_get_next(), and dxf_layer_set_next().


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