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

mline.c File Reference

Functions for a DXF mline entity (MLINE). More...

#include "mline.h"
Include dependency graph for mline.c:

Go to the source code of this file.

Functions

DxfMlinedxf_mline_new ()
 Allocate memory for a DxfMline.
DxfMlinedxf_mline_init (DxfMline *mline)
 Allocate memory and initialize data fields in a MLINE entity.
DxfMlinedxf_mline_read (DxfFile *fp, DxfMline *mline)
 Read data from a DXF file into an MLINE entity.
int dxf_mline_write (DxfFile *fp, DxfMline *mline)
 Write DXF output to fp for a mline entity.
int dxf_mline_free (DxfMline *mline)
 Free the allocated memory for a DXF MLINE and all it's data fields.
void dxf_mline_free_chain (DxfMline *mlines)
 Free the allocated memory for a chain of DXF MLINE entities and all their data fields.
int dxf_mline_get_id_code (DxfMline *mline)
 Get the ID code from a DXF MLINE entity.
DxfMlinedxf_mline_set_id_code (DxfMline *mline, int id_code)
 Set the ID code for a DXF MLINE entity.
char * dxf_mline_get_linetype (DxfMline *mline)
 Get the linetype from a DXF MLINE entity.
DxfMlinedxf_mline_set_linetype (DxfMline *mline, char *linetype)
 Set the linetype for a DXF MLINE entity.
char * dxf_mline_get_layer (DxfMline *mline)
 Get the layer from a DXF MLINE entity.
DxfMlinedxf_mline_set_layer (DxfMline *mline, char *layer)
 Set the layer for a DXF MLINE entity.
double dxf_mline_get_elevation (DxfMline *mline)
 Get the elevation from a DXF MLINE entity.
DxfMlinedxf_mline_set_elevation (DxfMline *mline, double elevation)
 Set the elevation for a DXF MLINE entity.
double dxf_mline_get_thickness (DxfMline *mline)
 Get the thickness from a DXF MLINE entity.
DxfMlinedxf_mline_set_thickness (DxfMline *mline, double thickness)
 Set the thickness for a DXF MLINE entity.
double dxf_mline_get_linetype_scale (DxfMline *mline)
 Get the linetype_scale from a DXF MLINE entity.
DxfMlinedxf_mline_set_linetype_scale (DxfMline *mline, double linetype_scale)
 Set the linetype_scale for a DXF MLINE entity.
int16_t dxf_mline_get_visibility (DxfMline *mline)
 Get the visibility from a DXF MLINE entity.
DxfMlinedxf_mline_set_visibility (DxfMline *mline, int16_t visibility)
 Set the visibility for a DXF MLINE entity.
int dxf_mline_get_color (DxfMline *mline)
 Get the color from a DXF MLINE entity.
DxfMlinedxf_mline_set_color (DxfMline *mline, int color)
 Set the color for a DXF MLINE entity.
int dxf_mline_get_paperspace (DxfMline *mline)
 Get the paperspace flag value from a DXF MLINE entity.
DxfMlinedxf_mline_set_paperspace (DxfMline *mline, int paperspace)
 Set the paperspace flag for a DXF MLINE entity.
int dxf_mline_get_graphics_data_size (DxfMline *mline)
 Get the graphics_data_size value from a DXF MLINE entity.
DxfMlinedxf_mline_set_graphics_data_size (DxfMline *mline, int graphics_data_size)
 Set the graphics_data_size value for a DXF MLINE entity.
int16_t dxf_mline_get_shadow_mode (DxfMline *mline)
 Get the shadow_mode from a DXF MLINE entity.
DxfMlinedxf_mline_set_shadow_mode (DxfMline *mline, int16_t shadow_mode)
 Set the shadow_mode for a DXF MLINE entity.
DxfBinaryGraphicsDatadxf_mline_get_binary_graphics_data (DxfMline *mline)
 Get the pointer to the binary_graphics_data from a DXF MLINE entity.
DxfMlinedxf_mline_set_binary_graphics_data (DxfMline *mline, DxfBinaryGraphicsData *data)
 Set the pointer to the binary_graphics_data for a DXF MLINE entity.
char * dxf_mline_get_dictionary_owner_soft (DxfMline *mline)
 Get the soft pointer to the dictionary owner from a DXF MLINE entity.
DxfMlinedxf_mline_set_dictionary_owner_soft (DxfMline *mline, char *dictionary_owner_soft)
 Set the pointer to the dictionary_owner_soft for a DXF MLINE entity.
char * dxf_mline_get_material (DxfMline *mline)
 Get the pointer to the material from a DXF MLINE entity.
DxfMlinedxf_mline_set_material (DxfMline *mline, char *material)
 Set the pointer to the material for a DXF MLINE entity.
char * dxf_mline_get_dictionary_owner_hard (DxfMline *mline)
 Get the hard pointer to the dictionary owner from a DXF MLINE entity.
DxfMlinedxf_mline_set_dictionary_owner_hard (DxfMline *mline, char *dictionary_owner_hard)
 Set the pointer to the dictionary_owner_hard for a DXF MLINE entity.
int16_t dxf_mline_get_lineweight (DxfMline *mline)
 Get the lineweight from a DXF MLINE entity.
DxfMlinedxf_mline_set_lineweight (DxfMline *mline, int16_t lineweight)
 Set the lineweight for a DXF MLINE entity.
char * dxf_mline_get_plot_style_name (DxfMline *mline)
 Get the plot_style_name from a DXF MLINE entity.
DxfMlinedxf_mline_set_plot_style_name (DxfMline *mline, char *plot_style_name)
 Set the plot_style_name for a DXF MLINE entity.
long dxf_mline_get_color_value (DxfMline *mline)
 Get the color_value from a DXF MLINE entity.
DxfMlinedxf_mline_set_color_value (DxfMline *mline, long color_value)
 Set the color_value for a DXF MLINE entity.
char * dxf_mline_get_color_name (DxfMline *mline)
 Get the color_name from a DXF MLINE entity.
DxfMlinedxf_mline_set_color_name (DxfMline *mline, char *color_name)
 Set the color_name for a DXF MLINE entity.
long dxf_mline_get_transparency (DxfMline *mline)
 Get the transparency from a DXF MLINE entity.
DxfMlinedxf_mline_set_transparency (DxfMline *mline, long transparency)
 Set the transparency for a DXF MLINE entity.
char * dxf_mline_get_style_name (DxfMline *mline)
 Get the style_name from a DXF MLINE entity.
DxfMlinedxf_mline_set_style_name (DxfMline *mline, char *style_name)
 Set the style_name for a DXF MLINE entity.
DxfPointdxf_mline_get_p0 (DxfMline *mline)
 Get the start point p0 of a DXF MLINE entity.
DxfMlinedxf_mline_set_p0 (DxfMline *mline, DxfPoint *p0)
 Set the start point p0 of a DXF MLINE entity.
double dxf_mline_get_x0 (DxfMline *mline)
 Get the X-value of the start point x0 of a DXF MLINE entity.
DxfMlinedxf_mline_set_x0 (DxfMline *mline, double x0)
 Set the X-value of the start point x0 of a DXF MLINE entity.
double dxf_mline_get_y0 (DxfMline *mline)
 Get the Y-value of the start point y0 of a DXF MLINE entity.
DxfMlinedxf_mline_set_y0 (DxfMline *mline, double y0)
 Set the Y-value of the start point y0 of a DXF MLINE entity.
double dxf_mline_get_z0 (DxfMline *mline)
 Get the Z-value of the start point z0 of a DXF MLINE entity.
DxfMlinedxf_mline_set_z0 (DxfMline *mline, double z0)
 Set the Z-value of the start point z0 of a DXF MLINE entity.
DxfPointdxf_mline_get_p1 (DxfMline *mline)
 Get the first entry of a linked list of vertices p1 of a DXF MLINE entity.
DxfMlinedxf_mline_set_p1 (DxfMline *mline, DxfPoint *p1)
 Set the first entry of a linked list of vertices p1 of a DXF MLINE entity.
double dxf_mline_get_x1 (DxfMline *mline)
 Get the X-value of the first entry of a linked list of vertices x1 of a DXF MLINE entity.
DxfMlinedxf_mline_set_x1 (DxfMline *mline, double x1)
 Set the X-value of the first entry of a linked list of vertices x1 of a DXF MLINE entity.
double dxf_mline_get_y1 (DxfMline *mline)
 Get the Y-value of the first entry of a linked list of vertices y1 of a DXF MLINE entity.
DxfMlinedxf_mline_set_y1 (DxfMline *mline, double y1)
 Set the Y-value of the first entry of a linked list of vertices y1 of a DXF MLINE entity.
double dxf_mline_get_z1 (DxfMline *mline)
 Get the Z-value of the first entry of a linked list of vertices z1 of a DXF MLINE entity.
DxfMlinedxf_mline_set_z1 (DxfMline *mline, double z1)
 Set the Z-value of the first entry of a linked list of vertices z1 of a DXF MLINE entity.
DxfPointdxf_mline_get_p2 (DxfMline *mline)
 Get the first entry of a linked list of direction vector vertices p2 of a DXF MLINE entity.
DxfMlinedxf_mline_set_p2 (DxfMline *mline, DxfPoint *p2)
 Set the first entry of a linked list of direction vector vertices p2 of a DXF MLINE entity.
double dxf_mline_get_x2 (DxfMline *mline)
 Get the X-value of the first entry of a linked list of direction vector vertices x2 of a DXF MLINE entity.
DxfMlinedxf_mline_set_x2 (DxfMline *mline, double x2)
 Set the X-value of the first entry of a linked list of direction vector vertices x2 of a DXF MLINE entity.
double dxf_mline_get_y2 (DxfMline *mline)
 Get the Y-value of the first entry of a linked list of direction vector vertices y2 of a DXF MLINE entity.
DxfMlinedxf_mline_set_y2 (DxfMline *mline, double y2)
 Set the Y-value of the first entry of a linked list of direction vector vertices y2 of a DXF MLINE entity.
double dxf_mline_get_z2 (DxfMline *mline)
 Get the Z-value of the first entry of a linked list of direction vector vertices z2 of a DXF MLINE entity.
DxfMlinedxf_mline_set_z2 (DxfMline *mline, double z2)
 Set the Z-value of the first entry of a linked list of direction vector vertices z2 of a DXF MLINE entity.
DxfPointdxf_mline_get_p3 (DxfMline *mline)
 Get the first entry of a linked list vertices of the direction vector of the miter at this vertex p3 of a DXF MLINE entity.
DxfMlinedxf_mline_set_p3 (DxfMline *mline, DxfPoint *p3)
 Set the first entry of a linked list vertices of the direction vector of the miter at this vertex p3 of a DXF MLINE entity.
double dxf_mline_get_x3 (DxfMline *mline)
 Get the X-value of the first entry of a linked list of vertices of the direction vector of the miter at this vertex x3 of a DXF MLINE entity.
DxfMlinedxf_mline_set_x3 (DxfMline *mline, double x3)
 Set the X-value of the first entry of a linked list of vertices of the direction vector of the miter at this vertex x3 of a DXF MLINE entity.
double dxf_mline_get_y3 (DxfMline *mline)
 Get the Y-value of the first entry of a linked list of vertices of the direction vector of the miter at this vertex y3 of a DXF MLINE entity.
DxfMlinedxf_mline_set_y3 (DxfMline *mline, double y3)
 Set the Y-value of the first entry of a linked list of vertices of the direction vector of the miter at this vertex y3 of a DXF MLINE entity.
double dxf_mline_get_z3 (DxfMline *mline)
 Get the Z-value of the first entry of a linked list of vertices of the direction vector of the miter at this vertex z3 of a DXF MLINE entity.
DxfMlinedxf_mline_set_z3 (DxfMline *mline, double z3)
 Set the Z-value of the first entry of a linked list of vertices of the direction vector of the miter at this vertex z3 of a DXF MLINE entity.
double dxf_mline_get_scale_factor (DxfMline *mline)
 Get the scale_factor of a DXF MLINE entity.
DxfMlinedxf_mline_set_scale_factor (DxfMline *mline, double scale_factor)
 Set the scale_factor of a DXF MLINE entity.
double dxf_mline_get_element_parameters (DxfMline *mline)
 Get the element_parameters array of a DXF MLINE entity.
DxfMlinedxf_mline_set_element_parameters (DxfMline *mline, double *element_parameters)
 Set the pointer of element_parameters array of a DXF MLINE entity.
double dxf_mline_get_area_fill_parameters (DxfMline *mline)
 Get the area_fill_parameters array of a DXF MLINE entity.
DxfMlinedxf_mline_set_area_fill_parameters (DxfMline *mline, double *area_fill_parameters)
 Set the pointer of area_fill_parameters array of a DXF MLINE entity.
int dxf_mline_get_justification (DxfMline *mline)
 Get the justification from a DXF MLINE entity.
DxfMlinedxf_mline_set_justification (DxfMline *mline, int justification)
 Set the justification for a DXF MLINE entity.
int dxf_mline_get_flags (DxfMline *mline)
 Get the flags from a DXF MLINE entity.
DxfMlinedxf_mline_set_flags (DxfMline *mline, int flags)
 Set the flags for a DXF MLINE entity.
int dxf_mline_get_number_of_vertices (DxfMline *mline)
 Get the number_of_vertices from a DXF MLINE entity.
DxfMlinedxf_mline_set_number_of_vertices (DxfMline *mline, int number_of_vertices)
 Set the number_of_vertices for a DXF MLINE entity.
int dxf_mline_get_number_of_elements (DxfMline *mline)
 Get the number_of_elements from a DXF MLINE entity.
DxfMlinedxf_mline_set_number_of_elements (DxfMline *mline, int number_of_elements)
 Set the number_of_elements for a DXF MLINE entity.
int dxf_mline_get_number_of_parameters (DxfMline *mline)
 Get the number_of_parameters from a DXF MLINE entity.
DxfMlinedxf_mline_set_number_of_parameters (DxfMline *mline, int number_of_parameters)
 Set the number_of_parameters for a DXF MLINE entity.
int dxf_mline_get_number_of_area_fill_parameters (DxfMline *mline)
 Get the number_of_area_fill_parameters from a DXF MLINE entity.
DxfMlinedxf_mline_set_number_of_area_fill_parameters (DxfMline *mline, int number_of_area_fill_parameters)
 Set the number_of_area_fill_parameters for a DXF MLINE entity.
DxfPointdxf_mline_get_extrusion_vector_as_point (DxfMline *mline)
 Get the extrusion vector as a DXF POINT entity from a DXF MLINE entity.
double dxf_mline_get_extr_x0 (DxfMline *mline)
 Get the X-value of the extrusion vector extr_x0 of a DXF MLINE entity.
DxfMlinedxf_mline_set_extr_x0 (DxfMline *mline, double extr_x0)
 Set the X-value of the extrusion vector extr_x0 of a DXF MLINE entity.
double dxf_mline_get_extr_y0 (DxfMline *mline)
 Get the Y-value of the extrusion vector extr_y0 of a DXF MLINE entity.
DxfMlinedxf_mline_set_extr_y0 (DxfMline *mline, double extr_y0)
 Set the Y-value of the extrusion vector extr_y0 of a DXF MLINE entity.
double dxf_mline_get_extr_z0 (DxfMline *mline)
 Get the Z-value of the extrusion vector extr_z0 of a DXF MLINE entity.
DxfMlinedxf_mline_set_extr_z0 (DxfMline *mline, double extr_z0)
 Set the Z-value of the extrusion vector extr_z0 of a DXF MLINE entity.
DxfMlinedxf_mline_set_extrusion_vector_from_point (DxfMline *mline, DxfPoint *point)
 Set the extrusion vector from a DXF POINT for a DXF MLINE entity.
DxfMlinedxf_mline_set_extrusion_vector (DxfMline *mline, double extr_x0, double extr_y0, double extr_z0)
 Set the extrusion vector for a DXF MLINE entity.
char * dxf_mline_get_mlinestyle_dictionary (DxfMline *mline)
 Get the mlinestyle_dictionary from a DXF MLINE entity.
DxfMlinedxf_mline_set_mlinestyle_dictionary (DxfMline *mline, char *mlinestyle_dictionary)
 Set the mlinestyle_dictionary for a DXF MLINE entity.
DxfMlinedxf_mline_get_next (DxfMline *mline)
 Get the pointer to the next MLINE entity from a DXF MLINE entity.
DxfMlinedxf_mline_set_next (DxfMline *mline, DxfMline *next)
 Set the pointer to the next MLINE for a DXF MLINE entity.
DxfMlinedxf_mline_get_last (DxfMline *mline)
 Get the pointer to the last MLINE entity from a linked list of DXF MLINE entities.

Detailed Description

Functions for a DXF mline entity (MLINE).

Author:
Copyright (C) 2015, 2017 by Bert Timmerman <bert.timmerman@xs4all.nl>.
Since:
The MLINE entity was introduced in DXF R13.
Version:
According to DXF R10 (backward compatibility).
According to DXF R11 (backward compatibility).
According to DXF R12 (backward compatibility).
According to DXF R13.
According to DXF R14.

Copyright Notices.


This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to:
Free Software Foundation, Inc.,
59 Temple Place,
Suite 330,
Boston,
MA 02111 USA.

Drawing eXchange Format (DXF) is a defacto industry standard for the exchange of drawing files between various Computer Aided Drafting programs.
DXF is an industry standard designed by Autodesk(TM).
For more details see http://www.autodesk.com .


Definition in file mline.c.


Function Documentation

DxfMline* dxf_mline_new ( )

Allocate memory for a DxfMline.

Fill the memory contents with zeros.

Returns:
NULL when no memory was allocated, a pointer to the allocated memory when succesful.

Definition at line 55 of file mline.c.

References _, DXF_DEBUG_BEGIN, and DXF_DEBUG_END.

Referenced by dxf_mline_init(), and dxf_mline_read().

DxfMline* dxf_mline_init ( DxfMline mline)

Allocate memory and initialize data fields in a MLINE entity.

Returns:
NULL when no memory was allocated, a pointer to the allocated memory when succesful.
Parameters:
mlineDXF mline entity.

Definition at line 92 of file mline.c.

References _, dxf_mline_struct::area_fill_parameters, dxf_binary_graphics_data_init(), dxf_binary_graphics_data_new(), DXF_COLOR_BYLAYER, DXF_DEBUG_BEGIN, DXF_DEBUG_END, DXF_DEFAULT_LAYER, DXF_DEFAULT_LINETYPE, DXF_DEFAULT_LINETYPE_SCALE, DXF_DEFAULT_VISIBILITY, DXF_MAX_PARAM, dxf_mline_get_binary_graphics_data(), dxf_mline_get_p0(), dxf_mline_get_p1(), dxf_mline_get_p2(), dxf_mline_get_p3(), dxf_mline_new(), dxf_mline_set_binary_graphics_data(), dxf_mline_set_color(), dxf_mline_set_color_name(), dxf_mline_set_color_value(), dxf_mline_set_dictionary_owner_hard(), dxf_mline_set_dictionary_owner_soft(), dxf_mline_set_elevation(), dxf_mline_set_extr_x0(), dxf_mline_set_extr_y0(), dxf_mline_set_extr_z0(), dxf_mline_set_flags(), dxf_mline_set_graphics_data_size(), dxf_mline_set_id_code(), dxf_mline_set_justification(), dxf_mline_set_layer(), dxf_mline_set_linetype(), dxf_mline_set_linetype_scale(), dxf_mline_set_lineweight(), dxf_mline_set_material(), dxf_mline_set_mlinestyle_dictionary(), dxf_mline_set_next(), dxf_mline_set_number_of_area_fill_parameters(), dxf_mline_set_number_of_elements(), dxf_mline_set_number_of_vertices(), dxf_mline_set_p0(), dxf_mline_set_p1(), dxf_mline_set_p2(), dxf_mline_set_p3(), dxf_mline_set_paperspace(), dxf_mline_set_plot_style_name(), dxf_mline_set_scale_factor(), dxf_mline_set_shadow_mode(), dxf_mline_set_style_name(), dxf_mline_set_thickness(), dxf_mline_set_transparency(), dxf_mline_set_visibility(), DXF_MODELSPACE, dxf_point_init(), dxf_point_new(), and dxf_mline_struct::element_parameters.

Referenced by dxf_mline_read().

Here is the call graph for this function:

DxfMline* dxf_mline_read ( DxfFile fp,
DxfMline mline 
)

Read data from a DXF file into an MLINE entity.

The last line read from file contained the string "MLINE".
Now follows some data for the MLINE, to be terminated with a " 0" string announcing the following entity, or the end of the ENTITY section marker ENDSEC.
While parsing the DXF file store data in mline.

Returns:
a pointer to mline.
Parameters:
fpDXF file pointer to an input file (or device).
mlineDXF mline entity.

Definition at line 183 of file mline.c.

References _, dxf_file_struct::acad_version_number, dxf_mline_struct::area_fill_parameters, AutoCAD_11, AutoCAD_13, dxf_mline_struct::color, dxf_mline_struct::dictionary_owner_hard, dxf_mline_struct::dictionary_owner_soft, DXF_DEBUG_BEGIN, DXF_DEBUG_END, DXF_DEFAULT_LAYER, DXF_DEFAULT_LINETYPE, dxf_mline_get_layer(), dxf_mline_get_linetype(), dxf_mline_init(), dxf_mline_new(), dxf_mline_set_layer(), dxf_mline_set_linetype(), dxf_point_init(), dxf_mline_struct::element_parameters, dxf_mline_struct::elevation, dxf_mline_struct::extr_x0, dxf_mline_struct::extr_y0, dxf_mline_struct::extr_z0, dxf_file_struct::filename, dxf_mline_struct::flags, dxf_file_struct::fp, dxf_mline_struct::id_code, dxf_mline_struct::justification, dxf_mline_struct::layer, dxf_file_struct::line_number, dxf_mline_struct::linetype, dxf_mline_struct::linetype_scale, dxf_mline_struct::mlinestyle_dictionary, dxf_point_struct::next, dxf_mline_struct::number_of_area_fill_parameters, dxf_mline_struct::number_of_elements, dxf_mline_struct::number_of_parameters, dxf_mline_struct::number_of_vertices, dxf_mline_struct::p0, dxf_mline_struct::p1, dxf_mline_struct::p2, dxf_mline_struct::p3, dxf_mline_struct::paperspace, dxf_mline_struct::scale_factor, dxf_mline_struct::style_name, dxf_mline_struct::thickness, dxf_mline_struct::visibility, dxf_point_struct::x0, dxf_point_struct::y0, and dxf_point_struct::z0.

Here is the call graph for this function:

int dxf_mline_write ( DxfFile fp,
DxfMline mline 
)

Write DXF output to fp for a mline entity.

Returns:
EXIT_SUCCESS when done, or EXIT_FAILURE when an error occured.
Warning:
This entity requires AutoCAD version R13 or higher. When the follow_strict_version_rules flag is set to TRUE in the DxfFile struct, this entity will be skipped from file. When the follow_strict_version_rules flag is set to FALSE in the DxfFile struct, libdxf will write this entity to file and report with a warning message to stderr.

Todo:
for version R14.
Implementing the start of application-defined group "{application_name", with Group code 102.
For example: "{ACAD_REACTORS" indicates the start of the AutoCAD persistent reactors group.

application-defined codes: Group codes and values within the 102 groups are application defined (optional).

End of group, "}" (optional), with Group code 102.

Parameters:
fpDXF file pointer to an output file (or device).
mlineDXF mline entity.

Definition at line 611 of file mline.c.

References _, dxf_file_struct::acad_version_number, dxf_mline_struct::area_fill_parameters, AutoCAD_11, AutoCAD_12, AutoCAD_13, AutoCAD_14, AutoCAD_2000, AutoCAD_2002, AutoCAD_2004, AutoCAD_2008, AutoCAD_2009, dxf_mline_struct::dictionary_owner_soft, dxf_binary_graphics_data_get_data_line(), dxf_binary_graphics_data_get_next(), DXF_COLOR_BYLAYER, DXF_DEBUG_BEGIN, DXF_DEBUG_END, DXF_DEFAULT_LAYER, DXF_DEFAULT_LINETYPE, DXF_FLATLAND, DXF_MAX_PARAM, dxf_mline_get_binary_graphics_data(), dxf_mline_get_color(), dxf_mline_get_color_name(), dxf_mline_get_color_value(), dxf_mline_get_dictionary_owner_hard(), dxf_mline_get_dictionary_owner_soft(), dxf_mline_get_elevation(), dxf_mline_get_extr_x0(), dxf_mline_get_extr_y0(), dxf_mline_get_extr_z0(), dxf_mline_get_flags(), dxf_mline_get_graphics_data_size(), dxf_mline_get_id_code(), dxf_mline_get_justification(), dxf_mline_get_layer(), dxf_mline_get_linetype(), dxf_mline_get_linetype_scale(), dxf_mline_get_lineweight(), dxf_mline_get_material(), dxf_mline_get_mlinestyle_dictionary(), dxf_mline_get_number_of_area_fill_parameters(), dxf_mline_get_number_of_elements(), dxf_mline_get_number_of_parameters(), dxf_mline_get_number_of_vertices(), dxf_mline_get_paperspace(), dxf_mline_get_plot_style_name(), dxf_mline_get_scale_factor(), dxf_mline_get_shadow_mode(), dxf_mline_get_style_name(), dxf_mline_get_thickness(), dxf_mline_get_transparency(), dxf_mline_get_visibility(), dxf_mline_get_x0(), dxf_mline_get_y0(), dxf_mline_get_z0(), dxf_mline_set_layer(), dxf_mline_set_linetype(), DXF_PAPERSPACE, dxf_mline_struct::element_parameters, dxf_file_struct::follow_strict_version_rules, dxf_file_struct::fp, dxf_mline_struct::id_code, dxf_point_struct::next, dxf_mline_struct::number_of_area_fill_parameters, dxf_mline_struct::number_of_parameters, dxf_mline_struct::number_of_vertices, dxf_mline_struct::p1, dxf_mline_struct::p2, dxf_mline_struct::p3, dxf_mline_struct::thickness, dxf_point_struct::x0, dxf_point_struct::y0, and dxf_point_struct::z0.

Here is the call graph for this function:

int dxf_mline_free ( DxfMline mline)
void dxf_mline_free_chain ( DxfMline mlines)

Free the allocated memory for a chain of DXF MLINE entities and all their data fields.

Parameters:
mlinesa pointer to the chain of DXF MLINE entities.

Definition at line 947 of file mline.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, dxf_mline_free(), and dxf_mline_struct::next.

Here is the call graph for this function:

int dxf_mline_get_id_code ( DxfMline mline)

Get the ID code from a DXF MLINE entity.

Returns:
ID code.
Parameters:
mlinea pointer to a DXF MLINE entity.

Definition at line 980 of file mline.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_mline_struct::id_code.

Referenced by dxf_mline_write().

DxfMline* dxf_mline_set_id_code ( DxfMline mline,
int  id_code 
)

Set the ID code for a DXF MLINE entity.

Parameters:
mlinea pointer to a DXF MLINE entity.
id_codeIdentification number for the entity.
This is to be an unique (sequential) number in the DXF file.

Definition at line 1015 of file mline.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_mline_struct::id_code.

Referenced by dxf_mline_init().

char* dxf_mline_get_linetype ( DxfMline mline)

Get the linetype from a DXF MLINE entity.

Returns:
linetype when sucessful, NULL when an error occurred.
Parameters:
mlinea pointer to a DXF MLINE entity.

Definition at line 1057 of file mline.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_mline_struct::linetype.

Referenced by dxf_mline_read(), and dxf_mline_write().

DxfMline* dxf_mline_set_linetype ( DxfMline mline,
char *  linetype 
)

Set the linetype for a DXF MLINE entity.

Parameters:
mlinea pointer to a DXF MLINE entity.
linetypea string containing the linetype for the entity.

Definition at line 1092 of file mline.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_mline_struct::linetype.

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

char* dxf_mline_get_layer ( DxfMline mline)

Get the layer from a DXF MLINE entity.

Returns:
layer when sucessful, NULL when an error occurred.
Parameters:
mlinea pointer to a DXF MLINE entity.

Definition at line 1132 of file mline.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_mline_struct::layer.

Referenced by dxf_mline_read(), and dxf_mline_write().

DxfMline* dxf_mline_set_layer ( DxfMline mline,
char *  layer 
)

Set the layer for a DXF MLINE entity.

Parameters:
mlinea pointer to a DXF MLINE entity.
layera string containing the layer for the entity.

Definition at line 1167 of file mline.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_mline_struct::layer.

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

double dxf_mline_get_elevation ( DxfMline mline)

Get the elevation from a DXF MLINE entity.

Returns:
elevation.
Parameters:
mlinea pointer to a DXF MLINE entity.

Definition at line 1207 of file mline.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_mline_struct::elevation.

Referenced by dxf_mline_write().

DxfMline* dxf_mline_set_elevation ( DxfMline mline,
double  elevation 
)

Set the elevation for a DXF MLINE entity.

Parameters:
mlinea pointer to a DXF MLINE entity.
elevationthe elevation to be set for the entity.

Definition at line 1235 of file mline.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_mline_struct::elevation.

Referenced by dxf_mline_init().

double dxf_mline_get_thickness ( DxfMline mline)

Get the thickness from a DXF MLINE entity.

Returns:
thickness.
Parameters:
mlinea pointer to a DXF MLINE entity.

Definition at line 1268 of file mline.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_mline_struct::thickness.

Referenced by dxf_mline_write().

DxfMline* dxf_mline_set_thickness ( DxfMline mline,
double  thickness 
)

Set the thickness for a DXF MLINE entity.

Parameters:
mlinea pointer to a DXF MLINE entity.
thicknessthe thickness to be set for the entity.

Definition at line 1303 of file mline.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_mline_struct::thickness.

Referenced by dxf_mline_init().

double dxf_mline_get_linetype_scale ( DxfMline mline)

Get the linetype_scale from a DXF MLINE entity.

Returns:
linetype_scale.
Parameters:
mlinea pointer to a DXF MLINE entity.

Definition at line 1343 of file mline.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_mline_struct::linetype_scale.

Referenced by dxf_mline_write().

DxfMline* dxf_mline_set_linetype_scale ( DxfMline mline,
double  linetype_scale 
)

Set the linetype_scale for a DXF MLINE entity.

Parameters:
mlinea pointer to a DXF MLINE entity.
linetype_scalethe linetype_scale to be set for the entity.

Definition at line 1378 of file mline.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_mline_struct::linetype_scale.

Referenced by dxf_mline_init().

int16_t dxf_mline_get_visibility ( DxfMline mline)

Get the visibility from a DXF MLINE entity.

Returns:
visibility.
Parameters:
mlinea pointer to a DXF MLINE entity.

Definition at line 1418 of file mline.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_mline_struct::visibility.

Referenced by dxf_mline_write().

DxfMline* dxf_mline_set_visibility ( DxfMline mline,
int16_t  visibility 
)

Set the visibility for a DXF MLINE entity.

Parameters:
mlinea pointer to a DXF MLINE entity.
visibilitythe visibility to be set for the entity.

Definition at line 1460 of file mline.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_mline_struct::visibility.

Referenced by dxf_mline_init().

int dxf_mline_get_color ( DxfMline mline)

Get the color from a DXF MLINE entity.

Returns:
color.
Parameters:
mlinea pointer to a DXF MLINE entity.

Definition at line 1507 of file mline.c.

References _, dxf_mline_struct::color, DXF_DEBUG_BEGIN, and DXF_DEBUG_END.

Referenced by dxf_mline_write().

DxfMline* dxf_mline_set_color ( DxfMline mline,
int  color 
)

Set the color for a DXF MLINE entity.

Parameters:
mlinea pointer to a DXF MLINE entity.
colorthe color to be set for the entity.

Definition at line 1541 of file mline.c.

References _, dxf_mline_struct::color, DXF_DEBUG_BEGIN, and DXF_DEBUG_END.

Referenced by dxf_mline_init().

int dxf_mline_get_paperspace ( DxfMline mline)

Get the paperspace flag value from a DXF MLINE entity.

Returns:
paperspace flag value.
Parameters:
mlinea pointer to a DXF MLINE entity.

Definition at line 1580 of file mline.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_mline_struct::paperspace.

Referenced by dxf_mline_write().

DxfMline* dxf_mline_set_paperspace ( DxfMline mline,
int  paperspace 
)

Set the paperspace flag for a DXF MLINE entity.

Parameters:
mlinea pointer to a DXF MLINE entity.
paperspacethe paperspace flag value to be set for the entity.

Definition at line 1620 of file mline.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_mline_struct::paperspace.

Referenced by dxf_mline_init().

int dxf_mline_get_graphics_data_size ( DxfMline mline)

Get the graphics_data_size value from a DXF MLINE entity.

Returns:
graphics_data_size value when successful, or EXIT_FAILURE when an error occurred.
Parameters:
mlinea pointer to a DXF MLINE entity.

Definition at line 1668 of file mline.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_mline_struct::graphics_data_size.

Referenced by dxf_mline_write().

DxfMline* dxf_mline_set_graphics_data_size ( DxfMline mline,
int  graphics_data_size 
)

Set the graphics_data_size value for a DXF MLINE entity.

Returns:
a pointer to mline when successful, or NULL when an error occurred.
Parameters:
mlinea pointer to a DXF MLINE entity.
graphics_data_sizethe graphics_data_size value to be set for the entity.

Definition at line 1711 of file mline.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_mline_struct::graphics_data_size.

Referenced by dxf_mline_init().

int16_t dxf_mline_get_shadow_mode ( DxfMline mline)

Get the shadow_mode from a DXF MLINE entity.

Returns:
shadow_mode when successful, or EXIT_FAILURE when an error occurred.
Parameters:
mlinea pointer to a DXF MLINE entity.

Definition at line 1759 of file mline.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_mline_struct::shadow_mode.

Referenced by dxf_mline_write().

DxfMline* dxf_mline_set_shadow_mode ( DxfMline mline,
int16_t  shadow_mode 
)

Set the shadow_mode for a DXF MLINE entity.

Returns:
a pointer to mline when successful, or NULL when an error occurred.
Parameters:
mlinea pointer to a DXF MLINE entity.
shadow_modethe shadow mode to be set for the entity.

Definition at line 1804 of file mline.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_mline_struct::shadow_mode.

Referenced by dxf_mline_init().

DxfBinaryGraphicsData* dxf_mline_get_binary_graphics_data ( DxfMline mline)

Get the pointer to the binary_graphics_data from a DXF MLINE entity.

Returns:
pointer to the binary_graphics_data.
Warning:
No checks are performed on the returned pointer.
Parameters:
mlinea pointer to a DXF MLINE entity.

Definition at line 1854 of file mline.c.

References _, dxf_mline_struct::binary_graphics_data, DXF_DEBUG_BEGIN, and DXF_DEBUG_END.

Referenced by dxf_mline_init(), and dxf_mline_write().

DxfMline* dxf_mline_set_binary_graphics_data ( DxfMline mline,
DxfBinaryGraphicsData data 
)

Set the pointer to the binary_graphics_data for a DXF MLINE entity.

Parameters:
mlinea pointer to a DXF MLINE entity.
dataa string containing the pointer to the binary_graphics_data for the entity.

Definition at line 1890 of file mline.c.

References _, dxf_mline_struct::binary_graphics_data, DXF_DEBUG_BEGIN, and DXF_DEBUG_END.

Referenced by dxf_mline_init().

char* dxf_mline_get_dictionary_owner_soft ( DxfMline mline)

Get the soft pointer to the dictionary owner from a DXF MLINE entity.

Returns:
soft pointer to the dictionary owner.
Warning:
No checks are performed on the returned pointer (string).
Parameters:
mlinea pointer to a DXF MLINE entity.

Definition at line 1934 of file mline.c.

References _, dxf_mline_struct::dictionary_owner_soft, DXF_DEBUG_BEGIN, and DXF_DEBUG_END.

Referenced by dxf_mline_write().

DxfMline* dxf_mline_set_dictionary_owner_soft ( DxfMline mline,
char *  dictionary_owner_soft 
)

Set the pointer to the dictionary_owner_soft for a DXF MLINE entity.

Parameters:
mlinea pointer to a DXF MLINE entity.
dictionary_owner_softa string containing the pointer to the dictionary_owner_soft for the entity.

Definition at line 1970 of file mline.c.

References _, dxf_mline_struct::dictionary_owner_soft, DXF_DEBUG_BEGIN, and DXF_DEBUG_END.

Referenced by dxf_mline_init().

char* dxf_mline_get_material ( DxfMline mline)

Get the pointer to the material from a DXF MLINE entity.

Returns:
a pointer to material when successful, or NULL when an error occurred.
Warning:
No checks are performed on the returned pointer.
Parameters:
mlinea pointer to a DXF MLINE entity.

Definition at line 2014 of file mline.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_mline_struct::material.

Referenced by dxf_mline_write().

DxfMline* dxf_mline_set_material ( DxfMline mline,
char *  material 
)

Set the pointer to the material for a DXF MLINE entity.

Returns:
a pointer to mline when successful, or NULL when an error occurred.
Parameters:
mlinea pointer to a DXF MLINE entity.
materiala string containing the pointer to the material for the entity.

Definition at line 2052 of file mline.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_mline_struct::material.

Referenced by dxf_mline_init().

char* dxf_mline_get_dictionary_owner_hard ( DxfMline mline)

Get the hard pointer to the dictionary owner from a DXF MLINE entity.

Returns:
hard pointer to the dictionary owner.
Warning:
No checks are performed on the returned pointer (string).
Parameters:
mlinea pointer to a DXF MLINE entity.

Definition at line 2096 of file mline.c.

References _, dxf_mline_struct::dictionary_owner_hard, DXF_DEBUG_BEGIN, and DXF_DEBUG_END.

Referenced by dxf_mline_write().

DxfMline* dxf_mline_set_dictionary_owner_hard ( DxfMline mline,
char *  dictionary_owner_hard 
)

Set the pointer to the dictionary_owner_hard for a DXF MLINE entity.

Parameters:
mlinea pointer to a DXF MLINE entity.
dictionary_owner_harda string containing the pointer to the dictionary_owner_hard for the entity.

Definition at line 2132 of file mline.c.

References _, dxf_mline_struct::dictionary_owner_hard, DXF_DEBUG_BEGIN, and DXF_DEBUG_END.

Referenced by dxf_mline_init().

int16_t dxf_mline_get_lineweight ( DxfMline mline)

Get the lineweight from a DXF MLINE entity.

Returns:
lineweight when successful, or EXIT_FAILURE when an error occurred.
Parameters:
mlinea pointer to a DXF MLINE entity.

Definition at line 2174 of file mline.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_mline_struct::lineweight.

Referenced by dxf_mline_write().

DxfMline* dxf_mline_set_lineweight ( DxfMline mline,
int16_t  lineweight 
)

Set the lineweight for a DXF MLINE entity.

Returns:
a pointer to mline when successful, or NULL when an error occurred.
Parameters:
mlinea pointer to a DXF MLINE entity.
lineweightthe lineweight to be set for the entity.

Definition at line 2205 of file mline.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_mline_struct::lineweight.

Referenced by dxf_mline_init().

char* dxf_mline_get_plot_style_name ( DxfMline mline)

Get the plot_style_name from a DXF MLINE entity.

Returns:
a pointer to plot_style_name when sucessful, or NULL when an error occurred.
Parameters:
mlinea pointer to a DXF MLINE entity.

Definition at line 2239 of file mline.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_mline_struct::plot_style_name.

Referenced by dxf_mline_write().

DxfMline* dxf_mline_set_plot_style_name ( DxfMline mline,
char *  plot_style_name 
)

Set the plot_style_name for a DXF MLINE entity.

Returns:
a pointer to mline when successful, or NULL when an error occurred.
Parameters:
mlinea pointer to a DXF MLINE entity.
plot_style_namea string containing the plot_style_name for the entity.

Definition at line 2277 of file mline.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_mline_struct::plot_style_name.

Referenced by dxf_mline_init().

long dxf_mline_get_color_value ( DxfMline mline)

Get the color_value from a DXF MLINE entity.

Returns:
color_value when successful, or EXIT_FAILURE when an error occurred.
Parameters:
mlinea pointer to a DXF MLINE entity.

Definition at line 2319 of file mline.c.

References _, dxf_mline_struct::color_value, DXF_DEBUG_BEGIN, and DXF_DEBUG_END.

Referenced by dxf_mline_write().

DxfMline* dxf_mline_set_color_value ( DxfMline mline,
long  color_value 
)

Set the color_value for a DXF MLINE entity.

Returns:
a pointer to mline when successful, or NULL when an error occurred.
Parameters:
mlinea pointer to a DXF MLINE entity.
color_valuethe color_value to be set for the entity.

Definition at line 2350 of file mline.c.

References _, dxf_mline_struct::color_value, DXF_DEBUG_BEGIN, and DXF_DEBUG_END.

Referenced by dxf_mline_init().

char* dxf_mline_get_color_name ( DxfMline mline)

Get the color_name from a DXF MLINE entity.

Returns:
color_name when sucessful, or NULL when an error occurred.
Parameters:
mlinea pointer to a DXF MLINE entity.

Definition at line 2384 of file mline.c.

References _, dxf_mline_struct::color_name, DXF_DEBUG_BEGIN, and DXF_DEBUG_END.

Referenced by dxf_mline_write().

DxfMline* dxf_mline_set_color_name ( DxfMline mline,
char *  color_name 
)

Set the color_name for a DXF MLINE entity.

Returns:
a pointer to mline when successful, or NULL when an error occurred.
Parameters:
mlinea pointer to a DXF MLINE entity.
color_namea string containing the color_name for the entity.

Definition at line 2422 of file mline.c.

References _, dxf_mline_struct::color_name, DXF_DEBUG_BEGIN, and DXF_DEBUG_END.

Referenced by dxf_mline_init().

long dxf_mline_get_transparency ( DxfMline mline)

Get the transparency from a DXF MLINE entity.

Returns:
transparency when successful, or EXIT_FAILURE when an error occurred.
Parameters:
mlinea pointer to a DXF MLINE entity.

Definition at line 2464 of file mline.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_mline_struct::transparency.

Referenced by dxf_mline_write().

DxfMline* dxf_mline_set_transparency ( DxfMline mline,
long  transparency 
)

Set the transparency for a DXF MLINE entity.

Returns:
a pointer to mline when successful, or NULL when an error occurred.
Parameters:
mlinea pointer to a DXF MLINE entity.
transparencythe transparency to be set for the entity.

Definition at line 2495 of file mline.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_mline_struct::transparency.

Referenced by dxf_mline_init().

char* dxf_mline_get_style_name ( DxfMline mline)

Get the style_name from a DXF MLINE entity.

Returns:
style_name when sucessful, or NULL when an error occurred.
Parameters:
mlinea pointer to a DXF MLINE entity.

Definition at line 2529 of file mline.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_mline_struct::style_name.

Referenced by dxf_mline_write().

DxfMline* dxf_mline_set_style_name ( DxfMline mline,
char *  style_name 
)

Set the style_name for a DXF MLINE entity.

Returns:
a pointer to mline when successful, or NULL when an error occurred.
Parameters:
mlinea pointer to a DXF MLINE entity.
style_namea string containing the style_name for the entity.

Definition at line 2567 of file mline.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_mline_struct::style_name.

Referenced by dxf_mline_init().

DxfPoint* dxf_mline_get_p0 ( DxfMline mline)

Get the start point p0 of a DXF MLINE entity.

Returns:
the start point p0.
Parameters:
mlinea pointer to a DXF MLINE entity.

Definition at line 2608 of file mline.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_mline_struct::p0.

Referenced by dxf_mline_init().

DxfMline* dxf_mline_set_p0 ( DxfMline mline,
DxfPoint p0 
)

Set the start point p0 of a DXF MLINE entity.

Returns:
a pointer to a DXF MLINE entity.
Parameters:
mlinea pointer to a DXF MLINE entity.
p0a pointer to a DXF POINT entity.

Definition at line 2645 of file mline.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_mline_struct::p0.

Referenced by dxf_mline_init().

double dxf_mline_get_x0 ( DxfMline mline)

Get the X-value of the start point x0 of a DXF MLINE entity.

Returns:
the X-value of the start point x0.
Parameters:
mlinea pointer to a DXF MLINE entity.

Definition at line 2686 of file mline.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, dxf_mline_struct::p0, and dxf_point_struct::x0.

Referenced by dxf_mline_write().

DxfMline* dxf_mline_set_x0 ( DxfMline mline,
double  x0 
)

Set the X-value of the start point x0 of a DXF MLINE entity.

Returns:
a pointer to mline when successful, or NULL when an error occurred.
Parameters:
mlinea pointer to a DXF MLINE entity.
x0the X-value of the start point x0 of a DXF MLINE entity.

Definition at line 2726 of file mline.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, dxf_mline_struct::p0, and dxf_point_struct::x0.

double dxf_mline_get_y0 ( DxfMline mline)

Get the Y-value of the start point y0 of a DXF MLINE entity.

Returns:
the Y-value of the start point x0.
Parameters:
mlinea pointer to a DXF MLINE entity.

Definition at line 2768 of file mline.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, dxf_mline_struct::p0, and dxf_point_struct::y0.

Referenced by dxf_mline_write().

DxfMline* dxf_mline_set_y0 ( DxfMline mline,
double  y0 
)

Set the Y-value of the start point y0 of a DXF MLINE entity.

Returns:
a pointer to mline when successful, or NULL when an error occurred.
Parameters:
mlinea pointer to a DXF MLINE entity.
y0the Y-value of the start point y0 of a DXF MLINE entity.

Definition at line 2808 of file mline.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, dxf_mline_struct::p0, and dxf_point_struct::y0.

double dxf_mline_get_z0 ( DxfMline mline)

Get the Z-value of the start point z0 of a DXF MLINE entity.

Returns:
the Z-value of the start point z0.
Parameters:
mlinea pointer to a DXF MLINE entity.

Definition at line 2850 of file mline.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, dxf_mline_struct::p0, and dxf_point_struct::z0.

Referenced by dxf_mline_write().

DxfMline* dxf_mline_set_z0 ( DxfMline mline,
double  z0 
)

Set the Z-value of the start point z0 of a DXF MLINE entity.

Returns:
a pointer to mline when successful, or NULL when an error occurred.
Parameters:
mlinea pointer to a DXF MLINE entity.
z0the Z-value of the start point z0 of a DXF MLINE entity.

Definition at line 2890 of file mline.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, dxf_mline_struct::p0, and dxf_point_struct::z0.

DxfPoint* dxf_mline_get_p1 ( DxfMline mline)

Get the first entry of a linked list of vertices p1 of a DXF MLINE entity.

Returns:
the first entry of a linked list of vertices p1.
Parameters:
mlinea pointer to a DXF MLINE entity.

Definition at line 2932 of file mline.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_mline_struct::p1.

Referenced by dxf_mline_init().

DxfMline* dxf_mline_set_p1 ( DxfMline mline,
DxfPoint p1 
)

Set the first entry of a linked list of vertices p1 of a DXF MLINE entity.

Returns:
a pointer to a DXF MLINE entity.
Parameters:
mlinea pointer to a DXF MLINE entity.
p1a pointer to a DXF POINT entity.

Definition at line 2970 of file mline.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_mline_struct::p1.

Referenced by dxf_mline_init().

double dxf_mline_get_x1 ( DxfMline mline)

Get the X-value of the first entry of a linked list of vertices x1 of a DXF MLINE entity.

Returns:
the X-value of the first entry of a linked list of vertices x1.
Parameters:
mlinea pointer to a DXF MLINE entity.

Definition at line 3012 of file mline.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, dxf_mline_struct::p1, and dxf_point_struct::x0.

DxfMline* dxf_mline_set_x1 ( DxfMline mline,
double  x1 
)

Set the X-value of the first entry of a linked list of vertices x1 of a DXF MLINE entity.

Returns:
a pointer to mline when successful, or NULL when an error occurred.
Parameters:
mlinea pointer to a DXF MLINE entity.
x1the X-value of the first entry of a linked list of vertices x1 of a DXF MLINE entity.

Definition at line 3052 of file mline.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, dxf_mline_struct::p1, and dxf_point_struct::x0.

double dxf_mline_get_y1 ( DxfMline mline)

Get the Y-value of the first entry of a linked list of vertices y1 of a DXF MLINE entity.

Returns:
the Y-value of the first entry of a linked list of vertices y1.
Parameters:
mlinea pointer to a DXF MLINE entity.

Definition at line 3095 of file mline.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, dxf_mline_struct::p1, and dxf_point_struct::y0.

DxfMline* dxf_mline_set_y1 ( DxfMline mline,
double  y1 
)

Set the Y-value of the first entry of a linked list of vertices y1 of a DXF MLINE entity.

Returns:
a pointer to mline when successful, or NULL when an error occurred.
Parameters:
mlinea pointer to a DXF MLINE entity.
y1the Y-value of the first entry of a linked list of vertices y1 of a DXF MLINE entity.

Definition at line 3135 of file mline.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, dxf_mline_struct::p1, and dxf_point_struct::y0.

double dxf_mline_get_z1 ( DxfMline mline)

Get the Z-value of the first entry of a linked list of vertices z1 of a DXF MLINE entity.

Returns:
the Z-value of the first entry of a linked list of vertices z1.
Parameters:
mlinea pointer to a DXF MLINE entity.

Definition at line 3178 of file mline.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, dxf_mline_struct::p1, and dxf_point_struct::z0.

DxfMline* dxf_mline_set_z1 ( DxfMline mline,
double  z1 
)

Set the Z-value of the first entry of a linked list of vertices z1 of a DXF MLINE entity.

Returns:
a pointer to mline when successful, or NULL when an error occurred.
Parameters:
mlinea pointer to a DXF MLINE entity.
z1the Z-value of the first entry of a linked list of vertices z1 of a DXF MLINE entity.

Definition at line 3218 of file mline.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, dxf_mline_struct::p1, and dxf_point_struct::z0.

DxfPoint* dxf_mline_get_p2 ( DxfMline mline)

Get the first entry of a linked list of direction vector vertices p2 of a DXF MLINE entity.

Returns:
the first entry of a linked list of vertices p2.
Parameters:
mlinea pointer to a DXF MLINE entity.

Definition at line 3260 of file mline.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_mline_struct::p2.

Referenced by dxf_mline_init().

DxfMline* dxf_mline_set_p2 ( DxfMline mline,
DxfPoint p2 
)

Set the first entry of a linked list of direction vector vertices p2 of a DXF MLINE entity.

Returns:
a pointer to a DXF MLINE entity.
Parameters:
mlinea pointer to a DXF MLINE entity.
p2a pointer to a DXF POINT entity.

Definition at line 3298 of file mline.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_mline_struct::p2.

Referenced by dxf_mline_init().

double dxf_mline_get_x2 ( DxfMline mline)

Get the X-value of the first entry of a linked list of direction vector vertices x2 of a DXF MLINE entity.

Returns:
the X-value of the first entry of a linked list of direction vector vertices x2.
Parameters:
mlinea pointer to a DXF MLINE entity.

Definition at line 3340 of file mline.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, dxf_mline_struct::p2, and dxf_point_struct::x0.

DxfMline* dxf_mline_set_x2 ( DxfMline mline,
double  x2 
)

Set the X-value of the first entry of a linked list of direction vector vertices x2 of a DXF MLINE entity.

Returns:
a pointer to mline when successful, or NULL when an error occurred.
Parameters:
mlinea pointer to a DXF MLINE entity.
x2the X-value of the first entry of a linked list of direction vector vertices x2 of a DXF MLINE entity.

Definition at line 3380 of file mline.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, dxf_mline_struct::p2, and dxf_point_struct::x0.

double dxf_mline_get_y2 ( DxfMline mline)

Get the Y-value of the first entry of a linked list of direction vector vertices y2 of a DXF MLINE entity.

Returns:
the X-value of the first entry of a linked list of direction vector vertices y2.
Parameters:
mlinea pointer to a DXF MLINE entity.

Definition at line 3424 of file mline.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, dxf_mline_struct::p2, and dxf_point_struct::y0.

DxfMline* dxf_mline_set_y2 ( DxfMline mline,
double  y2 
)

Set the Y-value of the first entry of a linked list of direction vector vertices y2 of a DXF MLINE entity.

Returns:
a pointer to mline when successful, or NULL when an error occurred.
Parameters:
mlinea pointer to a DXF MLINE entity.
y2the Y-value of the first entry of a linked list of direction vector vertices y2 of a DXF MLINE entity.

Definition at line 3464 of file mline.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, dxf_mline_struct::p2, and dxf_point_struct::y0.

double dxf_mline_get_z2 ( DxfMline mline)

Get the Z-value of the first entry of a linked list of direction vector vertices z2 of a DXF MLINE entity.

Returns:
the Z-value of the first entry of a linked list of direction vector vertices z2.
Parameters:
mlinea pointer to a DXF MLINE entity.

Definition at line 3508 of file mline.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, dxf_mline_struct::p2, and dxf_point_struct::z0.

DxfMline* dxf_mline_set_z2 ( DxfMline mline,
double  z2 
)

Set the Z-value of the first entry of a linked list of direction vector vertices z2 of a DXF MLINE entity.

Returns:
a pointer to mline when successful, or NULL when an error occurred.
Parameters:
mlinea pointer to a DXF MLINE entity.
z2the Z-value of the first entry of a linked list of direction vector vertices z2 of a DXF MLINE entity.

Definition at line 3548 of file mline.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, dxf_mline_struct::p2, and dxf_point_struct::z0.

DxfPoint* dxf_mline_get_p3 ( DxfMline mline)

Get the first entry of a linked list vertices of the direction vector of the miter at this vertex p3 of a DXF MLINE entity.

Returns:
the first entry of a linked list of vertices p3.
Parameters:
mlinea pointer to a DXF MLINE entity.

Definition at line 3591 of file mline.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_mline_struct::p3.

Referenced by dxf_mline_init().

DxfMline* dxf_mline_set_p3 ( DxfMline mline,
DxfPoint p3 
)

Set the first entry of a linked list vertices of the direction vector of the miter at this vertex p3 of a DXF MLINE entity.

Returns:
a pointer to a DXF MLINE entity.
Parameters:
mlinea pointer to a DXF MLINE entity.
p3a pointer to a DXF POINT entity.

Definition at line 3629 of file mline.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_mline_struct::p3.

Referenced by dxf_mline_init().

double dxf_mline_get_x3 ( DxfMline mline)

Get the X-value of the first entry of a linked list of vertices of the direction vector of the miter at this vertex x3 of a DXF MLINE entity.

Returns:
the X-value of the first entry of a linked list of vertices of the direction vector of the miter at this vertex x3.
Parameters:
mlinea pointer to a DXF MLINE entity.

Definition at line 3672 of file mline.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, dxf_mline_struct::p3, and dxf_point_struct::x0.

DxfMline* dxf_mline_set_x3 ( DxfMline mline,
double  x3 
)

Set the X-value of the first entry of a linked list of vertices of the direction vector of the miter at this vertex x3 of a DXF MLINE entity.

Returns:
a pointer to mline when successful, or NULL when an error occurred.
Parameters:
mlinea pointer to a DXF MLINE entity.
x3the X-value of the first entry of a linked list of vertices of the direction vector of the miter at this vertex x3 of a DXF MLINE entity.

Definition at line 3713 of file mline.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, dxf_mline_struct::p3, and dxf_point_struct::x0.

double dxf_mline_get_y3 ( DxfMline mline)

Get the Y-value of the first entry of a linked list of vertices of the direction vector of the miter at this vertex y3 of a DXF MLINE entity.

Returns:
the Y-value of the first entry of a linked list of vertices of the direction vector of the miter at this vertex y3.
Parameters:
mlinea pointer to a DXF MLINE entity.

Definition at line 3758 of file mline.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, dxf_mline_struct::p3, and dxf_point_struct::y0.

DxfMline* dxf_mline_set_y3 ( DxfMline mline,
double  y3 
)

Set the Y-value of the first entry of a linked list of vertices of the direction vector of the miter at this vertex y3 of a DXF MLINE entity.

Returns:
a pointer to mline when successful, or NULL when an error occurred.
Parameters:
mlinea pointer to a DXF MLINE entity.
y3the Y-value of the first entry of a linked list of vertices of the direction vector of the miter at this vertex y3 of a DXF MLINE entity.

Definition at line 3799 of file mline.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, dxf_mline_struct::p3, and dxf_point_struct::y0.

double dxf_mline_get_z3 ( DxfMline mline)

Get the Z-value of the first entry of a linked list of vertices of the direction vector of the miter at this vertex z3 of a DXF MLINE entity.

Returns:
the Z-value of the first entry of a linked list of vertices of the direction vector of the miter at this vertex 3.
Parameters:
mlinea pointer to a DXF MLINE entity.

Definition at line 3844 of file mline.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, dxf_mline_struct::p3, and dxf_point_struct::z0.

DxfMline* dxf_mline_set_z3 ( DxfMline mline,
double  z3 
)

Set the Z-value of the first entry of a linked list of vertices of the direction vector of the miter at this vertex z3 of a DXF MLINE entity.

Returns:
a pointer to mline when successful, or NULL when an error occurred.
Parameters:
mlinea pointer to a DXF MLINE entity.
z3the Z-value of the first entry of a linked list of vertices of the direction vector of the miter at this vertex z3 of a DXF MLINE entity.

Definition at line 3885 of file mline.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, dxf_mline_struct::p3, and dxf_point_struct::z0.

double dxf_mline_get_scale_factor ( DxfMline mline)

Get the scale_factor of a DXF MLINE entity.

Returns:
scale_factor.
Parameters:
mlinea pointer to a DXF MLINE entity.

Definition at line 3927 of file mline.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, dxf_mline_struct::element_parameters, and dxf_mline_struct::scale_factor.

Referenced by dxf_mline_write().

DxfMline* dxf_mline_set_scale_factor ( DxfMline mline,
double  scale_factor 
)

Set the scale_factor of a DXF MLINE entity.

Returns:
a pointer to mline when successful, or NULL when an error occurred.
Parameters:
mlinea pointer to a DXF MLINE entity.
scale_factorthe scale_factor to be set for the entity.

Definition at line 3966 of file mline.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_mline_struct::scale_factor.

Referenced by dxf_mline_init().

double dxf_mline_get_element_parameters ( DxfMline mline)

Get the element_parameters array of a DXF MLINE entity.

Returns:
pointer to the element_parameters array.
Parameters:
mlinea pointer to a DXF MLINE entity.

Definition at line 3999 of file mline.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_mline_struct::element_parameters.

DxfMline* dxf_mline_set_element_parameters ( DxfMline mline,
double *  element_parameters 
)

Set the pointer of element_parameters array of a DXF MLINE entity.

Returns:
a pointer to mline when successful, or NULL when an error occurred.
Parameters:
mlinea pointer to a DXF MLINE entity.
element_parametersthe pointer to the element_parameters array to be set for the entity.

Definition at line 4039 of file mline.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_mline_struct::element_parameters.

double dxf_mline_get_area_fill_parameters ( DxfMline mline)

Get the area_fill_parameters array of a DXF MLINE entity.

Returns:
pointer to the area_fill_parameters array.
Parameters:
mlinea pointer to a DXF MLINE entity.

Definition at line 4080 of file mline.c.

References _, dxf_mline_struct::area_fill_parameters, DXF_DEBUG_BEGIN, and DXF_DEBUG_END.

DxfMline* dxf_mline_set_area_fill_parameters ( DxfMline mline,
double *  area_fill_parameters 
)

Set the pointer of area_fill_parameters array of a DXF MLINE entity.

Returns:
a pointer to mline when successful, or NULL when an error occurred.
Parameters:
mlinea pointer to a DXF MLINE entity.
area_fill_parametersthe pointer to the area_fill_parameters array to be set for the entity.

Definition at line 4113 of file mline.c.

References _, dxf_mline_struct::area_fill_parameters, DXF_DEBUG_BEGIN, and DXF_DEBUG_END.

int dxf_mline_get_justification ( DxfMline mline)

Get the justification from a DXF MLINE entity.

Returns:
justification.
Parameters:
mlinea pointer to a DXF MLINE entity.

Definition at line 4154 of file mline.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_mline_struct::justification.

Referenced by dxf_mline_write().

DxfMline* dxf_mline_set_justification ( DxfMline mline,
int  justification 
)

Set the justification for a DXF MLINE entity.

Parameters:
mlinea pointer to a DXF MLINE entity.
justificationthe justification to be set for the entity.

Definition at line 4196 of file mline.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_mline_struct::justification.

Referenced by dxf_mline_init().

int dxf_mline_get_flags ( DxfMline mline)

Get the flags from a DXF MLINE entity.

Returns:
flags.
Parameters:
mlinea pointer to a DXF MLINE entity.

Definition at line 4243 of file mline.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_mline_struct::flags.

Referenced by dxf_mline_write().

DxfMline* dxf_mline_set_flags ( DxfMline mline,
int  flags 
)

Set the flags for a DXF MLINE entity.

Parameters:
mlinea pointer to a DXF MLINE entity.
flagsthe flags to be set for the entity.

Definition at line 4285 of file mline.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_mline_struct::flags.

Referenced by dxf_mline_init().

int dxf_mline_get_number_of_vertices ( DxfMline mline)

Get the number_of_vertices from a DXF MLINE entity.

Returns:
number_of_vertices.
Parameters:
mlinea pointer to a DXF MLINE entity.

Definition at line 4332 of file mline.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_mline_struct::number_of_vertices.

Referenced by dxf_mline_write().

DxfMline* dxf_mline_set_number_of_vertices ( DxfMline mline,
int  number_of_vertices 
)

Set the number_of_vertices for a DXF MLINE entity.

Parameters:
mlinea pointer to a DXF MLINE entity.
number_of_verticesthe number_of_vertices to be set for the entity.

Definition at line 4367 of file mline.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_mline_struct::number_of_vertices.

Referenced by dxf_mline_init().

int dxf_mline_get_number_of_elements ( DxfMline mline)

Get the number_of_elements from a DXF MLINE entity.

Returns:
number_of_elements.
Parameters:
mlinea pointer to a DXF MLINE entity.

Definition at line 4407 of file mline.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_mline_struct::number_of_elements.

Referenced by dxf_mline_write().

DxfMline* dxf_mline_set_number_of_elements ( DxfMline mline,
int  number_of_elements 
)

Set the number_of_elements for a DXF MLINE entity.

Parameters:
mlinea pointer to a DXF MLINE entity.
number_of_elementsthe number_of_elements to be set for the entity.

Definition at line 4442 of file mline.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_mline_struct::number_of_elements.

Referenced by dxf_mline_init().

int dxf_mline_get_number_of_parameters ( DxfMline mline)

Get the number_of_parameters from a DXF MLINE entity.

Returns:
number_of_parameters.
Parameters:
mlinea pointer to a DXF MLINE entity.

Definition at line 4482 of file mline.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_mline_struct::number_of_parameters.

Referenced by dxf_mline_write().

DxfMline* dxf_mline_set_number_of_parameters ( DxfMline mline,
int  number_of_parameters 
)

Set the number_of_parameters for a DXF MLINE entity.

Parameters:
mlinea pointer to a DXF MLINE entity.
number_of_parametersthe number_of_parameters to be set for the entity.

Definition at line 4517 of file mline.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_mline_struct::number_of_parameters.

int dxf_mline_get_number_of_area_fill_parameters ( DxfMline mline)

Get the number_of_area_fill_parameters from a DXF MLINE entity.

Returns:
number_of_area_fill_parameters.
Parameters:
mlinea pointer to a DXF MLINE entity.

Definition at line 4558 of file mline.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_mline_struct::number_of_area_fill_parameters.

Referenced by dxf_mline_write().

DxfMline* dxf_mline_set_number_of_area_fill_parameters ( DxfMline mline,
int  number_of_area_fill_parameters 
)

Set the number_of_area_fill_parameters for a DXF MLINE entity.

Parameters:
mlinea pointer to a DXF MLINE entity.
number_of_area_fill_parametersthe number_of_area_fill_parameters to be set for the entity.

Definition at line 4594 of file mline.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_mline_struct::number_of_area_fill_parameters.

Referenced by dxf_mline_init().

DxfPoint* dxf_mline_get_extrusion_vector_as_point ( DxfMline mline)

Get the extrusion vector as a DXF POINT entity from a DXF MLINE entity.

Returns:
a DXF POINT containing the extrusion coordinates.
Warning:
No other members are copied into the DXF POINT.
Parameters:
mlinea pointer to a DXF MLINE entity.

Definition at line 4638 of file mline.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, dxf_point_init(), dxf_mline_struct::extr_x0, dxf_mline_struct::extr_y0, and dxf_mline_struct::extr_z0.

Here is the call graph for this function:

double dxf_mline_get_extr_x0 ( DxfMline mline)

Get the X-value of the extrusion vector extr_x0 of a DXF MLINE entity.

Returns:
the X-value of the extrusion vector extr_x0.
Parameters:
mlinea pointer to a DXF MLINE entity.

Definition at line 4682 of file mline.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_mline_struct::extr_x0.

Referenced by dxf_mline_write().

DxfMline* dxf_mline_set_extr_x0 ( DxfMline mline,
double  extr_x0 
)

Set the X-value of the extrusion vector extr_x0 of a DXF MLINE entity.

Returns:
a pointer to mline when successful, or NULL when an error occurred.
Parameters:
mlinea pointer to a DXF MLINE entity.
extr_x0the X-value of the extrusion vector extr_x0 of a DXF MLINE entity.

Definition at line 4715 of file mline.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_mline_struct::extr_x0.

Referenced by dxf_mline_init().

double dxf_mline_get_extr_y0 ( DxfMline mline)

Get the Y-value of the extrusion vector extr_y0 of a DXF MLINE entity.

Returns:
the Y-value of the extrusion vector extr_y0.
Parameters:
mlinea pointer to a DXF MLINE entity.

Definition at line 4750 of file mline.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_mline_struct::extr_y0.

Referenced by dxf_mline_write().

DxfMline* dxf_mline_set_extr_y0 ( DxfMline mline,
double  extr_y0 
)

Set the Y-value of the extrusion vector extr_y0 of a DXF MLINE entity.

Returns:
a pointer to mline when successful, or NULL when an error occurred.
Parameters:
mlinea pointer to a DXF MLINE entity.
extr_y0the Y-value of the extrusion vector extr_y0 of a DXF MLINE entity.

Definition at line 4783 of file mline.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_mline_struct::extr_y0.

Referenced by dxf_mline_init().

double dxf_mline_get_extr_z0 ( DxfMline mline)

Get the Z-value of the extrusion vector extr_z0 of a DXF MLINE entity.

Returns:
the Z-value of the extrusion vector extr_z0.
Parameters:
mlinea pointer to a DXF MLINE entity.

Definition at line 4818 of file mline.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_mline_struct::extr_z0.

Referenced by dxf_mline_write().

DxfMline* dxf_mline_set_extr_z0 ( DxfMline mline,
double  extr_z0 
)

Set the Z-value of the extrusion vector extr_z0 of a DXF MLINE entity.

Returns:
a pointer to mline when successful, or NULL when an error occurred.
Parameters:
mlinea pointer to a DXF MLINE entity.
extr_z0the Z-value of the extrusion vector extr_z0 of a DXF MLINE entity.

Definition at line 4851 of file mline.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_mline_struct::extr_z0.

Referenced by dxf_mline_init().

DxfMline* dxf_mline_set_extrusion_vector_from_point ( DxfMline mline,
DxfPoint point 
)

Set the extrusion vector from a DXF POINT for a DXF MLINE entity.

Parameters:
mlinea pointer to a DXF MLINE entity.
pointa pointer to a DXF POINT entity.

Definition at line 4884 of file mline.c.

References _, DEBUG, DXF_DEBUG_BEGIN, DXF_DEBUG_END, dxf_mline_struct::extr_x0, dxf_mline_struct::extr_y0, dxf_mline_struct::extr_z0, dxf_point_struct::x0, dxf_point_struct::y0, and dxf_point_struct::z0.

DxfMline* dxf_mline_set_extrusion_vector ( DxfMline mline,
double  extr_x0,
double  extr_y0,
double  extr_z0 
)

Set the extrusion vector for a DXF MLINE entity.

Parameters:
mlinea pointer to a DXF MLINE entity.
extr_x0X-value of the extrusion direction.
extr_y0Y-value of the extrusion direction.
extr_z0Z-value of the extrusion direction.

Definition at line 4924 of file mline.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, dxf_mline_struct::extr_x0, dxf_mline_struct::extr_y0, and dxf_mline_struct::extr_z0.

char* dxf_mline_get_mlinestyle_dictionary ( DxfMline mline)

Get the mlinestyle_dictionary from a DXF MLINE entity.

Returns:
mlinestyle_dictionary when sucessful, or NULL when an error occurred.
Parameters:
mlinea pointer to a DXF MLINE entity.

Definition at line 4964 of file mline.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_mline_struct::mlinestyle_dictionary.

Referenced by dxf_mline_write().

DxfMline* dxf_mline_set_mlinestyle_dictionary ( DxfMline mline,
char *  mlinestyle_dictionary 
)

Set the mlinestyle_dictionary for a DXF MLINE entity.

Returns:
a pointer to mline when successful, or NULL when an error occurred.
Parameters:
mlinea pointer to a DXF MLINE entity.
mlinestyle_dictionarya string containing the mlinestyle_dictionary for the entity.

Definition at line 5002 of file mline.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_mline_struct::mlinestyle_dictionary.

Referenced by dxf_mline_init().

DxfMline* dxf_mline_get_next ( DxfMline mline)

Get the pointer to the next MLINE entity from a DXF MLINE entity.

Returns:
pointer to the next MLINE entity.
Warning:
No checks are performed on the returned pointer.
Parameters:
mlinea pointer to a DXF MLINE entity.

Definition at line 5046 of file mline.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_mline_struct::next.

DxfMline* dxf_mline_set_next ( DxfMline mline,
DxfMline next 
)

Set the pointer to the next MLINE for a DXF MLINE entity.

Parameters:
mlinea pointer to a DXF MLINE entity.
nexta pointer to the next MLINE for the entity.

Definition at line 5082 of file mline.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_mline_struct::next.

Referenced by dxf_mline_init().

DxfMline* dxf_mline_get_last ( DxfMline mline)

Get the pointer to the last MLINE entity from a linked list of DXF MLINE entities.

Returns:
pointer to the last MLINE entity.
Warning:
No checks are performed on the returned pointer.
Parameters:
mlinea pointer to a DXF MLINE entity.

Definition at line 5125 of file mline.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_mline_struct::next.