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

dxf_mline_struct Struct Reference

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

#include <mline.h>

Collaboration diagram for dxf_mline_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 * style_name
DxfPointp0
DxfPointp1
DxfPointp2
DxfPointp3
double scale_factor
double element_parameters [DXF_MAX_PARAM]
double area_fill_parameters [DXF_MAX_PARAM]
int justification
int flags
int number_of_vertices
int number_of_elements
int number_of_parameters
int number_of_area_fill_parameters
double extr_x0
double extr_y0
double extr_z0
char * mlinestyle_dictionary
struct DxfMlinenext

Detailed Description

DXF definition of an AutoCAD mline entity.

Warning:
The 2 group codes in mline entities and mlinestyle objects are redundant fields.
These groups should not be modified under any circumstances, although it is safe to read them and use their values.
The correct fields to modify are:
Mline: The 340 group in the same object, which indicates the proper MLINESTYLE object.
Mlinestyle: The 3 group value in the MLINESTYLE dictionary, which precedes the 350 group that has the handle or entity name of the current MLINESTYLE.

Definition at line 71 of file mline.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 76 of file mline.h.

Referenced by dxf_mline_get_id_code(), dxf_mline_read(), dxf_mline_set_id_code(), and dxf_mline_write().

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

Definition at line 81 of file mline.h.

Referenced by dxf_mline_free(), dxf_mline_get_linetype(), dxf_mline_read(), and dxf_mline_set_linetype().

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

Definition at line 85 of file mline.h.

Referenced by dxf_mline_free(), dxf_mline_get_layer(), dxf_mline_read(), and dxf_mline_set_layer().

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.

Deprecated:
As of version R11.

Definition at line 89 of file mline.h.

Referenced by dxf_mline_get_elevation(), dxf_mline_read(), and dxf_mline_set_elevation().

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 95 of file mline.h.

Referenced by dxf_mline_get_thickness(), dxf_mline_read(), dxf_mline_set_thickness(), and dxf_mline_write().

Linetype scale (optional).
Group code = 48.

Since:
Introduced in version R13.

Definition at line 99 of file mline.h.

Referenced by dxf_mline_get_linetype_scale(), dxf_mline_read(), and dxf_mline_set_linetype_scale().

Object visibility (optional):

  1. Visible
  2. Invisible

Group code = 60.

Since:
Introduced in version R13.

Definition at line 103 of file mline.h.

Referenced by dxf_mline_get_visibility(), dxf_mline_read(), and dxf_mline_set_visibility().

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 111 of file mline.h.

Referenced by dxf_mline_get_color(), dxf_mline_read(), and dxf_mline_set_color().

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 118 of file mline.h.

Referenced by dxf_mline_get_paperspace(), dxf_mline_read(), and dxf_mline_set_paperspace().

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 124 of file mline.h.

Referenced by dxf_mline_get_graphics_data_size(), and dxf_mline_set_graphics_data_size().

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 133 of file mline.h.

Referenced by dxf_mline_get_shadow_mode(), and dxf_mline_set_shadow_mode().

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

Since:
Introduced in version R2000.

Definition at line 143 of file mline.h.

Referenced by dxf_mline_free(), dxf_mline_get_binary_graphics_data(), and dxf_mline_set_binary_graphics_data().

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

Since:
Introduced in version R14.

Definition at line 149 of file mline.h.

Referenced by dxf_mline_free(), dxf_mline_get_dictionary_owner_soft(), dxf_mline_read(), dxf_mline_set_dictionary_owner_soft(), and dxf_mline_write().

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

Since:
Introduced in version R2008.

Definition at line 153 of file mline.h.

Referenced by dxf_mline_free(), dxf_mline_get_material(), and dxf_mline_set_material().

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

Since:
Introduced in version R14.

Definition at line 158 of file mline.h.

Referenced by dxf_mline_free(), dxf_mline_get_dictionary_owner_hard(), dxf_mline_read(), and dxf_mline_set_dictionary_owner_hard().

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

Since:
Introduced in version R2002.

Definition at line 162 of file mline.h.

Referenced by dxf_mline_get_lineweight(), and dxf_mline_set_lineweight().

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

Since:
Introduced in version R2009.

Definition at line 167 of file mline.h.

Referenced by dxf_mline_free(), dxf_mline_get_plot_style_name(), and dxf_mline_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.

Since:
Introduced in version R2004.

Definition at line 171 of file mline.h.

Referenced by dxf_mline_get_color_value(), and dxf_mline_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.

Since:
Introduced in version R2004.

Definition at line 183 of file mline.h.

Referenced by dxf_mline_free(), dxf_mline_get_color_name(), and dxf_mline_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.

Since:
Introduced in version R2004.

Definition at line 191 of file mline.h.

Referenced by dxf_mline_get_transparency(), and dxf_mline_set_transparency().

String of up to 32 characters.
The name of the style used for this mline.
An entry for this style must exist in the MLINESTYLE dictionary.
Group code = 2.

Definition at line 200 of file mline.h.

Referenced by dxf_mline_free(), dxf_mline_get_style_name(), dxf_mline_read(), and dxf_mline_set_style_name().

Vertex coordinates (multiple entries in a linked list; one entry for each vertex).
Group codes = 11, 21 and 31.

Definition at line 209 of file mline.h.

Referenced by dxf_mline_free(), dxf_mline_get_p1(), dxf_mline_get_x1(), dxf_mline_get_y1(), dxf_mline_get_z1(), dxf_mline_read(), dxf_mline_set_p1(), dxf_mline_set_x1(), dxf_mline_set_y1(), dxf_mline_set_z1(), and dxf_mline_write().

Direction vector of segment starting at this vertex (multiple entries; one for each vertex).
Group codes = 12, 22 and 32.

Definition at line 213 of file mline.h.

Referenced by dxf_mline_free(), dxf_mline_get_p2(), dxf_mline_get_x2(), dxf_mline_get_y2(), dxf_mline_get_z2(), dxf_mline_read(), dxf_mline_set_p2(), dxf_mline_set_x2(), dxf_mline_set_y2(), dxf_mline_set_z2(), and dxf_mline_write().

Direction vector of miter at this vertex (multiple entries; one for each vertex).
Group codes = 13, 23 and 33.

Definition at line 217 of file mline.h.

Referenced by dxf_mline_free(), dxf_mline_get_p3(), dxf_mline_get_x3(), dxf_mline_get_y3(), dxf_mline_get_z3(), dxf_mline_read(), dxf_mline_set_p3(), dxf_mline_set_x3(), dxf_mline_set_y3(), dxf_mline_set_z3(), and dxf_mline_write().

Scale factor.
Group code = 40.

Definition at line 221 of file mline.h.

Referenced by dxf_mline_get_scale_factor(), dxf_mline_read(), and dxf_mline_set_scale_factor().

double dxf_mline_struct::element_parameters[DXF_MAX_PARAM]

Element parameters (repeats based on previous code 74).
Group code = 41.

Definition at line 224 of file mline.h.

Referenced by dxf_mline_get_element_parameters(), dxf_mline_get_scale_factor(), dxf_mline_init(), dxf_mline_read(), dxf_mline_set_element_parameters(), and dxf_mline_write().

Area fill parameters (repeats based on previous code 75).
Group code = 42.

Definition at line 228 of file mline.h.

Referenced by dxf_mline_get_area_fill_parameters(), dxf_mline_init(), dxf_mline_read(), dxf_mline_set_area_fill_parameters(), and dxf_mline_write().

Justification:

  1. top.
  2. zero.
  3. bottom.

Group code = 70.

Definition at line 232 of file mline.h.

Referenced by dxf_mline_get_justification(), dxf_mline_read(), and dxf_mline_set_justification().

Flags (bit-coded values):

  1. unlocked.
  2. closed.
  3. supress start caps.
  4. supress end caps.

Group code = 71.

Definition at line 240 of file mline.h.

Referenced by dxf_mline_get_flags(), dxf_mline_read(), and dxf_mline_set_flags().

Number of vertices.
Group code = 72.

Definition at line 249 of file mline.h.

Referenced by dxf_mline_get_number_of_vertices(), dxf_mline_read(), dxf_mline_set_number_of_vertices(), and dxf_mline_write().

Number of elements in MLINESTYLE definition.
Group code = 73.

Definition at line 252 of file mline.h.

Referenced by dxf_mline_get_number_of_elements(), dxf_mline_read(), and dxf_mline_set_number_of_elements().

Number of parameters for this element (repeats for each element in segment).
Group code = 74.

Definition at line 255 of file mline.h.

Referenced by dxf_mline_get_number_of_parameters(), dxf_mline_read(), dxf_mline_set_number_of_parameters(), and dxf_mline_write().

Number of area fill parameters for this element (repeats for each element in segment).
Group code = 75.

Definition at line 259 of file mline.h.

Referenced by dxf_mline_get_number_of_area_fill_parameters(), dxf_mline_read(), dxf_mline_set_number_of_area_fill_parameters(), and dxf_mline_write().

X value of the extrusion direction.
Optional, if ommited defaults to 0.0.
Group code = 210.

Definition at line 263 of file mline.h.

Referenced by dxf_mline_get_extr_x0(), dxf_mline_get_extrusion_vector_as_point(), dxf_mline_read(), dxf_mline_set_extr_x0(), dxf_mline_set_extrusion_vector(), and dxf_mline_set_extrusion_vector_from_point().

Y value of the extrusion direction.
Optional, if ommited defaults to 0.0.
Group code = 220.

Definition at line 267 of file mline.h.

Referenced by dxf_mline_get_extr_y0(), dxf_mline_get_extrusion_vector_as_point(), dxf_mline_read(), dxf_mline_set_extr_y0(), dxf_mline_set_extrusion_vector(), and dxf_mline_set_extrusion_vector_from_point().

Z value of the extrusion direction.
Optional, if ommited defaults to 1.0.
Group code = 230.

Definition at line 271 of file mline.h.

Referenced by dxf_mline_get_extr_z0(), dxf_mline_get_extrusion_vector_as_point(), dxf_mline_read(), dxf_mline_set_extr_z0(), dxf_mline_set_extrusion_vector(), and dxf_mline_set_extrusion_vector_from_point().

Pointer-handle/ID of MLINESTYLE dictionary.
Group code = 340.

Definition at line 275 of file mline.h.

Referenced by dxf_mline_free(), dxf_mline_get_mlinestyle_dictionary(), dxf_mline_read(), and dxf_mline_set_mlinestyle_dictionary().

pointer to the next DxfMline.
NULL in the last DxfMline.

Definition at line 277 of file mline.h.

Referenced by dxf_mline_free(), dxf_mline_free_chain(), dxf_mline_get_last(), dxf_mline_get_next(), and dxf_mline_set_next().


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