libDXF 0.0.1
A library with DXF related functions written in C.
Data Structures | Typedefs | Functions

attdef.h File Reference

Header file for a DXF attribute definition entity (ATTDEF). More...

#include "global.h"
#include "point.h"
#include "binary_graphics_data.h"
Include dependency graph for attdef.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  dxf_attdef_struct
 DXF definition of an AutoCAD attribute definition entity (ATTDEF). More...

Typedefs

typedef struct dxf_attdef_struct DxfAttdef
 DXF definition of an AutoCAD attribute definition entity (ATTDEF).

Functions

DxfAttdefdxf_attdef_new ()
 Allocate memory for a DxfAttdef.
DxfAttdefdxf_attdef_init (DxfAttdef *attdef)
 Allocate memory and initialize data fields in a ATTDEF entity.
DxfAttdefdxf_attdef_read (DxfFile *fp, DxfAttdef *attdef)
 Read data from a DXF file into an ATTDEF entity.
int dxf_attdef_write (DxfFile *fp, DxfAttdef *attdef)
 Write DXF output to fp for a attribute definition entity.
int dxf_attdef_free (DxfAttdef *attdef)
 Free the allocate memory for a DXF ATTDEF and all it's data fields.
void dxf_attdef_free_chain (DxfAttdef *attdefs)
 Free the allocated memory for a chain of DXF ATTDEF entities and all their data fields.
int dxf_attdef_get_id_code (DxfAttdef *attdef)
 Get the ID code from a DXF ATTDEF entity.
DxfAttdefdxf_attdef_set_id_code (DxfAttdef *attdef, int id_code)
 Set the ID code for a DXF ATTDEF entity.
char * dxf_attdef_get_linetype (DxfAttdef *attdef)
 Get the linetype from a DXF ATTDEF entity.
DxfAttdefdxf_attdef_set_linetype (DxfAttdef *attdef, char *linetype)
 Set the linetype for a DXF ATTDEF entity.
char * dxf_attdef_get_layer (DxfAttdef *attdef)
 Get the layer from a DXF ATTDEF entity.
DxfAttdefdxf_attdef_set_layer (DxfAttdef *attdef, char *layer)
 Set the layer for a DXF ATTDEF entity.
double dxf_attdef_get_elevation (DxfAttdef *attdef)
 Get the elevation from a DXF ATTDEF entity.
DxfAttdefdxf_attdef_set_elevation (DxfAttdef *attdef, double elevation)
 Set the elevation for a DXF ATTDEF entity.
double dxf_attdef_get_thickness (DxfAttdef *attdef)
 Get the thickness from a DXF ATTDEF entity.
DxfAttdefdxf_attdef_set_thickness (DxfAttdef *attdef, double thickness)
 Set the thickness for a DXF ATTDEF entity.
double dxf_attdef_get_linetype_scale (DxfAttdef *attdef)
 Get the linetype scale from a DXF ATTDEF entity.
DxfAttdefdxf_attdef_set_linetype_scale (DxfAttdef *attdef, double linetype_scale)
 Set the linetype scale for a DXF ATTDEF entity.
int16_t dxf_attdef_get_visibility (DxfAttdef *attdef)
 Get the visibility from a DXF ATTDEF entity.
DxfAttdefdxf_attdef_set_visibility (DxfAttdef *attdef, int16_t visibility)
 Set the visibility for a DXF ATTDEF entity.
int dxf_attdef_get_color (DxfAttdef *attdef)
 Get the color from a DXF ATTDEF entity.
DxfAttdefdxf_attdef_set_color (DxfAttdef *attdef, int color)
 Set the color for a DXF ATTDEF entity.
int dxf_attdef_get_paperspace (DxfAttdef *attdef)
 Get the paperspace flag value from a DXF ATTDEF entity.
DxfAttdefdxf_attdef_set_paperspace (DxfAttdef *attdef, int paperspace)
 Set the paperspace flag for a DXF ATTDEF entity.
int dxf_attdef_get_graphics_data_size (DxfAttdef *attdef)
 Get the graphics_data_size value from a DXF ATTDEF entity.
DxfAttdefdxf_attdef_set_graphics_data_size (DxfAttdef *attdef, int graphics_data_size)
 Set the graphics_data_size value for a DXF ATTDEF entity.
int16_t dxf_attdef_get_shadow_mode (DxfAttdef *attdef)
 Get the shadow_mode from a DXF ATTDEF entity.
DxfAttdefdxf_attdef_set_shadow_mode (DxfAttdef *attdef, int16_t shadow_mode)
 Set the shadow_mode for a DXF ATTDEF entity.
DxfBinaryGraphicsDatadxf_attdef_get_binary_graphics_data (DxfAttdef *attdef)
 Get the pointer to the binary_graphics_data from a DXF ATTDEF entity.
DxfAttdefdxf_attdef_set_binary_graphics_data (DxfAttdef *attdef, DxfBinaryGraphicsData *data)
 Set the pointer to the binary_graphics_data for a DXF ATTDEF entity.
char * dxf_attdef_get_dictionary_owner_soft (DxfAttdef *attdef)
 Get the soft pointer to the dictionary owner from a DXF ATTDEF entity.
DxfAttdefdxf_attdef_set_dictionary_owner_soft (DxfAttdef *attdef, char *dictionary_owner_soft)
 Set the pointer to the dictionary_owner_soft for a DXF ATTDEF entity.
char * dxf_attdef_get_material (DxfAttdef *attdef)
 Get the pointer to the material from a DXF ATTDEF entity.
DxfAttdefdxf_attdef_set_material (DxfAttdef *attdef, char *material)
 Set the pointer to the material for a DXF ATTDEF entity.
char * dxf_attdef_get_dictionary_owner_hard (DxfAttdef *attdef)
 Get the hard pointer to the dictionary owner from a DXF ATTDEF entity.
DxfAttdefdxf_attdef_set_dictionary_owner_hard (DxfAttdef *attdef, char *dictionary_owner_hard)
 Set the pointer to the dictionary_owner_hard for a DXF ATTDEF entity.
int16_t dxf_attdef_get_lineweight (DxfAttdef *attdef)
 Get the lineweight from a DXF ATTDEF entity.
DxfAttdefdxf_attdef_set_lineweight (DxfAttdef *attdef, int16_t lineweight)
 Set the lineweight for a DXF ATTDEF entity.
char * dxf_attdef_get_plot_style_name (DxfAttdef *attdef)
 Get the plot_style_name from a DXF ATTDEF entity.
DxfAttdefdxf_attdef_set_plot_style_name (DxfAttdef *attdef, char *plot_style_name)
 Set the plot_style_name for a DXF ATTDEF entity.
long dxf_attdef_get_color_value (DxfAttdef *attdef)
 Get the color_value from a DXF ATTDEF entity.
DxfAttdefdxf_attdef_set_color_value (DxfAttdef *attdef, long color_value)
 Set the color_value for a DXF ATTDEF entity.
char * dxf_attdef_get_color_name (DxfAttdef *attdef)
 Get the color_name from a DXF ATTDEF entity.
DxfAttdefdxf_attdef_set_color_name (DxfAttdef *attdef, char *color_name)
 Set the color_name for a DXF ATTDEF entity.
long dxf_attdef_get_transparency (DxfAttdef *attdef)
 Get the transparency from a DXF ATTDEF entity.
DxfAttdefdxf_attdef_set_transparency (DxfAttdef *attdef, long transparency)
 Set the transparency for a DXF ATTDEF entity.
char * dxf_attdef_get_default_value (DxfAttdef *attdef)
 Get the default value from a DXF ATTDEF entity.
DxfAttdefdxf_attdef_set_default_value (DxfAttdef *attdef, char *default_value)
 Set the default value for a DXF ATTDEF entity.
char * dxf_attdef_get_tag_value (DxfAttdef *attdef)
 Get the tag value from a DXF ATTDEF entity.
DxfAttdefdxf_attdef_set_tag_value (DxfAttdef *attdef, char *tag_value)
 Set the tag value for a DXF ATTDEF entity.
char * dxf_attdef_get_prompt_value (DxfAttdef *attdef)
 Get the promp value from a DXF ATTDEF entity.
DxfAttdefdxf_attdef_set_prompt_value (DxfAttdef *attdef, char *prompt_value)
 Set the prompt value for a DXF ATTDEF entity.
char * dxf_attdef_get_text_style (DxfAttdef *attdef)
 Get the text style from a DXF ATTDEF entity.
DxfAttdefdxf_attdef_set_text_style (DxfAttdef *attdef, char *text_style)
 Set the text style for a DXF ATTDEF entity.
DxfPointdxf_attdef_get_p0 (DxfAttdef *attdef)
 Get the first alignment point p0 of a DXF ATTDEF entity.
DxfAttdefdxf_attdef_set_p0 (DxfAttdef *attdef, DxfPoint *p0)
 Set the first alignment point p0 of a DXF ATTDEF entity.
double dxf_attdef_get_x0 (DxfAttdef *attdef)
 Get the X-value of the first alignment point x0 of a DXF ATTDEF entity.
DxfAttdefdxf_attdef_set_x0 (DxfAttdef *attdef, double x0)
 Set the X-value of the first alignment point x0 of a DXF ATTDEF entity.
double dxf_attdef_get_y0 (DxfAttdef *attdef)
 Get the Y-value of the first alignment point y0 of a DXF ATTDEF entity.
DxfAttdefdxf_attdef_set_y0 (DxfAttdef *attdef, double y0)
 Set the Y-value of the first alignment point y0 of a DXF ATTDEF entity.
double dxf_attdef_get_z0 (DxfAttdef *attdef)
 Get the Z-value of the first alignment point z0 of a DXF ATTDEF entity.
DxfAttdefdxf_attdef_set_z0 (DxfAttdef *attdef, double z0)
 Set the Z-value of the first alignment point z0 of a DXF ATTDEF entity.
DxfPointdxf_attdef_get_p1 (DxfAttdef *attdef)
 Get the second alignment point p1 of a DXF ATTDEF entity.
DxfAttdefdxf_attdef_set_p1 (DxfAttdef *attdef, DxfPoint *p1)
 Set the second alignment point p1 of a DXF ATTDEF entity.
double dxf_attdef_get_x1 (DxfAttdef *attdef)
 Get the X-value of the second alignment point x1 of a DXF ATTDEF entity.
DxfAttdefdxf_attdef_set_x1 (DxfAttdef *attdef, double x1)
 Set the X-value of the second alignment point x1 of a DXF ATTDEF entity.
double dxf_attdef_get_y1 (DxfAttdef *attdef)
 Get the Y-value of the second alignment point y1 of a DXF ATTDEF entity.
DxfAttdefdxf_attdef_set_y1 (DxfAttdef *attdef, double y1)
 Set the Y-value of the second alignment point y1 of a DXF ATTDEF entity.
double dxf_attdef_get_z1 (DxfAttdef *attdef)
 Get the Z-value of the second alignment point z1 of a DXF ATTDEF entity.
DxfAttdefdxf_attdef_set_z1 (DxfAttdef *attdef, double z1)
 Set the Z-value of the second alignment point z1 of a DXF ATTDEF entity.
double dxf_attdef_get_height (DxfAttdef *attdef)
 Get the height from a DXF ATTDEF entity.
DxfAttdefdxf_attdef_set_height (DxfAttdef *attdef, double height)
 Set the height for a DXF ATTDEF entity.
double dxf_attdef_get_rel_x_scale (DxfAttdef *attdef)
 Get the relative X scale from a DXF ATTDEF entity.
DxfAttdefdxf_attdef_set_rel_x_scale (DxfAttdef *attdef, double rel_x_scale)
 Set the relative X scale for a DXF ATTDEF entity.
double dxf_attdef_get_rot_angle (DxfAttdef *attdef)
 Get the rotation angle from a DXF ATTDEF entity.
DxfAttdefdxf_attdef_set_rot_angle (DxfAttdef *attdef, double rot_angle)
 Set the rotation angle for a DXF ATTDEF entity.
double dxf_attdef_get_obl_angle (DxfAttdef *attdef)
 Get the oblique angle from a DXF ATTDEF entity.
DxfAttdefdxf_attdef_set_obl_angle (DxfAttdef *attdef, double obl_angle)
 Set the oblique angle for a DXF ATTDEF entity.
int dxf_attdef_get_attr_flags (DxfAttdef *attdef)
 Get the attribute flags from a DXF ATTDEF entity.
DxfAttdefdxf_attdef_set_attr_flags (DxfAttdef *attdef, int attr_flags)
 Set the attribute flags for a DXF ATTDEF entity.
int dxf_attdef_is_invisible (DxfAttdef *attdef)
 Test if the attribute definition is invisible.
int dxf_attdef_is_constant (DxfAttdef *attdef)
 Test if the attribute definition is a constant attribute.
int dxf_attdef_is_verification_required (DxfAttdef *attdef)
 Test if the attribute definition input needs to be verified.
int dxf_attdef_is_preset (DxfAttdef *attdef)
 Test if the attribute definition is preset (no prompt during insertion).
int dxf_attdef_get_text_flags (DxfAttdef *attdef)
 Get the text flags from a DXF ATTDEF entity.
DxfAttdefdxf_attdef_set_text_flags (DxfAttdef *attdef, int text_flags)
 Set the text flags for a DXF ATTDEF entity.
int dxf_attdef_get_hor_align (DxfAttdef *attdef)
 Get the horizontal alignment from a DXF ATTDEF entity.
DxfAttdefdxf_attdef_set_hor_align (DxfAttdef *attdef, int hor_align)
 Set the horizontal alignment for a DXF ATTDEF entity.
int dxf_attdef_get_field_length (DxfAttdef *attdef)
 Get the field length from a DXF ATTDEF entity.
DxfAttdefdxf_attdef_set_field_length (DxfAttdef *attdef, int field_length)
 Set the field length for a DXF ATTDEF entity.
int dxf_attdef_get_vert_align (DxfAttdef *attdef)
 Get the vertical text alignment from a DXF ATTDEF entity.
DxfAttdefdxf_attdef_set_vert_align (DxfAttdef *attdef, int vert_align)
 Set the vertical text alignment for a DXF ATTDEF entity.
double dxf_attdef_get_extr_x0 (DxfAttdef *attdef)
 Get the X-value of the extrusion vector of a DXF ATTDEF entity.
DxfAttdefdxf_attdef_set_extr_x0 (DxfAttdef *attdef, double extr_x0)
 Set the X-value of the extrusion vector of a DXF ATTDEF entity.
double dxf_attdef_get_extr_y0 (DxfAttdef *attdef)
 Get the Y-value of the extrusion vector of a DXF ATTDEF entity.
DxfAttdefdxf_attdef_set_extr_y0 (DxfAttdef *attdef, double extr_y0)
 Set the Y-value of the extrusion vector of a DXF ATTDEF entity.
double dxf_attdef_get_extr_z0 (DxfAttdef *attdef)
 Get the Z-value of the extrusion vector of a DXF ATTDEF entity.
DxfAttdefdxf_attdef_set_extr_z0 (DxfAttdef *attdef, double extr_z0)
 Set the Z-value of the extrusion vector of a DXF ATTDEF entity.
DxfPointdxf_attdef_get_extrusion_vector_as_point (DxfAttdef *attdef)
 Get the extrusion vector as a DXF POINT entity from a DXF ATTDEF entity.
DxfAttdefdxf_attdef_set_extrusion_vector_from_point (DxfAttdef *attdef, DxfPoint *point)
 Set the extrusion vector from a DXF POINT for a DXF ATTDEF entity.
DxfAttdefdxf_attdef_set_extrusion_vector (DxfAttdef *attdef, double extr_x0, double extr_y0, double extr_z0)
 Set the extrusion vector for a DXF ATTDEF entity.
DxfAttdefdxf_attdef_get_next (DxfAttdef *attdef)
 Get the pointer to the next ATTDEF entity from a DXF ATTDEF entity.
DxfAttdefdxf_attdef_set_next (DxfAttdef *attdef, DxfAttdef *next)
 Set the pointer to the next ATTDEF for a DXF ATTDEF entity.
DxfAttdefdxf_attdef_get_last (DxfAttdef *attdef)
 Get the pointer to the last ATTDEF entity from a linked list DXF of ATTDEF entities.

Detailed Description

Header file for a DXF attribute definition entity (ATTDEF).

Author:
Copyright (C) 2008, 2010, 2012, 2013, 2014, 2015, 2016, 2017 by Bert Timmerman <bert.timmerman@xs4all.nl>.
Version:
According to DXF R10.
According to DXF R11.
According to DXF R12.
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 attdef.h.


Typedef Documentation

typedef struct dxf_attdef_struct DxfAttdef

DXF definition of an AutoCAD attribute definition entity (ATTDEF).


Function Documentation

DxfAttdef* dxf_attdef_new ( )

Allocate memory for a DxfAttdef.

Fill the memory contents with zeros.

Definition at line 51 of file attdef.c.

References _, DXF_DEBUG_BEGIN, and DXF_DEBUG_END.

Referenced by dxf_attdef_init(), and dxf_attdef_read().

DxfAttdef* dxf_attdef_init ( DxfAttdef attdef)

Allocate memory and initialize data fields in a ATTDEF entity.

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

Definition at line 88 of file attdef.c.

References _, dxf_attdef_get_binary_graphics_data(), dxf_attdef_get_p0(), dxf_attdef_get_p1(), dxf_attdef_new(), dxf_attdef_set_attr_flags(), dxf_attdef_set_binary_graphics_data(), dxf_attdef_set_color(), dxf_attdef_set_color_name(), dxf_attdef_set_color_value(), dxf_attdef_set_default_value(), dxf_attdef_set_dictionary_owner_hard(), dxf_attdef_set_dictionary_owner_soft(), dxf_attdef_set_elevation(), dxf_attdef_set_extr_x0(), dxf_attdef_set_extr_y0(), dxf_attdef_set_extr_z0(), dxf_attdef_set_field_length(), dxf_attdef_set_graphics_data_size(), dxf_attdef_set_height(), dxf_attdef_set_hor_align(), dxf_attdef_set_id_code(), dxf_attdef_set_layer(), dxf_attdef_set_linetype(), dxf_attdef_set_linetype_scale(), dxf_attdef_set_lineweight(), dxf_attdef_set_material(), dxf_attdef_set_next(), dxf_attdef_set_obl_angle(), dxf_attdef_set_p0(), dxf_attdef_set_p1(), dxf_attdef_set_paperspace(), dxf_attdef_set_plot_style_name(), dxf_attdef_set_prompt_value(), dxf_attdef_set_rel_x_scale(), dxf_attdef_set_rot_angle(), dxf_attdef_set_shadow_mode(), dxf_attdef_set_tag_value(), dxf_attdef_set_text_flags(), dxf_attdef_set_text_style(), dxf_attdef_set_thickness(), dxf_attdef_set_transparency(), dxf_attdef_set_vert_align(), dxf_attdef_set_visibility(), dxf_attdef_set_x0(), dxf_attdef_set_x1(), dxf_attdef_set_y0(), dxf_attdef_set_y1(), dxf_attdef_set_z0(), dxf_attdef_set_z1(), 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_TEXTSTYLE, DXF_DEFAULT_VISIBILITY, DXF_MODELSPACE, dxf_point_init(), and dxf_point_new().

Referenced by dxf_attdef_read().

Here is the call graph for this function:

DxfAttdef* dxf_attdef_read ( DxfFile fp,
DxfAttdef attdef 
)

Read data from a DXF file into an ATTDEF entity.

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

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

Definition at line 179 of file attdef.c.

References _, dxf_file_struct::acad_version_number, dxf_attdef_struct::attr_flags, AutoCAD_11, AutoCAD_13, dxf_attdef_struct::color, dxf_attdef_struct::default_value, dxf_attdef_struct::dictionary_owner_hard, dxf_attdef_struct::dictionary_owner_soft, dxf_attdef_get_layer(), dxf_attdef_get_linetype(), dxf_attdef_init(), dxf_attdef_new(), dxf_attdef_set_layer(), dxf_attdef_set_linetype(), DXF_DEBUG_BEGIN, DXF_DEBUG_END, DXF_DEFAULT_LAYER, DXF_DEFAULT_LINETYPE, dxf_attdef_struct::elevation, dxf_attdef_struct::extr_x0, dxf_attdef_struct::extr_y0, dxf_attdef_struct::extr_z0, dxf_attdef_struct::field_length, dxf_file_struct::filename, dxf_file_struct::fp, dxf_attdef_struct::height, dxf_attdef_struct::hor_align, dxf_attdef_struct::id_code, dxf_attdef_struct::layer, dxf_file_struct::line_number, dxf_attdef_struct::linetype, dxf_attdef_struct::linetype_scale, dxf_attdef_struct::obl_angle, dxf_attdef_struct::p0, dxf_attdef_struct::p1, dxf_attdef_struct::paperspace, dxf_attdef_struct::prompt_value, dxf_attdef_struct::rel_x_scale, dxf_attdef_struct::rot_angle, dxf_attdef_struct::tag_value, dxf_attdef_struct::text_flags, dxf_attdef_struct::text_style, dxf_attdef_struct::thickness, dxf_attdef_struct::vert_align, dxf_attdef_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_attdef_write ( DxfFile fp,
DxfAttdef attdef 
)

Write DXF output to fp for a attribute definition entity.

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).
attdefattribute definition entity.

Definition at line 512 of file attdef.c.

References _, dxf_file_struct::acad_version_number, AutoCAD_12, AutoCAD_13, AutoCAD_14, dxf_attdef_get_attr_flags(), dxf_attdef_get_color(), dxf_attdef_get_default_value(), dxf_attdef_get_dictionary_owner_hard(), dxf_attdef_get_dictionary_owner_soft(), dxf_attdef_get_extr_x0(), dxf_attdef_get_extr_y0(), dxf_attdef_get_extr_z0(), dxf_attdef_get_field_length(), dxf_attdef_get_height(), dxf_attdef_get_hor_align(), dxf_attdef_get_id_code(), dxf_attdef_get_layer(), dxf_attdef_get_linetype(), dxf_attdef_get_linetype_scale(), dxf_attdef_get_obl_angle(), dxf_attdef_get_prompt_value(), dxf_attdef_get_rel_x_scale(), dxf_attdef_get_rot_angle(), dxf_attdef_get_tag_value(), dxf_attdef_get_text_flags(), dxf_attdef_get_text_style(), dxf_attdef_get_thickness(), dxf_attdef_get_vert_align(), dxf_attdef_get_visibility(), dxf_attdef_get_x0(), dxf_attdef_get_x1(), dxf_attdef_get_y0(), dxf_attdef_get_y1(), dxf_attdef_get_z0(), dxf_attdef_get_z1(), dxf_attdef_set_height(), dxf_attdef_set_hor_align(), dxf_attdef_set_layer(), dxf_attdef_set_linetype(), dxf_attdef_set_rel_x_scale(), dxf_attdef_set_text_style(), dxf_attdef_set_vert_align(), DXF_COLOR_BYLAYER, DXF_DEBUG_BEGIN, DXF_DEBUG_END, DXF_DEFAULT_LAYER, DXF_DEFAULT_LINETYPE, DXF_DEFAULT_TEXTSTYLE, DXF_PAPERSPACE, dxf_file_struct::fp, and dxf_attdef_struct::paperspace.

Here is the call graph for this function:

int dxf_attdef_free ( DxfAttdef attdef)

Free the allocate memory for a DXF ATTDEF and all it's data fields.

Returns:
EXIT_SUCCESS when done, or EXIT_FAILURE when an error occurred.
Parameters:
attdefDXF ATTDEF entity.

Definition at line 755 of file attdef.c.

References _, dxf_attdef_struct::default_value, dxf_attdef_struct::dictionary_owner_hard, dxf_attdef_struct::dictionary_owner_soft, DXF_DEBUG_BEGIN, DXF_DEBUG_END, dxf_attdef_struct::layer, dxf_attdef_struct::linetype, dxf_attdef_struct::next, dxf_attdef_struct::prompt_value, dxf_attdef_struct::tag_value, and dxf_attdef_struct::text_style.

Referenced by dxf_attdef_free_chain().

void dxf_attdef_free_chain ( DxfAttdef attdefs)

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

Parameters:
attdefspointer to the chain of DXF ATTDEF entities.

Definition at line 800 of file attdef.c.

References _, dxf_attdef_free(), DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_attdef_struct::next.

Here is the call graph for this function:

int dxf_attdef_get_id_code ( DxfAttdef attdef)

Get the ID code from a DXF ATTDEF entity.

Returns:
ID code.
Parameters:
attdefa pointer to a DXF ATTDEF entity.

Definition at line 833 of file attdef.c.

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

Referenced by dxf_attdef_write().

DxfAttdef* dxf_attdef_set_id_code ( DxfAttdef attdef,
int  id_code 
)

Set the ID code for a DXF ATTDEF entity.

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

Definition at line 868 of file attdef.c.

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

Referenced by dxf_attdef_init().

char* dxf_attdef_get_linetype ( DxfAttdef attdef)

Get the linetype from a DXF ATTDEF entity.

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

Definition at line 910 of file attdef.c.

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

Referenced by dxf_attdef_read(), and dxf_attdef_write().

DxfAttdef* dxf_attdef_set_linetype ( DxfAttdef attdef,
char *  linetype 
)

Set the linetype for a DXF ATTDEF entity.

Parameters:
attdefa pointer to a DXF ATTDEF entity.
linetypea string containing the linetype for the entity.

Definition at line 945 of file attdef.c.

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

Referenced by dxf_attdef_init(), dxf_attdef_read(), and dxf_attdef_write().

char* dxf_attdef_get_layer ( DxfAttdef attdef)

Get the layer from a DXF ATTDEF entity.

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

Definition at line 985 of file attdef.c.

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

Referenced by dxf_attdef_read(), and dxf_attdef_write().

DxfAttdef* dxf_attdef_set_layer ( DxfAttdef attdef,
char *  layer 
)

Set the layer for a DXF ATTDEF entity.

Parameters:
attdefa pointer to a DXF ATTDEF entity.
layera string containing the layer for the entity.

Definition at line 1020 of file attdef.c.

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

Referenced by dxf_attdef_init(), dxf_attdef_read(), and dxf_attdef_write().

double dxf_attdef_get_elevation ( DxfAttdef attdef)

Get the elevation from a DXF ATTDEF entity.

Returns:
elevation.
Parameters:
attdefa pointer to a DXF ATTDEF entity.

Definition at line 1060 of file attdef.c.

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

DxfAttdef* dxf_attdef_set_elevation ( DxfAttdef attdef,
double  elevation 
)

Set the elevation for a DXF ATTDEF entity.

Parameters:
attdefa pointer to a DXF ATTDEF entity.
elevationthe elevation to be set for the entity.

Definition at line 1088 of file attdef.c.

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

Referenced by dxf_attdef_init().

double dxf_attdef_get_thickness ( DxfAttdef attdef)

Get the thickness from a DXF ATTDEF entity.

Returns:
thickness.
Parameters:
attdefa pointer to a DXF ATTDEF entity.

Definition at line 1121 of file attdef.c.

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

Referenced by dxf_attdef_write().

DxfAttdef* dxf_attdef_set_thickness ( DxfAttdef attdef,
double  thickness 
)

Set the thickness for a DXF ATTDEF entity.

Parameters:
attdefa pointer to a DXF ATTDEF entity.
thicknessthe thickness to be set for the entity.

Definition at line 1156 of file attdef.c.

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

Referenced by dxf_attdef_init().

double dxf_attdef_get_linetype_scale ( DxfAttdef attdef)

Get the linetype scale from a DXF ATTDEF entity.

Returns:
linetype scale.
Parameters:
attdefa pointer to a DXF ATTDEF entity.

Definition at line 1196 of file attdef.c.

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

Referenced by dxf_attdef_write().

DxfAttdef* dxf_attdef_set_linetype_scale ( DxfAttdef attdef,
double  linetype_scale 
)

Set the linetype scale for a DXF ATTDEF entity.

Parameters:
attdefa pointer to a DXF ATTDEF entity.
linetype_scalethe linetype scale to be set for the entity.

Definition at line 1231 of file attdef.c.

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

Referenced by dxf_attdef_init().

int16_t dxf_attdef_get_visibility ( DxfAttdef attdef)

Get the visibility from a DXF ATTDEF entity.

Returns:
visibility.
Parameters:
attdefa pointer to a DXF ATTDEF entity.

Definition at line 1271 of file attdef.c.

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

Referenced by dxf_attdef_write().

DxfAttdef* dxf_attdef_set_visibility ( DxfAttdef attdef,
int16_t  visibility 
)

Set the visibility for a DXF ATTDEF entity.

Parameters:
attdefa pointer to a DXF ATTDEF entity.
visibilitythe visibility to be set for the entity.

Definition at line 1313 of file attdef.c.

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

Referenced by dxf_attdef_init().

int dxf_attdef_get_color ( DxfAttdef attdef)

Get the color from a DXF ATTDEF entity.

Returns:
color.
Parameters:
attdefa pointer to a DXF ATTDEF entity.

Definition at line 1360 of file attdef.c.

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

Referenced by dxf_attdef_write().

DxfAttdef* dxf_attdef_set_color ( DxfAttdef attdef,
int  color 
)

Set the color for a DXF ATTDEF entity.

Parameters:
attdefa pointer to a DXF ATTDEF entity.
colorthe color to be set for the entity.

Definition at line 1394 of file attdef.c.

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

Referenced by dxf_attdef_init().

int dxf_attdef_get_paperspace ( DxfAttdef attdef)

Get the paperspace flag value from a DXF ATTDEF entity.

Returns:
paperspace flag value.
Parameters:
attdefa pointer to a DXF ATTDEF entity.

Definition at line 1433 of file attdef.c.

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

DxfAttdef* dxf_attdef_set_paperspace ( DxfAttdef attdef,
int  paperspace 
)

Set the paperspace flag for a DXF ATTDEF entity.

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

Definition at line 1473 of file attdef.c.

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

Referenced by dxf_attdef_init().

int dxf_attdef_get_graphics_data_size ( DxfAttdef attdef)

Get the graphics_data_size value from a DXF ATTDEF entity.

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

Definition at line 1522 of file attdef.c.

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

DxfAttdef* dxf_attdef_set_graphics_data_size ( DxfAttdef attdef,
int  graphics_data_size 
)

Set the graphics_data_size value for a DXF ATTDEF entity.

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

Definition at line 1566 of file attdef.c.

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

Referenced by dxf_attdef_init().

int16_t dxf_attdef_get_shadow_mode ( DxfAttdef attdef)

Get the shadow_mode from a DXF ATTDEF entity.

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

Definition at line 1614 of file attdef.c.

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

DxfAttdef* dxf_attdef_set_shadow_mode ( DxfAttdef attdef,
int16_t  shadow_mode 
)

Set the shadow_mode for a DXF ATTDEF entity.

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

Definition at line 1659 of file attdef.c.

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

Referenced by dxf_attdef_init().

DxfBinaryGraphicsData* dxf_attdef_get_binary_graphics_data ( DxfAttdef attdef)

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

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

Definition at line 1709 of file attdef.c.

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

Referenced by dxf_attdef_init().

DxfAttdef* dxf_attdef_set_binary_graphics_data ( DxfAttdef attdef,
DxfBinaryGraphicsData data 
)

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

Parameters:
attdefa pointer to a DXF ATTDEF entity.
dataa string containing the pointer to the binary_graphics_data for the entity.

Definition at line 1745 of file attdef.c.

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

Referenced by dxf_attdef_init().

char* dxf_attdef_get_dictionary_owner_soft ( DxfAttdef attdef)

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

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

Definition at line 1789 of file attdef.c.

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

Referenced by dxf_attdef_write().

DxfAttdef* dxf_attdef_set_dictionary_owner_soft ( DxfAttdef attdef,
char *  dictionary_owner_soft 
)

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

Parameters:
attdefa pointer to a DXF ATTDEF entity.
dictionary_owner_softa string containing the pointer to the dictionary_owner_soft for the entity.

Definition at line 1825 of file attdef.c.

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

Referenced by dxf_attdef_init().

char* dxf_attdef_get_material ( DxfAttdef attdef)

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

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

Definition at line 1869 of file attdef.c.

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

DxfAttdef* dxf_attdef_set_material ( DxfAttdef attdef,
char *  material 
)

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

Returns:
a pointer to attdef when successful, or NULL when an error occurred.
Parameters:
attdefa pointer to a DXF ATTDEF entity.
materiala string containing the pointer to the material for the entity.

Definition at line 1907 of file attdef.c.

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

Referenced by dxf_attdef_init().

char* dxf_attdef_get_dictionary_owner_hard ( DxfAttdef attdef)

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

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

Definition at line 1951 of file attdef.c.

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

Referenced by dxf_attdef_write().

DxfAttdef* dxf_attdef_set_dictionary_owner_hard ( DxfAttdef attdef,
char *  dictionary_owner_hard 
)

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

Parameters:
attdefa pointer to a DXF ATTDEF entity.
dictionary_owner_harda string containing the pointer to the dictionary_owner_hard for the entity.

Definition at line 1987 of file attdef.c.

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

Referenced by dxf_attdef_init().

int16_t dxf_attdef_get_lineweight ( DxfAttdef attdef)

Get the lineweight from a DXF ATTDEF entity.

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

Definition at line 2029 of file attdef.c.

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

DxfAttdef* dxf_attdef_set_lineweight ( DxfAttdef attdef,
int16_t  lineweight 
)

Set the lineweight for a DXF ATTDEF entity.

Returns:
a pointer to attdef when successful, or NULL when an error occurred.
Parameters:
attdefa pointer to a DXF ATTDEF entity.
lineweightthe lineweight to be set for the entity.

Definition at line 2060 of file attdef.c.

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

Referenced by dxf_attdef_init().

char* dxf_attdef_get_plot_style_name ( DxfAttdef attdef)

Get the plot_style_name from a DXF ATTDEF entity.

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

Definition at line 2094 of file attdef.c.

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

DxfAttdef* dxf_attdef_set_plot_style_name ( DxfAttdef attdef,
char *  plot_style_name 
)

Set the plot_style_name for a DXF ATTDEF entity.

Returns:
a pointer to attdef when successful, or NULL when an error occurred.
Parameters:
attdefa pointer to a DXF ATTDEF entity.
plot_style_namea string containing the plot_style_name for the entity.

Definition at line 2132 of file attdef.c.

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

Referenced by dxf_attdef_init().

long dxf_attdef_get_color_value ( DxfAttdef attdef)

Get the color_value from a DXF ATTDEF entity.

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

Definition at line 2174 of file attdef.c.

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

DxfAttdef* dxf_attdef_set_color_value ( DxfAttdef attdef,
long  color_value 
)

Set the color_value for a DXF ATTDEF entity.

Returns:
a pointer to attdef when successful, or NULL when an error occurred.
Parameters:
attdefa pointer to a DXF ATTDEF entity.
color_valuethe color_value to be set for the entity.

Definition at line 2205 of file attdef.c.

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

Referenced by dxf_attdef_init().

char* dxf_attdef_get_color_name ( DxfAttdef attdef)

Get the color_name from a DXF ATTDEF entity.

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

Definition at line 2239 of file attdef.c.

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

DxfAttdef* dxf_attdef_set_color_name ( DxfAttdef attdef,
char *  color_name 
)

Set the color_name for a DXF ATTDEF entity.

Returns:
a pointer to attdef when successful, or NULL when an error occurred.
Parameters:
attdefa pointer to a DXF ATTDEF entity.
color_namea string containing the color_name for the entity.

Definition at line 2277 of file attdef.c.

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

Referenced by dxf_attdef_init().

long dxf_attdef_get_transparency ( DxfAttdef attdef)

Get the transparency from a DXF ATTDEF entity.

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

Definition at line 2319 of file attdef.c.

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

DxfAttdef* dxf_attdef_set_transparency ( DxfAttdef attdef,
long  transparency 
)

Set the transparency for a DXF ATTDEF entity.

Returns:
a pointer to attdef when successful, or NULL when an error occurred.
Parameters:
attdefa pointer to a DXF ATTDEF entity.
transparencythe transparency to be set for the entity.

Definition at line 2350 of file attdef.c.

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

Referenced by dxf_attdef_init().

char* dxf_attdef_get_default_value ( DxfAttdef attdef)

Get the default value from a DXF ATTDEF entity.

Returns:
default value.
Warning:
No checks are performed on the returned pointer (string).
Parameters:
attdefa pointer to a DXF ATTDEF entity.

Definition at line 2385 of file attdef.c.

References _, dxf_attdef_struct::default_value, DXF_DEBUG_BEGIN, and DXF_DEBUG_END.

Referenced by dxf_attdef_write().

DxfAttdef* dxf_attdef_set_default_value ( DxfAttdef attdef,
char *  default_value 
)

Set the default value for a DXF ATTDEF entity.

Parameters:
attdefa pointer to a DXF ATTDEF entity.
default_valuea string containing the default_value for the entity.

Definition at line 2420 of file attdef.c.

References _, dxf_attdef_struct::default_value, DXF_DEBUG_BEGIN, and DXF_DEBUG_END.

Referenced by dxf_attdef_init().

char* dxf_attdef_get_tag_value ( DxfAttdef attdef)

Get the tag value from a DXF ATTDEF entity.

Returns:
tag value.
Warning:
No checks are performed on the returned pointer (string).
Parameters:
attdefa pointer to a DXF ATTDEF entity.

Definition at line 2463 of file attdef.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_attdef_struct::tag_value.

Referenced by dxf_attdef_write().

DxfAttdef* dxf_attdef_set_tag_value ( DxfAttdef attdef,
char *  tag_value 
)

Set the tag value for a DXF ATTDEF entity.

Parameters:
attdefa pointer to a DXF ATTDEF entity.
tag_valuea string containing the tag_value for the entity.

Definition at line 2498 of file attdef.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_attdef_struct::tag_value.

Referenced by dxf_attdef_init().

char* dxf_attdef_get_prompt_value ( DxfAttdef attdef)

Get the promp value from a DXF ATTDEF entity.

Returns:
prompt value.
Warning:
No checks are performed on the returned pointer (string).
Parameters:
attdefa pointer to a DXF ATTDEF entity.

Definition at line 2541 of file attdef.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_attdef_struct::prompt_value.

Referenced by dxf_attdef_write().

DxfAttdef* dxf_attdef_set_prompt_value ( DxfAttdef attdef,
char *  prompt_value 
)

Set the prompt value for a DXF ATTDEF entity.

Parameters:
attdefa pointer to a DXF ATTDEF entity.
prompt_valuea string containing the prompt_value for the entity.

Definition at line 2576 of file attdef.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_attdef_struct::prompt_value.

Referenced by dxf_attdef_init().

char* dxf_attdef_get_text_style ( DxfAttdef attdef)

Get the text style from a DXF ATTDEF entity.

Returns:
text style.
Warning:
No checks are performed on the returned pointer (string).
Parameters:
attdefa pointer to a DXF ATTDEF entity.

Definition at line 2619 of file attdef.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_attdef_struct::text_style.

Referenced by dxf_attdef_write().

DxfAttdef* dxf_attdef_set_text_style ( DxfAttdef attdef,
char *  text_style 
)

Set the text style for a DXF ATTDEF entity.

Parameters:
attdefa pointer to a DXF ATTDEF entity.
text_stylea string containing the text style for the entity.

Definition at line 2654 of file attdef.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_attdef_struct::text_style.

Referenced by dxf_attdef_init(), and dxf_attdef_write().

DxfPoint* dxf_attdef_get_p0 ( DxfAttdef attdef)

Get the first alignment point p0 of a DXF ATTDEF entity.

Returns:
the first alignment point p0.
Parameters:
attdefa pointer to a DXF ATTDEF entity.

Definition at line 2695 of file attdef.c.

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

Referenced by dxf_attdef_init().

DxfAttdef* dxf_attdef_set_p0 ( DxfAttdef attdef,
DxfPoint p0 
)

Set the first alignment point p0 of a DXF ATTDEF entity.

Returns:
a pointer to attdef when successful, NULL when an error occurred.
Parameters:
attdefa pointer to a DXF ATTDEF entity.
p0a pointer to a DXF POINT entity.

Definition at line 2733 of file attdef.c.

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

Referenced by dxf_attdef_init().

double dxf_attdef_get_x0 ( DxfAttdef attdef)

Get the X-value of the first alignment point x0 of a DXF ATTDEF entity.

Returns:
the X-value of the first alignment point x0.
Parameters:
attdefa pointer to a DXF ATTDEF entity.

Definition at line 2774 of file attdef.c.

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

Referenced by dxf_attdef_write().

DxfAttdef* dxf_attdef_set_x0 ( DxfAttdef attdef,
double  x0 
)

Set the X-value of the first alignment point x0 of a DXF ATTDEF entity.

Returns:
a pointer to attdef when successful, or NULL when an error occurred.
Parameters:
attdefa pointer to a DXF ATTDEF entity.
x0the X-value of the first alignment point x0 of a DXF ATTDEF entity.

Definition at line 2814 of file attdef.c.

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

Referenced by dxf_attdef_init().

double dxf_attdef_get_y0 ( DxfAttdef attdef)

Get the Y-value of the first alignment point y0 of a DXF ATTDEF entity.

Returns:
the Y-value of the first alignment point y0.
Parameters:
attdefa pointer to a DXF ATTDEF entity.

Definition at line 2856 of file attdef.c.

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

Referenced by dxf_attdef_write().

DxfAttdef* dxf_attdef_set_y0 ( DxfAttdef attdef,
double  y0 
)

Set the Y-value of the first alignment point y0 of a DXF ATTDEF entity.

Returns:
a pointer to attdef when successful, or NULL when an error occurred.
Parameters:
attdefa pointer to a DXF ATTDEF entity.
y0the Y-value of the first alignment point y0 of a DXF ATTDEF entity.

Definition at line 2896 of file attdef.c.

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

Referenced by dxf_attdef_init().

double dxf_attdef_get_z0 ( DxfAttdef attdef)

Get the Z-value of the first alignment point z0 of a DXF ATTDEF entity.

Returns:
the Z-value of the first alignment point z0.
Parameters:
attdefa pointer to a DXF ATTDEF entity.

Definition at line 2938 of file attdef.c.

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

Referenced by dxf_attdef_write().

DxfAttdef* dxf_attdef_set_z0 ( DxfAttdef attdef,
double  z0 
)

Set the Z-value of the first alignment point z0 of a DXF ATTDEF entity.

Returns:
a pointer to attdef when successful, or NULL when an error occurred.
Parameters:
attdefa pointer to a DXF ATTDEF entity.
z0the Z-value of the fisrt alignment point z0 of a DXF ATTDEF entity.

Definition at line 2978 of file attdef.c.

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

Referenced by dxf_attdef_init().

DxfPoint* dxf_attdef_get_p1 ( DxfAttdef attdef)

Get the second alignment point p1 of a DXF ATTDEF entity.

Returns:
the second alignment point p1.
Parameters:
attdefa pointer to a DXF ATTDEF entity.

Definition at line 3019 of file attdef.c.

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

Referenced by dxf_attdef_init().

DxfAttdef* dxf_attdef_set_p1 ( DxfAttdef attdef,
DxfPoint p1 
)

Set the second alignment point p1 of a DXF ATTDEF entity.

Returns:
a pointer to attdef when successful, NULL when an error occurred.
Parameters:
attdefa pointer to a DXF ATTDEF entity.
p1a pointer to a DXF POINT entity.

Definition at line 3057 of file attdef.c.

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

Referenced by dxf_attdef_init().

double dxf_attdef_get_x1 ( DxfAttdef attdef)

Get the X-value of the second alignment point x1 of a DXF ATTDEF entity.

Returns:
the X-value of the second alignment point x1.
Parameters:
attdefa pointer to a DXF ATTDEF entity.

Definition at line 3098 of file attdef.c.

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

Referenced by dxf_attdef_write().

DxfAttdef* dxf_attdef_set_x1 ( DxfAttdef attdef,
double  x1 
)

Set the X-value of the second alignment point x1 of a DXF ATTDEF entity.

Returns:
a pointer to attdef when successful, or NULL when an error occurred.
Parameters:
attdefa pointer to a DXF ATTDEF entity.
x1the X-value of the second alignment point x0 of a DXF ATTDEF entity.

Definition at line 3138 of file attdef.c.

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

Referenced by dxf_attdef_init().

double dxf_attdef_get_y1 ( DxfAttdef attdef)

Get the Y-value of the second alignment point y1 of a DXF ATTDEF entity.

Returns:
the Y-value of the second alignment point y1.
Parameters:
attdefa pointer to a DXF ATTDEF entity.

Definition at line 3180 of file attdef.c.

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

Referenced by dxf_attdef_write().

DxfAttdef* dxf_attdef_set_y1 ( DxfAttdef attdef,
double  y1 
)

Set the Y-value of the second alignment point y1 of a DXF ATTDEF entity.

Returns:
a pointer to attdef when successful, or NULL when an error occurred.
Parameters:
attdefa pointer to a DXF ATTDEF entity.
y1the Y-value of the second alignment point y1 of a DXF ATTDEF entity.

Definition at line 3220 of file attdef.c.

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

Referenced by dxf_attdef_init().

double dxf_attdef_get_z1 ( DxfAttdef attdef)

Get the Z-value of the second alignment point z1 of a DXF ATTDEF entity.

Returns:
the Z-value of the second alignment point z1.
Parameters:
attdefa pointer to a DXF ATTDEF entity.

Definition at line 3262 of file attdef.c.

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

Referenced by dxf_attdef_write().

DxfAttdef* dxf_attdef_set_z1 ( DxfAttdef attdef,
double  z1 
)

Set the Z-value of the second alignment point z1 of a DXF ATTDEF entity.

Returns:
a pointer to attdef when successful, or NULL when an error occurred.
Parameters:
attdefa pointer to a DXF ATTDEF entity.
z1the Z-value of the second alignment point z0 of a DXF ATTDEF entity.

Definition at line 3302 of file attdef.c.

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

Referenced by dxf_attdef_init().

double dxf_attdef_get_height ( DxfAttdef attdef)

Get the height from a DXF ATTDEF entity.

Returns:
height.
Parameters:
attdefa pointer to a DXF ATTDEF entity.

Definition at line 3343 of file attdef.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_attdef_struct::height.

Referenced by dxf_attdef_write().

DxfAttdef* dxf_attdef_set_height ( DxfAttdef attdef,
double  height 
)

Set the height for a DXF ATTDEF entity.

Parameters:
attdefa pointer to a DXF ATTDEF entity.
heightthe height to be set for the entity.

Definition at line 3378 of file attdef.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_attdef_struct::height.

Referenced by dxf_attdef_init(), and dxf_attdef_write().

double dxf_attdef_get_rel_x_scale ( DxfAttdef attdef)

Get the relative X scale from a DXF ATTDEF entity.

Returns:
relative X scale.
Parameters:
attdefa pointer to a DXF ATTDEF entity.

Definition at line 3418 of file attdef.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, dxf_attdef_struct::height, and dxf_attdef_struct::rel_x_scale.

Referenced by dxf_attdef_write().

DxfAttdef* dxf_attdef_set_rel_x_scale ( DxfAttdef attdef,
double  rel_x_scale 
)

Set the relative X scale for a DXF ATTDEF entity.

Parameters:
attdefa pointer to a DXF ATTDEF entity.
rel_x_scalethe relative X scale to be set for the entity.

Definition at line 3453 of file attdef.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_attdef_struct::rel_x_scale.

Referenced by dxf_attdef_init(), and dxf_attdef_write().

double dxf_attdef_get_rot_angle ( DxfAttdef attdef)

Get the rotation angle from a DXF ATTDEF entity.

Returns:
rotation angle.

Todo:
Unify the rotation angle.

Parameters:
attdefa pointer to a DXF ATTDEF entity.

Definition at line 3486 of file attdef.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_attdef_struct::rot_angle.

Referenced by dxf_attdef_write().

DxfAttdef* dxf_attdef_set_rot_angle ( DxfAttdef attdef,
double  rot_angle 
)

Set the rotation angle for a DXF ATTDEF entity.

Todo:
Unify the rotation angle.

Parameters:
attdefa pointer to a DXF ATTDEF entity.
rot_anglethe rotation angle to be set for the entity.

Definition at line 3515 of file attdef.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_attdef_struct::rot_angle.

Referenced by dxf_attdef_init().

double dxf_attdef_get_obl_angle ( DxfAttdef attdef)

Get the oblique angle from a DXF ATTDEF entity.

Returns:
oblique angle.

Todo:
Unify the oblique angle.

Parameters:
attdefa pointer to a DXF ATTDEF entity.

Definition at line 3549 of file attdef.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_attdef_struct::obl_angle.

Referenced by dxf_attdef_write().

DxfAttdef* dxf_attdef_set_obl_angle ( DxfAttdef attdef,
double  obl_angle 
)

Set the oblique angle for a DXF ATTDEF entity.

Todo:
Unify the oblique angle.

Parameters:
attdefa pointer to a DXF ATTDEF entity.
obl_anglethe oblique angle to be set for the entity.

Definition at line 3578 of file attdef.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_attdef_struct::obl_angle.

Referenced by dxf_attdef_init().

int dxf_attdef_get_attr_flags ( DxfAttdef attdef)

Get the attribute flags from a DXF ATTDEF entity.

Returns:
attribute flags.
Parameters:
attdefa pointer to a DXF ATTDEF entity.

Definition at line 3612 of file attdef.c.

References _, dxf_attdef_struct::attr_flags, DXF_DEBUG_BEGIN, and DXF_DEBUG_END.

Referenced by dxf_attdef_write().

DxfAttdef* dxf_attdef_set_attr_flags ( DxfAttdef attdef,
int  attr_flags 
)

Set the attribute flags for a DXF ATTDEF entity.

Parameters:
attdefa pointer to a DXF ATTDEF entity.
attr_flagsthe attribute flags to be set for the entity.

Definition at line 3654 of file attdef.c.

References _, dxf_attdef_struct::attr_flags, DXF_DEBUG_BEGIN, and DXF_DEBUG_END.

Referenced by dxf_attdef_init().

int dxf_attdef_is_invisible ( DxfAttdef attdef)

Test if the attribute definition is invisible.

Returns:
TRUE when the attribute definition is invisible, or FALSE when the attribute definition is visible.
Parameters:
attdefDXF ATTDEF entity.

Definition at line 3702 of file attdef.c.

References _, dxf_attdef_struct::attr_flags, DXF_CHECK_BIT, DXF_DEBUG_BEGIN, and DXF_DEBUG_END.

int dxf_attdef_is_constant ( DxfAttdef attdef)

Test if the attribute definition is a constant attribute.

Returns:
TRUE when the attribute definition is a constant, or FALSE when the attribute definition is not a constant.
Parameters:
attdefDXF ATTDEF entity.

Definition at line 3733 of file attdef.c.

References _, dxf_attdef_struct::attr_flags, DXF_CHECK_BIT, DXF_DEBUG_BEGIN, and DXF_DEBUG_END.

int dxf_attdef_is_verification_required ( DxfAttdef attdef)

Test if the attribute definition input needs to be verified.

Returns:
TRUE when the input needs to be verified, or FALSE when the input needs not to be verified.
Parameters:
attdefDXF ATTDEF entity.

Definition at line 3764 of file attdef.c.

References _, dxf_attdef_struct::attr_flags, DXF_CHECK_BIT, DXF_DEBUG_BEGIN, and DXF_DEBUG_END.

int dxf_attdef_is_preset ( DxfAttdef attdef)

Test if the attribute definition is preset (no prompt during insertion).

Returns:
TRUE when the attributre definition is preset, or FALSE when the attribute definition is not preset.
Parameters:
attdefDXF ATTDEF entity.

Definition at line 3796 of file attdef.c.

References _, dxf_attdef_struct::attr_flags, DXF_CHECK_BIT, DXF_DEBUG_BEGIN, and DXF_DEBUG_END.

int dxf_attdef_get_text_flags ( DxfAttdef attdef)

Get the text flags from a DXF ATTDEF entity.

Returns:
text flags.
Parameters:
attdefa pointer to a DXF ATTDEF entity.

Definition at line 3826 of file attdef.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_attdef_struct::text_flags.

Referenced by dxf_attdef_write().

DxfAttdef* dxf_attdef_set_text_flags ( DxfAttdef attdef,
int  text_flags 
)

Set the text flags for a DXF ATTDEF entity.

Parameters:
attdefa pointer to a DXF ATTDEF entity.
text_flagsthe text flags to be set for the entity.

Definition at line 3868 of file attdef.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_attdef_struct::text_flags.

Referenced by dxf_attdef_init().

int dxf_attdef_get_hor_align ( DxfAttdef attdef)

Get the horizontal alignment from a DXF ATTDEF entity.

Returns:
horizontal alignment.
Parameters:
attdefa pointer to a DXF ATTDEF entity.

Definition at line 3915 of file attdef.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_attdef_struct::hor_align.

Referenced by dxf_attdef_write().

DxfAttdef* dxf_attdef_set_hor_align ( DxfAttdef attdef,
int  hor_align 
)

Set the horizontal alignment for a DXF ATTDEF entity.

Parameters:
attdefa pointer to a DXF ATTDEF entity.
hor_alignthe horizontal alignment to be set for the entity.

Definition at line 3957 of file attdef.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_attdef_struct::hor_align.

Referenced by dxf_attdef_init(), and dxf_attdef_write().

int dxf_attdef_get_field_length ( DxfAttdef attdef)

Get the field length from a DXF ATTDEF entity.

Returns:
field length.
Note:
Not currently used in DXF R14.
Parameters:
attdefa pointer to a DXF ATTDEF entity.

Definition at line 4006 of file attdef.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_attdef_struct::field_length.

Referenced by dxf_attdef_write().

DxfAttdef* dxf_attdef_set_field_length ( DxfAttdef attdef,
int  field_length 
)

Set the field length for a DXF ATTDEF entity.

Note:
Not currently used in DXF R14.
Parameters:
attdefa pointer to a DXF ATTDEF entity.
field_lengththe field length to be set for the entity.

Definition at line 4043 of file attdef.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_attdef_struct::field_length.

Referenced by dxf_attdef_init().

int dxf_attdef_get_vert_align ( DxfAttdef attdef)

Get the vertical text alignment from a DXF ATTDEF entity.

Returns:
horizontal alignment.
Parameters:
attdefa pointer to a DXF ATTDEF entity.

Definition at line 4083 of file attdef.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_attdef_struct::vert_align.

Referenced by dxf_attdef_write().

DxfAttdef* dxf_attdef_set_vert_align ( DxfAttdef attdef,
int  vert_align 
)

Set the vertical text alignment for a DXF ATTDEF entity.

Parameters:
attdefa pointer to a DXF ATTDEF entity.
vert_alignthe vertical text alignment to be set for the entity.

Definition at line 4125 of file attdef.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_attdef_struct::vert_align.

Referenced by dxf_attdef_init(), and dxf_attdef_write().

double dxf_attdef_get_extr_x0 ( DxfAttdef attdef)

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

Returns:
the X-value of the extrusion vector.
Parameters:
attdefa pointer to a DXF ATTDEF entity.

Definition at line 4173 of file attdef.c.

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

Referenced by dxf_attdef_write().

DxfAttdef* dxf_attdef_set_extr_x0 ( DxfAttdef attdef,
double  extr_x0 
)

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

Returns:
a pointer to attdef when successful, NULL when an error occurred.
Parameters:
attdefa pointer to a DXF ATTDEF entity.
extr_x0the X-value of the extrusion vector of the entity.

Definition at line 4206 of file attdef.c.

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

Referenced by dxf_attdef_init().

double dxf_attdef_get_extr_y0 ( DxfAttdef attdef)

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

Returns:
the Y-value of the extrusion vector.
Parameters:
attdefa pointer to a DXF ATTDEF entity.

Definition at line 4240 of file attdef.c.

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

Referenced by dxf_attdef_write().

DxfAttdef* dxf_attdef_set_extr_y0 ( DxfAttdef attdef,
double  extr_y0 
)

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

Returns:
a pointer to attdef when successful, NULL when an error occurred.
Parameters:
attdefa pointer to a DXF ATTDEF entity.
extr_y0the Y-value of the extrusion vector of a DXF ATTDEF entity.

Definition at line 4273 of file attdef.c.

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

Referenced by dxf_attdef_init().

double dxf_attdef_get_extr_z0 ( DxfAttdef attdef)

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

Returns:
the Z-value of the extrusion vector.
Parameters:
attdefa pointer to a DXF ATTDEF entity.

Definition at line 4308 of file attdef.c.

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

Referenced by dxf_attdef_write().

DxfAttdef* dxf_attdef_set_extr_z0 ( DxfAttdef attdef,
double  extr_z0 
)

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

Returns:
a pointer to attdef when successful, NULL when an error occurred.
Parameters:
attdefa pointer to a DXF ATTDEF entity.
extr_z0the Z-value of the extrusion vector of a DXF ATTDEF entity.

Definition at line 4341 of file attdef.c.

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

Referenced by dxf_attdef_init().

DxfPoint* dxf_attdef_get_extrusion_vector_as_point ( DxfAttdef attdef)

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

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

Definition at line 4378 of file attdef.c.

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

Here is the call graph for this function:

DxfAttdef* dxf_attdef_set_extrusion_vector_from_point ( DxfAttdef attdef,
DxfPoint point 
)

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

Parameters:
attdefa pointer to a DXF ATTDEF entity.
pointa pointer to a DXF POINT entity.

Definition at line 4420 of file attdef.c.

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

DxfAttdef* dxf_attdef_set_extrusion_vector ( DxfAttdef attdef,
double  extr_x0,
double  extr_y0,
double  extr_z0 
)

Set the extrusion vector for a DXF ATTDEF entity.

Parameters:
attdefa pointer to a DXF ATTDEF 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 4460 of file attdef.c.

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

DxfAttdef* dxf_attdef_get_next ( DxfAttdef attdef)

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

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

Definition at line 4502 of file attdef.c.

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

DxfAttdef* dxf_attdef_set_next ( DxfAttdef attdef,
DxfAttdef next 
)

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

Parameters:
attdefa pointer to a DXF ATTDEF entity.
nexta pointer to the next ATTDEF for the entity.

Definition at line 4538 of file attdef.c.

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

Referenced by dxf_attdef_init().

DxfAttdef* dxf_attdef_get_last ( DxfAttdef attdef)

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

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

Definition at line 4581 of file attdef.c.

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