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

mlinestyle.c File Reference

Functions for a DXF mlinestyle object (MLINESTYLE). More...

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

Go to the source code of this file.

Functions

DxfMlinestyledxf_mlinestyle_new ()
 Allocate memory for a DxfMlinestyle.
DxfMlinestyledxf_mlinestyle_init (DxfMlinestyle *mlinestyle)
 Allocate memory and initialize data fields in a MLINESTYLE object.
DxfMlinestyledxf_mlinestyle_read (DxfFile *fp, DxfMlinestyle *mlinestyle)
 Read data from a DXF file into a DXF MLINESTYLE object.
int dxf_mlinestyle_write (DxfFile *fp, DxfMlinestyle *mlinestyle)
 Write DXF output to a file for a DXF MLINESTYLE object.
int dxf_mlinestyle_free (DxfMlinestyle *mlinestyle)
 Free the allocated memory for a DXF MLINESTYLE and all it's data fields.
void dxf_mlinestyle_free_chain (DxfMlinestyle *mlinestyles)
 Free the allocated memory for a chain of DXF MLINESTYLE objects and all their data fields.
int dxf_mlinestyle_get_id_code (DxfMlinestyle *mlinestyle)
 Get the ID code from a DXF MLINESTYLE object.
DxfMlinestyledxf_mlinestyle_set_id_code (DxfMlinestyle *mlinestyle, int id_code)
 Set the id_code for a DXF MLINESTYLE object.
char * dxf_mlinestyle_get_dictionary_owner_soft (DxfMlinestyle *mlinestyle)
 Get the soft pointer to the dictionary owner from a DXF MLINESTYLE object.
DxfMlinestyledxf_mlinestyle_set_dictionary_owner_soft (DxfMlinestyle *mlinestyle, char *dictionary_owner_soft)
 Set the pointer to the dictionary_owner_soft for a DXF MLINESTYLE object.
char * dxf_mlinestyle_get_dictionary_owner_hard (DxfMlinestyle *mlinestyle)
 Get the hard pointer to the dictionary owner from a DXF MLINESTYLE object.
DxfMlinestyledxf_mlinestyle_set_dictionary_owner_hard (DxfMlinestyle *mlinestyle, char *dictionary_owner_hard)
 Set the pointer to the dictionary_owner_hard for a DXF MLINESTYLE object.
char * dxf_mlinestyle_get_name (DxfMlinestyle *mlinestyle)
 Get the name from a DXF MLINESTYLE object.
DxfMlinestyledxf_mlinestyle_set_name (DxfMlinestyle *mlinestyle, char *name)
 Set the name for a DXF MLINESTYLE object.
char * dxf_mlinestyle_get_description (DxfMlinestyle *mlinestyle)
 Get the description from a DXF MLINESTYLE object.
DxfMlinestyledxf_mlinestyle_set_description (DxfMlinestyle *mlinestyle, char *description)
 Set the description for a DXF MLINESTYLE object.
char * dxf_mlinestyle_get_ith_element_linetype (DxfMlinestyle *mlinestyle, int i)
 Get the element_linetype from a DXF MLINESTYLE object.
DxfMlinestyledxf_mlinestyle_set_ith_element_linetype (DxfMlinestyle *mlinestyle, char *element_linetype, int i)
 Set the element_linetype for a DXF MLINESTYLE object.
double dxf_mlinestyle_get_element_offset (DxfMlinestyle *mlinestyle)
 Get the element_offset array of a DXF MLINESTYLE object.
DxfMlinestyledxf_mlinestyle_set_element_offset (DxfMlinestyle *mlinestyle, double *element_offset)
 Set the pointer of element_parameters array of a DXF MLINESTYLE object.
double dxf_mlinestyle_get_ith_element_offset (DxfMlinestyle *mlinestyle, int i)
 Get the i-th element_offset from a DXF MLINESTYLE object.
DxfMlinestyledxf_mlinestyle_set_ith_element_offset (DxfMlinestyle *mlinestyle, double element_offset, int i)
 Set the i-th element_offset for a DXF MLINESTYLE object.
double dxf_mlinestyle_get_start_angle (DxfMlinestyle *mlinestyle)
 Get the start_angle from a DXF MLINESTYLE object.
DxfMlinestyledxf_mlinestyle_set_start_angle (DxfMlinestyle *mlinestyle, double start_angle)
 Set the start_angle for a DXF MLINESTYLE object.
double dxf_mlinestyle_get_end_angle (DxfMlinestyle *mlinestyle)
 Get the end_angle from a DXF MLINESTYLE object.
DxfMlinestyledxf_mlinestyle_set_end_angle (DxfMlinestyle *mlinestyle, double end_angle)
 Set the end_angle for a DXF MLINESTYLE object.
int dxf_mlinestyle_get_color (DxfMlinestyle *mlinestyle)
 Get the color from a DXF MLINESTYLE object.
DxfMlinestyledxf_mlinestyle_set_color (DxfMlinestyle *mlinestyle, int color)
 Set the color for a DXF MLINESTYLE object.
int dxf_mlinestyle_get_ith_element_color (DxfMlinestyle *mlinestyle, int i)
 Get the i-th element_color from a DXF MLINESTYLE object.
DxfMlinestyledxf_mlinestyle_set_ith_element_color (DxfMlinestyle *mlinestyle, int element_color, int i)
 Set the i-th element_color for a DXF MLINESTYLE object.
int dxf_mlinestyle_get_flags (DxfMlinestyle *mlinestyle)
 Get the flags from a DXF MLINESTYLE object.
DxfMlinestyledxf_mlinestyle_set_flags (DxfMlinestyle *mlinestyle, int flags)
 Set the flags for a DXF MLINESTYLE object.
int dxf_mlinestyle_flag_is_fill_on (DxfMlinestyle *mlinestyle)
 Test if the mlinestyle has its flag set to fill on.
int dxf_mlinestyle_flag_is_display_miters (DxfMlinestyle *mlinestyle)
 Test if the mlinestyle has its flag set to display miters.
int dxf_mlinestyle_flag_is_start_square_end_cap (DxfMlinestyle *mlinestyle)
 Test if the mlinestyle has its flag set to start_square_end_cap.
int dxf_mlinestyle_flag_is_start_inner_arcs_cap (DxfMlinestyle *mlinestyle)
 Test if the mlinestyle has its flag set to start_inner_arcs_cap.
int dxf_mlinestyle_flag_is_start_round_outer_arcs_cap (DxfMlinestyle *mlinestyle)
 Test if the mlinestyle has its flag set to start_round_outer_arcs_cap.
int dxf_mlinestyle_flag_is_end_square_end_cap (DxfMlinestyle *mlinestyle)
 Test if the mlinestyle has its flag set to end_square_end_cap.
int dxf_mlinestyle_flag_is_end_inner_arcs_cap (DxfMlinestyle *mlinestyle)
 Test if the mlinestyle has its flag set to end_inner_arcs_cap.
int dxf_mlinestyle_flag_is_end_round_outer_arcs_cap (DxfMlinestyle *mlinestyle)
 Test if the mlinestyle has its flag set to end_round_outer_arcs_cap.
int dxf_mlinestyle_get_number_of_elements (DxfMlinestyle *mlinestyle)
 Get the number_of_elements from a DXF MLINESTYLE object.
DxfMlinestyledxf_mlinestyle_set_number_of_elements (DxfMlinestyle *mlinestyle, int number_of_elements)
 Set the number_of_elements for a DXF MLINESTYLE object.
DxfMlinestyledxf_mlinestyle_get_next (DxfMlinestyle *mlinestyle)
 Get the pointer to the next MLINESTYLE object from a DXF MLINESTYLE object.
DxfMlinestyledxf_mlinestyle_set_next (DxfMlinestyle *mlinestyle, DxfMlinestyle *next)
 Set the pointer to the next MLINE for a DXF MLINESTYLE object.
DxfMlinestyledxf_mlinestyle_get_last (DxfMlinestyle *mlinestyle)
 Get the pointer to the last MLINESTYLE object from a linked list of DXF MLINESTYLE object.

Detailed Description

Functions for a DXF mlinestyle object (MLINESTYLE).

Author:
Copyright (C) 2015, 2017 by Bert Timmerman <bert.timmerman@xs4all.nl>.
Since:
The MLINESTYLE object 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 mlinestyle.c.


Function Documentation

DxfMlinestyle* dxf_mlinestyle_new ( )

Allocate memory for a DxfMlinestyle.

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 mlinestyle.c.

References _, DXF_DEBUG_BEGIN, and DXF_DEBUG_END.

Referenced by dxf_mlinestyle_init(), and dxf_mlinestyle_read().

DxfMlinestyle* dxf_mlinestyle_init ( DxfMlinestyle mlinestyle)
DxfMlinestyle* dxf_mlinestyle_read ( DxfFile fp,
DxfMlinestyle mlinestyle 
)

Read data from a DXF file into a DXF MLINESTYLE object.

The last line read from file contained the string "MLINESTYLE".
Now follows some data for the MLINESTYLE, 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 mlinestyle.

Returns:
a pointer to mlinestyle.
Parameters:
fpDXF file pointer to an input file (or device).
mlinestyleDXF MLINESTYLE object.

Definition at line 155 of file mlinestyle.c.

References _, dxf_file_struct::acad_version_number, AutoCAD_13, AutoCAD_14, dxf_mlinestyle_struct::color, dxf_mlinestyle_struct::description, dxf_mlinestyle_struct::dictionary_owner_hard, dxf_mlinestyle_struct::dictionary_owner_soft, DXF_DEBUG_BEGIN, DXF_DEBUG_END, dxf_mlinestyle_init(), dxf_mlinestyle_new(), dxf_mlinestyle_struct::element_color, dxf_mlinestyle_struct::element_linetype, dxf_mlinestyle_struct::element_offset, dxf_mlinestyle_struct::end_angle, dxf_file_struct::filename, dxf_mlinestyle_struct::flags, dxf_file_struct::fp, dxf_mlinestyle_struct::id_code, dxf_file_struct::line_number, dxf_mlinestyle_struct::name, dxf_mlinestyle_struct::number_of_elements, and dxf_mlinestyle_struct::start_angle.

Here is the call graph for this function:

int dxf_mlinestyle_write ( DxfFile fp,
DxfMlinestyle mlinestyle 
)

Write DXF output to a file for a DXF MLINESTYLE object.

Returns:
EXIT_SUCCESS when done, or EXIT_FAILURE when an error occurred.
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).
mlinestyleDXF MLINESTYLE object.

Definition at line 354 of file mlinestyle.c.

References _, dxf_file_struct::acad_version_number, AutoCAD_13, AutoCAD_14, DXF_DEBUG_BEGIN, DXF_DEBUG_END, DXF_MAX_PARAM, dxf_mlinestyle_get_color(), dxf_mlinestyle_get_description(), dxf_mlinestyle_get_dictionary_owner_hard(), dxf_mlinestyle_get_dictionary_owner_soft(), dxf_mlinestyle_get_end_angle(), dxf_mlinestyle_get_flags(), dxf_mlinestyle_get_id_code(), dxf_mlinestyle_get_ith_element_color(), dxf_mlinestyle_get_ith_element_linetype(), dxf_mlinestyle_get_ith_element_offset(), dxf_mlinestyle_get_name(), dxf_mlinestyle_get_number_of_elements(), dxf_mlinestyle_get_start_angle(), dxf_file_struct::follow_strict_version_rules, and dxf_file_struct::fp.

Here is the call graph for this function:

int dxf_mlinestyle_free ( DxfMlinestyle mlinestyle)

Free the allocated memory for a DXF MLINESTYLE and all it's data fields.

Returns:
EXIT_SUCCESS when done, or EXIT_FAILURE when an error occurred.
Parameters:
mlinestylePointer to the memory occupied by the DXF MLINESTYLE object.

Definition at line 465 of file mlinestyle.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, DXF_MAX_PARAM, dxf_mlinestyle_get_description(), dxf_mlinestyle_get_dictionary_owner_hard(), dxf_mlinestyle_get_dictionary_owner_soft(), dxf_mlinestyle_get_ith_element_linetype(), dxf_mlinestyle_get_name(), and dxf_mlinestyle_struct::next.

Referenced by dxf_mlinestyle_free_chain().

Here is the call graph for this function:

void dxf_mlinestyle_free_chain ( DxfMlinestyle mlinestyles)

Free the allocated memory for a chain of DXF MLINESTYLE objects and all their data fields.

Parameters:
mlinestylesa pointer to the chain of DXF MLINESTYLE objects.

Definition at line 514 of file mlinestyle.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, dxf_mlinestyle_free(), and dxf_mlinestyle_struct::next.

Here is the call graph for this function:

int dxf_mlinestyle_get_id_code ( DxfMlinestyle mlinestyle)

Get the ID code from a DXF MLINESTYLE object.

Returns:
id_code.
Parameters:
mlinestylea pointer to a DXF MLINESTYLE object.

Definition at line 547 of file mlinestyle.c.

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

Referenced by dxf_mlinestyle_write().

DxfMlinestyle* dxf_mlinestyle_set_id_code ( DxfMlinestyle mlinestyle,
int  id_code 
)

Set the id_code for a DXF MLINESTYLE object.

Parameters:
mlinestylea pointer to a DXF MLINESTYLE object.
id_codeIdentification number for the object.
This is to be an unique (sequential) number in the DXF file.

Definition at line 582 of file mlinestyle.c.

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

Referenced by dxf_mlinestyle_init().

char* dxf_mlinestyle_get_dictionary_owner_soft ( DxfMlinestyle mlinestyle)

Get the soft pointer to the dictionary owner from a DXF MLINESTYLE object.

Returns:
soft pointer to the dictionary owner.
Warning:
No checks are performed on the returned pointer (string).
Parameters:
mlinestylea pointer to a DXF MLINESTYLE object.

Definition at line 627 of file mlinestyle.c.

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

Referenced by dxf_mlinestyle_free(), and dxf_mlinestyle_write().

DxfMlinestyle* dxf_mlinestyle_set_dictionary_owner_soft ( DxfMlinestyle mlinestyle,
char *  dictionary_owner_soft 
)

Set the pointer to the dictionary_owner_soft for a DXF MLINESTYLE object.

Parameters:
mlinestylea pointer to a DXF MLINESTYLE object.
dictionary_owner_softa string containing the pointer to the dictionary_owner_soft for the object.

Definition at line 663 of file mlinestyle.c.

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

Referenced by dxf_mlinestyle_init().

char* dxf_mlinestyle_get_dictionary_owner_hard ( DxfMlinestyle mlinestyle)

Get the hard pointer to the dictionary owner from a DXF MLINESTYLE object.

Returns:
hard pointer to the dictionary owner.
Warning:
No checks are performed on the returned pointer (string).
Parameters:
mlinestylea pointer to a DXF MLINESTYLE object.

Definition at line 707 of file mlinestyle.c.

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

Referenced by dxf_mlinestyle_free(), and dxf_mlinestyle_write().

DxfMlinestyle* dxf_mlinestyle_set_dictionary_owner_hard ( DxfMlinestyle mlinestyle,
char *  dictionary_owner_hard 
)

Set the pointer to the dictionary_owner_hard for a DXF MLINESTYLE object.

Parameters:
mlinestylea pointer to a DXF MLINESTYLE object.
dictionary_owner_harda string containing the pointer to the dictionary_owner_hard for the object.

Definition at line 743 of file mlinestyle.c.

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

Referenced by dxf_mlinestyle_init().

char* dxf_mlinestyle_get_name ( DxfMlinestyle mlinestyle)

Get the name from a DXF MLINESTYLE object.

Returns:
name.
Warning:
No checks are performed on the returned pointer (string).
Parameters:
mlinestylea pointer to a DXF MLINESTYLE object.

Definition at line 786 of file mlinestyle.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_mlinestyle_struct::name.

Referenced by dxf_mlinestyle_free(), and dxf_mlinestyle_write().

DxfMlinestyle* dxf_mlinestyle_set_name ( DxfMlinestyle mlinestyle,
char *  name 
)

Set the name for a DXF MLINESTYLE object.

Parameters:
mlinestylea pointer to a DXF MLINESTYLE object.
namea string containing the name for the object.

Definition at line 821 of file mlinestyle.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_mlinestyle_struct::name.

Referenced by dxf_mlinestyle_init().

char* dxf_mlinestyle_get_description ( DxfMlinestyle mlinestyle)

Get the description from a DXF MLINESTYLE object.

Returns:
description.
Warning:
No checks are performed on the returned pointer (string).
Parameters:
mlinestylea pointer to a DXF MLINESTYLE object.

Definition at line 863 of file mlinestyle.c.

References _, dxf_mlinestyle_struct::description, DXF_DEBUG_BEGIN, and DXF_DEBUG_END.

Referenced by dxf_mlinestyle_free(), and dxf_mlinestyle_write().

DxfMlinestyle* dxf_mlinestyle_set_description ( DxfMlinestyle mlinestyle,
char *  description 
)

Set the description for a DXF MLINESTYLE object.

Parameters:
mlinestylea pointer to a DXF MLINESTYLE object.
descriptiona string containing the description for the object.

Definition at line 898 of file mlinestyle.c.

References _, dxf_mlinestyle_struct::description, DXF_DEBUG_BEGIN, and DXF_DEBUG_END.

Referenced by dxf_mlinestyle_init().

char* dxf_mlinestyle_get_ith_element_linetype ( DxfMlinestyle mlinestyle,
int  i 
)

Get the element_linetype from a DXF MLINESTYLE object.

Returns:
element_linetype.
Warning:
No checks are performed on the returned pointer (string).
Parameters:
mlinestylea pointer to a DXF MLINESTYLE object.
ian index for the array of element linetypes.

Definition at line 941 of file mlinestyle.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, DXF_MAX_PARAM, and dxf_mlinestyle_struct::element_linetype.

Referenced by dxf_mlinestyle_free(), and dxf_mlinestyle_write().

DxfMlinestyle* dxf_mlinestyle_set_ith_element_linetype ( DxfMlinestyle mlinestyle,
char *  element_linetype,
int  i 
)

Set the element_linetype for a DXF MLINESTYLE object.

Parameters:
mlinestylea pointer to a DXF MLINESTYLE object.
element_linetypea string containing the element_linetype for the object.
ian index for the array of element linetypes.

Definition at line 992 of file mlinestyle.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, DXF_MAX_PARAM, and dxf_mlinestyle_struct::element_linetype.

Referenced by dxf_mlinestyle_init().

double dxf_mlinestyle_get_element_offset ( DxfMlinestyle mlinestyle)

Get the element_offset array of a DXF MLINESTYLE object.

Returns:
pointer to the element_offset array.
Parameters:
mlinestylea pointer to a DXF MLINESTYLE object.

Definition at line 1049 of file mlinestyle.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_mlinestyle_struct::element_offset.

DxfMlinestyle* dxf_mlinestyle_set_element_offset ( DxfMlinestyle mlinestyle,
double *  element_offset 
)

Set the pointer of element_parameters array of a DXF MLINESTYLE object.

Returns:
a pointer to mline when successful, or NULL when an error occurred.
Parameters:
mlinestylea pointer to a DXF MLINESTYLE object.
element_offsetthe pointer to the element_offset array to be set for the object.

Definition at line 1089 of file mlinestyle.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_mlinestyle_struct::element_offset.

double dxf_mlinestyle_get_ith_element_offset ( DxfMlinestyle mlinestyle,
int  i 
)

Get the i-th element_offset from a DXF MLINESTYLE object.

Returns:
element_offset.
Parameters:
mlinestylea pointer to a DXF MLINESTYLE object.
ian index for the array of element offsets.

Definition at line 1130 of file mlinestyle.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, DXF_MAX_PARAM, and dxf_mlinestyle_struct::element_offset.

Referenced by dxf_mlinestyle_write().

DxfMlinestyle* dxf_mlinestyle_set_ith_element_offset ( DxfMlinestyle mlinestyle,
double  element_offset,
int  i 
)

Set the i-th element_offset for a DXF MLINESTYLE object.

Parameters:
mlinestylea pointer to a DXF MLINESTYLE object.
element_offseta double containing the i-th element_offset for the object.
ian index for the array of element offsets.

Definition at line 1174 of file mlinestyle.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, DXF_MAX_PARAM, and dxf_mlinestyle_struct::element_offset.

Referenced by dxf_mlinestyle_init().

double dxf_mlinestyle_get_start_angle ( DxfMlinestyle mlinestyle)

Get the start_angle from a DXF MLINESTYLE object.

Returns:
start_angle.
Parameters:
mlinestylea pointer to a DXF MLINESTYLE object.

Definition at line 1224 of file mlinestyle.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_mlinestyle_struct::start_angle.

Referenced by dxf_mlinestyle_write().

DxfMlinestyle* dxf_mlinestyle_set_start_angle ( DxfMlinestyle mlinestyle,
double  start_angle 
)

Set the start_angle for a DXF MLINESTYLE object.

Parameters:
mlinestylea pointer to a DXF MLINESTYLE object.
start_anglethe start_angle to be set for the object.

Definition at line 1252 of file mlinestyle.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_mlinestyle_struct::start_angle.

Referenced by dxf_mlinestyle_init().

double dxf_mlinestyle_get_end_angle ( DxfMlinestyle mlinestyle)

Get the end_angle from a DXF MLINESTYLE object.

Returns:
end_angle.
Parameters:
mlinestylea pointer to a DXF MLINESTYLE object.

Definition at line 1285 of file mlinestyle.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_mlinestyle_struct::end_angle.

Referenced by dxf_mlinestyle_write().

DxfMlinestyle* dxf_mlinestyle_set_end_angle ( DxfMlinestyle mlinestyle,
double  end_angle 
)

Set the end_angle for a DXF MLINESTYLE object.

Parameters:
mlinestylea pointer to a DXF MLINESTYLE object.
end_anglethe end_angle to be set for the object.

Definition at line 1313 of file mlinestyle.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_mlinestyle_struct::end_angle.

Referenced by dxf_mlinestyle_init().

int dxf_mlinestyle_get_color ( DxfMlinestyle mlinestyle)

Get the color from a DXF MLINESTYLE object.

Returns:
color.
Parameters:
mlinestylea pointer to a DXF MLINESTYLE object.

Definition at line 1346 of file mlinestyle.c.

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

Referenced by dxf_mlinestyle_write().

DxfMlinestyle* dxf_mlinestyle_set_color ( DxfMlinestyle mlinestyle,
int  color 
)

Set the color for a DXF MLINESTYLE object.

Parameters:
mlinestylea pointer to a DXF MLINESTYLE object.
colorthe color to be set for the object.

Definition at line 1380 of file mlinestyle.c.

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

Referenced by dxf_mlinestyle_init().

int dxf_mlinestyle_get_ith_element_color ( DxfMlinestyle mlinestyle,
int  i 
)

Get the i-th element_color from a DXF MLINESTYLE object.

Returns:
element_color.
Parameters:
mlinestylea pointer to a DXF MLINESTYLE object.
ian index for the array of element colors.

Definition at line 1419 of file mlinestyle.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, DXF_MAX_PARAM, and dxf_mlinestyle_struct::element_color.

Referenced by dxf_mlinestyle_write().

DxfMlinestyle* dxf_mlinestyle_set_ith_element_color ( DxfMlinestyle mlinestyle,
int  element_color,
int  i 
)

Set the i-th element_color for a DXF MLINESTYLE object.

Parameters:
mlinestylea pointer to a DXF MLINESTYLE object.
element_coloran integer containing the color for the object.
ian index for the array of element colors.

Definition at line 1463 of file mlinestyle.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, DXF_MAX_PARAM, and dxf_mlinestyle_struct::element_color.

Referenced by dxf_mlinestyle_init().

int dxf_mlinestyle_get_flags ( DxfMlinestyle mlinestyle)

Get the flags from a DXF MLINESTYLE object.

Returns:
flags.
Parameters:
mlinestylea pointer to a DXF MLINESTYLE object.

Definition at line 1518 of file mlinestyle.c.

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

Referenced by dxf_mlinestyle_write().

DxfMlinestyle* dxf_mlinestyle_set_flags ( DxfMlinestyle mlinestyle,
int  flags 
)

Set the flags for a DXF MLINESTYLE object.

Parameters:
mlinestylea pointer to a DXF MLINESTYLE object.
flagsthe flags to be set for the object.

Definition at line 1560 of file mlinestyle.c.

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

Referenced by dxf_mlinestyle_init().

int dxf_mlinestyle_flag_is_fill_on ( DxfMlinestyle mlinestyle)

Test if the mlinestyle has its flag set to fill on.

Returns:
TRUE when the flag is set to fill on, or FALSE when the flag is not set to fill on.
Parameters:
mlinestyleDXF MLINESTYLE object.

Definition at line 1608 of file mlinestyle.c.

References _, DXF_CHECK_BIT, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_mlinestyle_struct::flags.

int dxf_mlinestyle_flag_is_display_miters ( DxfMlinestyle mlinestyle)

Test if the mlinestyle has its flag set to display miters.

Returns:
TRUE when the flag is set to display miters, or FALSE when the flag is not set to dispaly miters.
Parameters:
mlinestyleDXF MLINESTYLE object.

Definition at line 1640 of file mlinestyle.c.

References _, DXF_CHECK_BIT, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_mlinestyle_struct::flags.

int dxf_mlinestyle_flag_is_start_square_end_cap ( DxfMlinestyle mlinestyle)

Test if the mlinestyle has its flag set to start_square_end_cap.

Returns:
TRUE when the flag is set to start_square_end_cap, or FALSE when the flag is not set to start_square_end_cap.
Parameters:
mlinestyleDXF MLINESTYLE object.

Definition at line 1672 of file mlinestyle.c.

References _, DXF_CHECK_BIT, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_mlinestyle_struct::flags.

int dxf_mlinestyle_flag_is_start_inner_arcs_cap ( DxfMlinestyle mlinestyle)

Test if the mlinestyle has its flag set to start_inner_arcs_cap.

Returns:
TRUE when the flag is set to start_inner_arcs_cap, or FALSE when the flag is not set to start_inner_arcs_cap.
Parameters:
mlinestyleDXF MLINESTYLE object.

Definition at line 1704 of file mlinestyle.c.

References _, DXF_CHECK_BIT, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_mlinestyle_struct::flags.

int dxf_mlinestyle_flag_is_start_round_outer_arcs_cap ( DxfMlinestyle mlinestyle)

Test if the mlinestyle has its flag set to start_round_outer_arcs_cap.

Returns:
TRUE when the flag is set to start_round_outer_arcs_cap, or FALSE when the flag is not set to start_roundouter_arcs_cap.
Parameters:
mlinestyleDXF MLINESTYLE object.

Definition at line 1736 of file mlinestyle.c.

References _, DXF_CHECK_BIT, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_mlinestyle_struct::flags.

int dxf_mlinestyle_flag_is_end_square_end_cap ( DxfMlinestyle mlinestyle)

Test if the mlinestyle has its flag set to end_square_end_cap.

Returns:
TRUE when the flag is set to end_square_end_cap, or FALSE when the flag is not set to end_square_end_cap.
Parameters:
mlinestyleDXF MLINESTYLE object.

Definition at line 1768 of file mlinestyle.c.

References _, DXF_CHECK_BIT, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_mlinestyle_struct::flags.

int dxf_mlinestyle_flag_is_end_inner_arcs_cap ( DxfMlinestyle mlinestyle)

Test if the mlinestyle has its flag set to end_inner_arcs_cap.

Returns:
TRUE when the flag is set to end_inner_arcs_cap, or FALSE when the flag is not set to end_inner_arcs_cap.
Parameters:
mlinestyleDXF MLINESTYLE object.

Definition at line 1800 of file mlinestyle.c.

References _, DXF_CHECK_BIT, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_mlinestyle_struct::flags.

int dxf_mlinestyle_flag_is_end_round_outer_arcs_cap ( DxfMlinestyle mlinestyle)

Test if the mlinestyle has its flag set to end_round_outer_arcs_cap.

Returns:
TRUE when the flag is set to end_round_outer_arcs_cap, or FALSE when the flag is not set to end_roundouter_arcs_cap.
Parameters:
mlinestyleDXF MLINESTYLE object.

Definition at line 1832 of file mlinestyle.c.

References _, DXF_CHECK_BIT, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_mlinestyle_struct::flags.

int dxf_mlinestyle_get_number_of_elements ( DxfMlinestyle mlinestyle)

Get the number_of_elements from a DXF MLINESTYLE object.

Returns:
number_of_elements.
Parameters:
mlinestylea pointer to a DXF MLINESTYLE object.

Definition at line 1862 of file mlinestyle.c.

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

Referenced by dxf_mlinestyle_write().

DxfMlinestyle* dxf_mlinestyle_set_number_of_elements ( DxfMlinestyle mlinestyle,
int  number_of_elements 
)

Set the number_of_elements for a DXF MLINESTYLE object.

Parameters:
mlinestylea pointer to a DXF MLINESTYLE object.
number_of_elementsthe number_of_elements to be set for the object.

Definition at line 1897 of file mlinestyle.c.

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

Referenced by dxf_mlinestyle_init().

DxfMlinestyle* dxf_mlinestyle_get_next ( DxfMlinestyle mlinestyle)

Get the pointer to the next MLINESTYLE object from a DXF MLINESTYLE object.

Returns:
pointer to the next MLINESTYLE object.
Warning:
No checks are performed on the returned pointer.
Parameters:
mlinestylea pointer to a DXF MLINESTYLE object.

Definition at line 1940 of file mlinestyle.c.

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

DxfMlinestyle* dxf_mlinestyle_set_next ( DxfMlinestyle mlinestyle,
DxfMlinestyle next 
)

Set the pointer to the next MLINE for a DXF MLINESTYLE object.

Parameters:
mlinestylea pointer to a DXF MLINESTYLE object.
nexta pointer to the next MLINESTYLE for the object.

Definition at line 1976 of file mlinestyle.c.

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

Referenced by dxf_mlinestyle_init().

DxfMlinestyle* dxf_mlinestyle_get_last ( DxfMlinestyle mlinestyle)

Get the pointer to the last MLINESTYLE object from a linked list of DXF MLINESTYLE object.

Returns:
pointer to the last MLINESTYLE object.
Warning:
No checks are performed on the returned pointer.
Parameters:
mlinestylea pointer to a DXF MLINESTYLE object.

Definition at line 2019 of file mlinestyle.c.

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