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

attrib.h File Reference

Header file for a DXF attribute entity (ATTRIB). More...

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

Go to the source code of this file.

Data Structures

struct  dxf_attrib_struct
 DXF definition of an AutoCAD attribute entity (ATTRIB). More...

Typedefs

typedef struct dxf_attrib_struct DxfAttrib
 DXF definition of an AutoCAD attribute entity (ATTRIB).

Functions

DxfAttribdxf_attrib_new ()
 Allocate memory for a DXF ATTRIB.
DxfAttribdxf_attrib_init (DxfAttrib *attrib)
 Allocate memory and initialize data fields in a DXF ATTRIB entity.
DxfAttribdxf_attrib_read (DxfFile *fp, DxfAttrib *attrib)
 Read data from a DXF file into an ATTRIB entity.
int dxf_attrib_write (DxfFile *fp, DxfAttrib *attrib)
 Write DXF output for a DXF ATTRIB entity.
int dxf_attrib_free (DxfAttrib *attrib)
 Free the allocated memory for a DXF ATTRIB and all it's data fields.
void dxf_attrib_free_chain (DxfAttrib *attribs)
 Free the allocated memory for a chain of DXF ATTRIB entities and all their data fields.
int dxf_attrib_get_id_code (DxfAttrib *attrib)
 Get the ID code from a DXF ATTRIB entity.
DxfAttribdxf_attrib_set_id_code (DxfAttrib *attrib, int id_code)
 Set the ID code for a DXF ATTRIB entity.
char * dxf_attrib_get_linetype (DxfAttrib *attrib)
 Get the linetype from a DXF ATTRIB entity.
DxfAttribdxf_attrib_set_linetype (DxfAttrib *attrib, char *linetype)
 Set the linetype for a DXF ATTRIB entity.
char * dxf_attrib_get_layer (DxfAttrib *attrib)
 Get the layer from a DXF ATTRIB entity.
DxfAttribdxf_attrib_set_layer (DxfAttrib *attrib, char *layer)
 Set the layer for a DXF ATTRIB entity.
double dxf_attrib_get_elevation (DxfAttrib *attrib)
 Get the elevation from a DXF ATTRIB entity.
DxfAttribdxf_attrib_set_elevation (DxfAttrib *attrib, double elevation)
 Set the elevation for a DXF ATTRIB entity.
double dxf_attrib_get_thickness (DxfAttrib *attrib)
 Get the thickness from a DXF ATTRIB entity.
DxfAttribdxf_attrib_set_thickness (DxfAttrib *attrib, double thickness)
 Set the thickness for a DXF ATTRIB entity.
double dxf_attrib_get_linetype_scale (DxfAttrib *attrib)
 Get the linetype scale from a DXF ATTRIB entity.
DxfAttribdxf_attrib_set_linetype_scale (DxfAttrib *attrib, double linetype_scale)
 Set the linetype scale for a DXF ATTRIB entity.
int16_t dxf_attrib_get_visibility (DxfAttrib *attrib)
 Get the visibility from a DXF ATTRIB entity.
DxfAttribdxf_attrib_set_visibility (DxfAttrib *attrib, int16_t visibility)
 Set the visibility for a DXF ATTRIB entity.
int dxf_attrib_get_color (DxfAttrib *attrib)
 Get the color from a DXF ATTRIB entity.
DxfAttribdxf_attrib_set_color (DxfAttrib *attrib, int color)
 Set the color for a DXF ATTRIB entity.
int dxf_attrib_get_paperspace (DxfAttrib *attrib)
 Get the paperspace flag value from a DXF ATTRIB entity.
DxfAttribdxf_attrib_set_paperspace (DxfAttrib *attrib, int paperspace)
 Set the paperspace flag for a DXF ATTRIB entity.
int dxf_attrib_get_graphics_data_size (DxfAttrib *attrib)
 Get the graphics_data_size value from a DXF ATTRIB entity.
DxfAttribdxf_attrib_set_graphics_data_size (DxfAttrib *attrib, int graphics_data_size)
 Set the graphics_data_size value for a DXF ATTRIB entity.
int16_t dxf_attrib_get_shadow_mode (DxfAttrib *attrib)
 Get the shadow_mode from a DXF ATTRIB entity.
DxfAttribdxf_attrib_set_shadow_mode (DxfAttrib *attrib, int16_t shadow_mode)
 Set the shadow_mode for a DXF ATTRIB entity.
DxfBinaryGraphicsDatadxf_attrib_get_binary_graphics_data (DxfAttrib *attrib)
 Get the pointer to the binary_graphics_data from a DXF ATTRIB entity.
DxfAttribdxf_attrib_set_binary_graphics_data (DxfAttrib *attrib, DxfBinaryGraphicsData *data)
 Set the pointer to the binary_graphics_data for a DXF ATTRIB entity.
char * dxf_attrib_get_dictionary_owner_soft (DxfAttrib *attrib)
 Get the soft pointer to the dictionary owner from a DXF ATTRIB entity.
DxfAttribdxf_attrib_set_dictionary_owner_soft (DxfAttrib *attrib, char *dictionary_owner_soft)
 Set the pointer to the dictionary_owner_soft for a DXF ATTRIB entity.
char * dxf_attrib_get_material (DxfAttrib *attrib)
 Get the pointer to the material from a DXF ATTRIB entity.
DxfAttribdxf_attrib_set_material (DxfAttrib *attrib, char *material)
 Set the pointer to the material for a DXF ATTRIB entity.
char * dxf_attrib_get_dictionary_owner_hard (DxfAttrib *attrib)
 Get the hard pointer to the dictionary owner from a DXF ATTRIB entity.
DxfAttribdxf_attrib_set_dictionary_owner_hard (DxfAttrib *attrib, char *dictionary_owner_hard)
 Set the pointer to the dictionary_owner_hard for a DXF ATTRIB entity.
int16_t dxf_attrib_get_lineweight (DxfAttrib *attrib)
 Get the lineweight from a DXF ATTRIB entity.
DxfAttribdxf_attrib_set_lineweight (DxfAttrib *attrib, int16_t lineweight)
 Set the lineweight for a DXF ATTRIB entity.
char * dxf_attrib_get_plot_style_name (DxfAttrib *attrib)
 Get the plot_style_name from a DXF ATTRIB entity.
DxfAttribdxf_attrib_set_plot_style_name (DxfAttrib *attrib, char *plot_style_name)
 Set the plot_style_name for a DXF ATTRIB entity.
long dxf_attrib_get_color_value (DxfAttrib *attrib)
 Get the color_value from a DXF ATTRIB entity.
DxfAttribdxf_attrib_set_color_value (DxfAttrib *attrib, long color_value)
 Set the color_value for a DXF ATTRIB entity.
char * dxf_attrib_get_color_name (DxfAttrib *attrib)
 Get the color_name from a DXF ATTRIB entity.
DxfAttribdxf_attrib_set_color_name (DxfAttrib *attrib, char *color_name)
 Set the color_name for a DXF ATTRIB entity.
long dxf_attrib_get_transparency (DxfAttrib *attrib)
 Get the transparency from a DXF ATTRIB entity.
DxfAttribdxf_attrib_set_transparency (DxfAttrib *attrib, long transparency)
 Set the transparency for a DXF ATTRIB entity.
char * dxf_attrib_get_default_value (DxfAttrib *attrib)
 Get the default value from a DXF ATTRIB entity.
DxfAttribdxf_attrib_set_default_value (DxfAttrib *attrib, char *default_value)
 Set the default value for a DXF ATTRIB entity.
char * dxf_attrib_get_tag_value (DxfAttrib *attrib)
 Get the tag value from a DXF ATTRIB entity.
DxfAttribdxf_attrib_set_tag_value (DxfAttrib *attrib, char *tag_value)
 Set the tag value for a DXF ATTRIB entity.
char * dxf_attrib_get_text_style (DxfAttrib *attrib)
 Get the text style from a DXF ATTRIB entity.
DxfAttribdxf_attrib_set_text_style (DxfAttrib *attrib, char *text_style)
 Set the text style for a DXF ATTRIB entity.
DxfPointdxf_attrib_get_p0 (DxfAttrib *attrib)
 Get the text start point p0 of a DXF ATTRIB entity.
DxfAttribdxf_attrib_set_p0 (DxfAttrib *attrib, DxfPoint *p0)
 Set the text start point p0 of a DXF ATTRIB entity.
double dxf_attrib_get_x0 (DxfAttrib *attrib)
 Get the X-value of the text start point x0 of a DXF ATTRIB entity.
DxfAttribdxf_attrib_set_x0 (DxfAttrib *attrib, double x0)
 Set the X-value of the text start point x0 of a DXF ATTRIB entity.
double dxf_attrib_get_y0 (DxfAttrib *attrib)
 Get the Y-value of the text start point y0 of a DXF ATTRIB entity.
DxfAttribdxf_attrib_set_y0 (DxfAttrib *attrib, double y0)
 Set the Y-value of the text start point y0 of a DXF ATTRIB entity.
double dxf_attrib_get_z0 (DxfAttrib *attrib)
 Get the Z-value of the text start point z0 of a DXF ATTRIB entity.
DxfAttribdxf_attrib_set_z0 (DxfAttrib *attrib, double z0)
 Set the Z-value of the text start point z0 of a DXF ATTRIB entity.
DxfPointdxf_attrib_get_p1 (DxfAttrib *attrib)
 Get the alignment point p1 of a DXF ATTRIB entity.
DxfAttribdxf_attrib_set_p1 (DxfAttrib *attrib, DxfPoint *p1)
 Set the alignment point p1 of a DXF ATTRIB entity.
double dxf_attrib_get_x1 (DxfAttrib *attrib)
 Get the X-value x1 of the alignment of a DXF ATTRIB entity.
DxfAttribdxf_attrib_set_x1 (DxfAttrib *attrib, double x1)
 Set the X-value x1 of the alinment point of a DXF ATTRIB entity.
double dxf_attrib_get_y1 (DxfAttrib *attrib)
 Get the Y-value y1 of the alignment point of a DXF ATTRIB entity.
DxfAttribdxf_attrib_set_y1 (DxfAttrib *attrib, double y1)
 Set the Y-value y1 of the alignment point of a DXF ATTRIB entity.
double dxf_attrib_get_z1 (DxfAttrib *attrib)
 Get the Z-value z1 of the alignment point of a DXF ATTRIB entity.
DxfAttribdxf_attrib_set_z1 (DxfAttrib *attrib, double z1)
 Set the Z-value z1 of the alignment point of a DXF ATTRIB entity.
double dxf_attrib_get_height (DxfAttrib *attrib)
 Get the height from a DXF ATTRIB entity.
DxfAttribdxf_attrib_set_height (DxfAttrib *attrib, double height)
 Set the height for a DXF ATTRIB entity.
double dxf_attrib_get_rel_x_scale (DxfAttrib *attrib)
 Get the relative X scale from a DXF ATTRIB entity.
DxfAttribdxf_attrib_set_rel_x_scale (DxfAttrib *attrib, double rel_x_scale)
 Set the relative X scale for a DXF ATTRIB entity.
double dxf_attrib_get_rot_angle (DxfAttrib *attrib)
 Get the rotation angle from a DXF ATTRIB entity.
DxfAttribdxf_attrib_set_rot_angle (DxfAttrib *attrib, double rot_angle)
 Set the rotation angle for a DXF ATTRIB entity.
double dxf_attrib_get_obl_angle (DxfAttrib *attrib)
 Get the oblique angle from a DXF ATTRIB entity.
DxfAttribdxf_attrib_set_obl_angle (DxfAttrib *attrib, double obl_angle)
 Set the oblique angle for a DXF ATTRIB entity.
int dxf_attrib_get_attr_flags (DxfAttrib *attrib)
 Get the attribute flags from a DXF ATTRIB entity.
DxfAttribdxf_attrib_set_attr_flags (DxfAttrib *attrib, int attr_flags)
 Set the attribute flags for a DXF ATTRIB entity.
int dxf_attrib_is_invisible (DxfAttrib *attrib)
 Test if the attribute is invisible.
int dxf_attrib_is_constant (DxfAttrib *attrib)
 Test if the attribute is a constant attribute.
int dxf_attrib_is_verification_required (DxfAttrib *attrib)
 Test if the attribute input needs to be verified.
int dxf_attrib_is_preset (DxfAttrib *attrib)
 Test if the attribute is preset (no prompt during insertion).
int dxf_attrib_get_text_flags (DxfAttrib *attrib)
 Get the text flags from a DXF ATTRIB entity.
DxfAttribdxf_attrib_set_text_flags (DxfAttrib *attrib, int text_flags)
 Set the text flags for a DXF ATTRIB entity.
int dxf_attrib_get_hor_align (DxfAttrib *attrib)
 Get the horizontal alignment from a DXF ATTRIB entity.
DxfAttribdxf_attrib_set_hor_align (DxfAttrib *attrib, int hor_align)
 Set the horizontal alignment for a DXF ATTRIB entity.
int dxf_attrib_get_field_length (DxfAttrib *attrib)
 Get the field length from a DXF ATTRIB entity.
DxfAttribdxf_attrib_set_field_length (DxfAttrib *attrib, int field_length)
 Set the field length for a DXF ATTRIB entity.
int dxf_attrib_get_vert_align (DxfAttrib *attrib)
 Get the vertical text alignment from a DXF ATTRIB entity.
DxfAttribdxf_attrib_set_vert_align (DxfAttrib *attrib, int vert_align)
 Set the vertical text alignment for a DXF ATTRIB entity.
double dxf_attrib_get_extr_x0 (DxfAttrib *attrib)
 Get the X-value of the extrusion vector of a DXF ATTRIB entity.
DxfAttribdxf_attrib_set_extr_x0 (DxfAttrib *attrib, double extr_x0)
 Set the X-value of the extrusion vector of a DXF ATTRIB entity.
double dxf_attrib_get_extr_y0 (DxfAttrib *attrib)
 Get the Y-value of the extrusion vector of a DXF ATTRIB entity.
DxfAttribdxf_attrib_set_extr_y0 (DxfAttrib *attrib, double extr_y0)
 Set the Y-value of the extrusion vector of a DXF ATTRIB entity.
double dxf_attrib_get_extr_z0 (DxfAttrib *attrib)
 Get the Z-value of the extrusion vector of a DXF ATTRIB entity.
DxfAttribdxf_attrib_set_extr_z0 (DxfAttrib *attrib, double extr_z0)
 Set the Z-value of the extrusion vector of a DXF ATTRIB entity.
DxfPointdxf_attrib_get_extrusion_vector_as_point (DxfAttrib *attrib)
 Get the extrusion vector as a DXF POINT entity from a DXF ATTRIB entity.
DxfAttribdxf_attrib_set_extrusion_vector_from_point (DxfAttrib *attrib, DxfPoint *point)
 Set the extrusion vector from a DXF POINT for a DXF ATTRIB entity.
DxfAttribdxf_attrib_set_extrusion_vector (DxfAttrib *attrib, double extr_x0, double extr_y0, double extr_z0)
 Set the extrusion vector for a DXF ATTRIB entity.
DxfAttribdxf_attrib_get_next (DxfAttrib *attrib)
 Get the pointer to the next ATTRIB entity from a DXF ATTRIB entity.
DxfAttribdxf_attrib_set_next (DxfAttrib *attrib, DxfAttrib *next)
 Set the pointer to the next ATTRIB for a DXF ATTRIB entity.
DxfAttribdxf_attrib_get_last (DxfAttrib *attrib)
 Get the pointer to the last ATTRIB entity from a linked list of DXF ATTRIB entities.

Detailed Description

Header file for a DXF attribute entity (ATTRIB).

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 attrib.h.


Typedef Documentation

typedef struct dxf_attrib_struct DxfAttrib

DXF definition of an AutoCAD attribute entity (ATTRIB).


Function Documentation

DxfAttrib* dxf_attrib_new ( )

Allocate memory for a DXF ATTRIB.

Fill the memory contents with zeros.

Definition at line 51 of file attrib.c.

References _, DXF_DEBUG_BEGIN, and DXF_DEBUG_END.

Referenced by dxf_attrib_init(), and dxf_attrib_read().

DxfAttrib* dxf_attrib_init ( DxfAttrib attrib)

Allocate memory and initialize data fields in a DXF ATTRIB entity.

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

Definition at line 89 of file attrib.c.

References _, dxf_attrib_get_binary_graphics_data(), dxf_attrib_get_p0(), dxf_attrib_get_p1(), dxf_attrib_new(), dxf_attrib_set_attr_flags(), dxf_attrib_set_binary_graphics_data(), dxf_attrib_set_color(), dxf_attrib_set_color_name(), dxf_attrib_set_color_value(), dxf_attrib_set_default_value(), dxf_attrib_set_dictionary_owner_hard(), dxf_attrib_set_dictionary_owner_soft(), dxf_attrib_set_elevation(), dxf_attrib_set_extr_x0(), dxf_attrib_set_extr_y0(), dxf_attrib_set_extr_z0(), dxf_attrib_set_field_length(), dxf_attrib_set_graphics_data_size(), dxf_attrib_set_height(), dxf_attrib_set_hor_align(), dxf_attrib_set_id_code(), dxf_attrib_set_layer(), dxf_attrib_set_linetype(), dxf_attrib_set_linetype_scale(), dxf_attrib_set_lineweight(), dxf_attrib_set_material(), dxf_attrib_set_next(), dxf_attrib_set_obl_angle(), dxf_attrib_set_p0(), dxf_attrib_set_p1(), dxf_attrib_set_paperspace(), dxf_attrib_set_plot_style_name(), dxf_attrib_set_rel_x_scale(), dxf_attrib_set_rot_angle(), dxf_attrib_set_shadow_mode(), dxf_attrib_set_tag_value(), dxf_attrib_set_text_flags(), dxf_attrib_set_text_style(), dxf_attrib_set_thickness(), dxf_attrib_set_transparency(), dxf_attrib_set_vert_align(), dxf_attrib_set_visibility(), dxf_attrib_set_x0(), dxf_attrib_set_x1(), dxf_attrib_set_y0(), dxf_attrib_set_y1(), dxf_attrib_set_z0(), dxf_attrib_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_attrib_read().

Here is the call graph for this function:

DxfAttrib* dxf_attrib_read ( DxfFile fp,
DxfAttrib attrib 
)

Read data from a DXF file into an ATTRIB entity.

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

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

Definition at line 180 of file attrib.c.

References _, dxf_file_struct::acad_version_number, dxf_attrib_struct::attr_flags, AutoCAD_11, AutoCAD_12, dxf_attrib_struct::color, dxf_attrib_struct::default_value, dxf_attrib_struct::dictionary_owner_hard, dxf_attrib_struct::dictionary_owner_soft, dxf_attrib_get_layer(), dxf_attrib_get_linetype(), dxf_attrib_init(), dxf_attrib_new(), dxf_attrib_set_layer(), dxf_attrib_set_linetype(), DXF_DEBUG_BEGIN, DXF_DEBUG_END, DXF_DEFAULT_LAYER, DXF_DEFAULT_LINETYPE, dxf_attrib_struct::elevation, dxf_attrib_struct::extr_x0, dxf_attrib_struct::extr_y0, dxf_attrib_struct::extr_z0, dxf_attrib_struct::field_length, dxf_file_struct::filename, dxf_file_struct::fp, dxf_attrib_struct::height, dxf_attrib_struct::hor_align, dxf_attrib_struct::id_code, dxf_attrib_struct::layer, dxf_file_struct::line_number, dxf_attrib_struct::linetype, dxf_attrib_struct::linetype_scale, dxf_attrib_struct::obl_angle, dxf_attrib_struct::p0, dxf_attrib_struct::p1, dxf_attrib_struct::paperspace, dxf_attrib_struct::rel_x_scale, dxf_attrib_struct::rot_angle, dxf_attrib_struct::tag_value, dxf_attrib_struct::text_flags, dxf_attrib_struct::text_style, dxf_attrib_struct::thickness, dxf_attrib_struct::vert_align, dxf_attrib_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_attrib_write ( DxfFile fp,
DxfAttrib attrib 
)

Write DXF output for a DXF ATTRIB 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).
attribDXF attribute entity

Definition at line 506 of file attrib.c.

References _, dxf_file_struct::acad_version_number, AutoCAD_11, AutoCAD_12, AutoCAD_13, AutoCAD_14, dxf_attrib_get_attr_flags(), dxf_attrib_get_color(), dxf_attrib_get_default_value(), dxf_attrib_get_dictionary_owner_hard(), dxf_attrib_get_dictionary_owner_soft(), dxf_attrib_get_elevation(), dxf_attrib_get_extr_x0(), dxf_attrib_get_extr_y0(), dxf_attrib_get_extr_z0(), dxf_attrib_get_field_length(), dxf_attrib_get_height(), dxf_attrib_get_hor_align(), dxf_attrib_get_id_code(), dxf_attrib_get_layer(), dxf_attrib_get_linetype(), dxf_attrib_get_linetype_scale(), dxf_attrib_get_obl_angle(), dxf_attrib_get_paperspace(), dxf_attrib_get_rel_x_scale(), dxf_attrib_get_rot_angle(), dxf_attrib_get_tag_value(), dxf_attrib_get_text_flags(), dxf_attrib_get_text_style(), dxf_attrib_get_thickness(), dxf_attrib_get_vert_align(), dxf_attrib_get_visibility(), dxf_attrib_get_x0(), dxf_attrib_get_x1(), dxf_attrib_get_y0(), dxf_attrib_get_y1(), dxf_attrib_get_z0(), dxf_attrib_get_z1(), dxf_attrib_set_height(), dxf_attrib_set_hor_align(), dxf_attrib_set_layer(), dxf_attrib_set_linetype(), dxf_attrib_set_rel_x_scale(), dxf_attrib_set_text_style(), dxf_attrib_set_vert_align(), DXF_COLOR_BYLAYER, DXF_DEBUG_BEGIN, DXF_DEBUG_END, DXF_DEFAULT_LAYER, DXF_DEFAULT_LINETYPE, DXF_DEFAULT_TEXTSTYLE, DXF_FLATLAND, DXF_PAPERSPACE, and dxf_file_struct::fp.

Here is the call graph for this function:

int dxf_attrib_free ( DxfAttrib attrib)
void dxf_attrib_free_chain ( DxfAttrib attribs)

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

Parameters:
attribspointer to the chain of DXF ATTRIB entities.

Definition at line 816 of file attrib.c.

References _, dxf_attrib_free(), DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_attrib_struct::next.

Here is the call graph for this function:

int dxf_attrib_get_id_code ( DxfAttrib attrib)

Get the ID code from a DXF ATTRIB entity.

Returns:
ID code.
Parameters:
attriba pointer to a DXF ATTRIB entity.

Definition at line 849 of file attrib.c.

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

Referenced by dxf_attrib_write().

DxfAttrib* dxf_attrib_set_id_code ( DxfAttrib attrib,
int  id_code 
)

Set the ID code for a DXF ATTRIB entity.

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

Definition at line 884 of file attrib.c.

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

Referenced by dxf_attrib_init().

char* dxf_attrib_get_linetype ( DxfAttrib attrib)

Get the linetype from a DXF ATTRIB entity.

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

Definition at line 926 of file attrib.c.

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

Referenced by dxf_attrib_read(), and dxf_attrib_write().

DxfAttrib* dxf_attrib_set_linetype ( DxfAttrib attrib,
char *  linetype 
)

Set the linetype for a DXF ATTRIB entity.

Parameters:
attriba pointer to a DXF ATTRIB entity.
linetypea string containing the linetype for the entity.

Definition at line 961 of file attrib.c.

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

Referenced by dxf_attrib_init(), dxf_attrib_read(), and dxf_attrib_write().

char* dxf_attrib_get_layer ( DxfAttrib attrib)

Get the layer from a DXF ATTRIB entity.

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

Definition at line 1001 of file attrib.c.

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

Referenced by dxf_attrib_read(), and dxf_attrib_write().

DxfAttrib* dxf_attrib_set_layer ( DxfAttrib attrib,
char *  layer 
)

Set the layer for a DXF ATTRIB entity.

Parameters:
attriba pointer to a DXF ATTRIB entity.
layera string containing the layer for the entity.

Definition at line 1036 of file attrib.c.

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

Referenced by dxf_attrib_init(), dxf_attrib_read(), and dxf_attrib_write().

double dxf_attrib_get_elevation ( DxfAttrib attrib)

Get the elevation from a DXF ATTRIB entity.

Returns:
elevation.
Parameters:
attriba pointer to a DXF ATTRIB entity.

Definition at line 1076 of file attrib.c.

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

Referenced by dxf_attrib_write().

DxfAttrib* dxf_attrib_set_elevation ( DxfAttrib attrib,
double  elevation 
)

Set the elevation for a DXF ATTRIB entity.

Parameters:
attriba pointer to a DXF ATTRIB entity.
elevationthe elevation to be set for the entity.

Definition at line 1104 of file attrib.c.

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

Referenced by dxf_attrib_init().

double dxf_attrib_get_thickness ( DxfAttrib attrib)

Get the thickness from a DXF ATTRIB entity.

Returns:
thickness.
Parameters:
attriba pointer to a DXF ATTRIB entity.

Definition at line 1137 of file attrib.c.

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

Referenced by dxf_attrib_write().

DxfAttrib* dxf_attrib_set_thickness ( DxfAttrib attrib,
double  thickness 
)

Set the thickness for a DXF ATTRIB entity.

Parameters:
attriba pointer to a DXF ATTRIB entity.
thicknessthe thickness to be set for the entity.

Definition at line 1172 of file attrib.c.

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

Referenced by dxf_attrib_init().

double dxf_attrib_get_linetype_scale ( DxfAttrib attrib)

Get the linetype scale from a DXF ATTRIB entity.

Returns:
linetype scale.
Parameters:
attriba pointer to a DXF ATTRIB entity.

Definition at line 1212 of file attrib.c.

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

Referenced by dxf_attrib_write().

DxfAttrib* dxf_attrib_set_linetype_scale ( DxfAttrib attrib,
double  linetype_scale 
)

Set the linetype scale for a DXF ATTRIB entity.

Parameters:
attriba pointer to a DXF ATTRIB entity.
linetype_scalethe linetype scale to be set for the entity.

Definition at line 1247 of file attrib.c.

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

Referenced by dxf_attrib_init().

int16_t dxf_attrib_get_visibility ( DxfAttrib attrib)

Get the visibility from a DXF ATTRIB entity.

Returns:
visibility.
Parameters:
attriba pointer to a DXF ATTRIB entity.

Definition at line 1287 of file attrib.c.

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

Referenced by dxf_attrib_write().

DxfAttrib* dxf_attrib_set_visibility ( DxfAttrib attrib,
int16_t  visibility 
)

Set the visibility for a DXF ATTRIB entity.

Parameters:
attriba pointer to a DXF ATTRIB entity.
visibilitythe visibility to be set for the entity.

Definition at line 1329 of file attrib.c.

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

Referenced by dxf_attrib_init().

int dxf_attrib_get_color ( DxfAttrib attrib)

Get the color from a DXF ATTRIB entity.

Returns:
color.
Parameters:
attriba pointer to a DXF ATTRIB entity.

Definition at line 1376 of file attrib.c.

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

Referenced by dxf_attrib_write().

DxfAttrib* dxf_attrib_set_color ( DxfAttrib attrib,
int  color 
)

Set the color for a DXF ATTRIB entity.

Parameters:
attriba pointer to a DXF ATTRIB entity.
colorthe color to be set for the entity.

Definition at line 1410 of file attrib.c.

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

Referenced by dxf_attrib_init().

int dxf_attrib_get_paperspace ( DxfAttrib attrib)

Get the paperspace flag value from a DXF ATTRIB entity.

Returns:
paperspace flag value.
Parameters:
attriba pointer to a DXF ATTRIB entity.

Definition at line 1451 of file attrib.c.

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

Referenced by dxf_attrib_write().

DxfAttrib* dxf_attrib_set_paperspace ( DxfAttrib attrib,
int  paperspace 
)

Set the paperspace flag for a DXF ATTRIB entity.

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

Definition at line 1491 of file attrib.c.

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

Referenced by dxf_attrib_init().

int dxf_attrib_get_graphics_data_size ( DxfAttrib attrib)

Get the graphics_data_size value from a DXF ATTRIB entity.

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

Definition at line 1540 of file attrib.c.

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

DxfAttrib* dxf_attrib_set_graphics_data_size ( DxfAttrib attrib,
int  graphics_data_size 
)

Set the graphics_data_size value for a DXF ATTRIB entity.

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

Definition at line 1584 of file attrib.c.

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

Referenced by dxf_attrib_init().

int16_t dxf_attrib_get_shadow_mode ( DxfAttrib attrib)

Get the shadow_mode from a DXF ATTRIB entity.

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

Definition at line 1632 of file attrib.c.

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

DxfAttrib* dxf_attrib_set_shadow_mode ( DxfAttrib attrib,
int16_t  shadow_mode 
)

Set the shadow_mode for a DXF ATTRIB entity.

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

Definition at line 1677 of file attrib.c.

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

Referenced by dxf_attrib_init().

DxfBinaryGraphicsData* dxf_attrib_get_binary_graphics_data ( DxfAttrib attrib)

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

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

Definition at line 1727 of file attrib.c.

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

Referenced by dxf_attrib_init().

DxfAttrib* dxf_attrib_set_binary_graphics_data ( DxfAttrib attrib,
DxfBinaryGraphicsData data 
)

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

Parameters:
attriba pointer to a DXF ATTRIB entity.
dataa string containing the pointer to the binary_graphics_data for the entity.

Definition at line 1763 of file attrib.c.

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

Referenced by dxf_attrib_init().

char* dxf_attrib_get_dictionary_owner_soft ( DxfAttrib attrib)

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

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

Definition at line 1807 of file attrib.c.

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

Referenced by dxf_attrib_write().

DxfAttrib* dxf_attrib_set_dictionary_owner_soft ( DxfAttrib attrib,
char *  dictionary_owner_soft 
)

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

Parameters:
attriba pointer to a DXF ATTRIB entity.
dictionary_owner_softa string containing the pointer to the dictionary_owner_soft for the entity.

Definition at line 1843 of file attrib.c.

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

Referenced by dxf_attrib_init().

char* dxf_attrib_get_material ( DxfAttrib attrib)

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

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

Definition at line 1887 of file attrib.c.

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

DxfAttrib* dxf_attrib_set_material ( DxfAttrib attrib,
char *  material 
)

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

Returns:
a pointer to attrib when successful, or NULL when an error occurred.
Parameters:
attriba pointer to a DXF ATTRIB entity.
materiala string containing the pointer to the material for the entity.

Definition at line 1925 of file attrib.c.

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

Referenced by dxf_attrib_init().

char* dxf_attrib_get_dictionary_owner_hard ( DxfAttrib attrib)

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

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

Definition at line 1969 of file attrib.c.

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

Referenced by dxf_attrib_write().

DxfAttrib* dxf_attrib_set_dictionary_owner_hard ( DxfAttrib attrib,
char *  dictionary_owner_hard 
)

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

Parameters:
attriba pointer to a DXF ATTRIB entity.
dictionary_owner_harda string containing the pointer to the dictionary_owner_hard for the entity.

Definition at line 2005 of file attrib.c.

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

Referenced by dxf_attrib_init().

int16_t dxf_attrib_get_lineweight ( DxfAttrib attrib)

Get the lineweight from a DXF ATTRIB entity.

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

Definition at line 2047 of file attrib.c.

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

DxfAttrib* dxf_attrib_set_lineweight ( DxfAttrib attrib,
int16_t  lineweight 
)

Set the lineweight for a DXF ATTRIB entity.

Returns:
a pointer to attrib when successful, or NULL when an error occurred.
Parameters:
attriba pointer to a DXF ATTRIB entity.
lineweightthe lineweight to be set for the entity.

Definition at line 2078 of file attrib.c.

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

Referenced by dxf_attrib_init().

char* dxf_attrib_get_plot_style_name ( DxfAttrib attrib)

Get the plot_style_name from a DXF ATTRIB entity.

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

Definition at line 2112 of file attrib.c.

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

DxfAttrib* dxf_attrib_set_plot_style_name ( DxfAttrib attrib,
char *  plot_style_name 
)

Set the plot_style_name for a DXF ATTRIB entity.

Returns:
a pointer to attrib when successful, or NULL when an error occurred.
Parameters:
attriba pointer to a DXF ATTRIB entity.
plot_style_namea string containing the plot_style_name for the entity.

Definition at line 2150 of file attrib.c.

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

Referenced by dxf_attrib_init().

long dxf_attrib_get_color_value ( DxfAttrib attrib)

Get the color_value from a DXF ATTRIB entity.

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

Definition at line 2192 of file attrib.c.

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

DxfAttrib* dxf_attrib_set_color_value ( DxfAttrib attrib,
long  color_value 
)

Set the color_value for a DXF ATTRIB entity.

Returns:
a pointer to attrib when successful, or NULL when an error occurred.
Parameters:
attriba pointer to a DXF ATTRIB entity.
color_valuethe color_value to be set for the entity.

Definition at line 2223 of file attrib.c.

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

Referenced by dxf_attrib_init().

char* dxf_attrib_get_color_name ( DxfAttrib attrib)

Get the color_name from a DXF ATTRIB entity.

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

Definition at line 2257 of file attrib.c.

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

DxfAttrib* dxf_attrib_set_color_name ( DxfAttrib attrib,
char *  color_name 
)

Set the color_name for a DXF ATTRIB entity.

Returns:
a pointer to attrib when successful, or NULL when an error occurred.
Parameters:
attriba pointer to a DXF ATTRIB entity.
color_namea string containing the color_name for the entity.

Definition at line 2295 of file attrib.c.

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

Referenced by dxf_attrib_init().

long dxf_attrib_get_transparency ( DxfAttrib attrib)

Get the transparency from a DXF ATTRIB entity.

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

Definition at line 2337 of file attrib.c.

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

DxfAttrib* dxf_attrib_set_transparency ( DxfAttrib attrib,
long  transparency 
)

Set the transparency for a DXF ATTRIB entity.

Returns:
a pointer to attrib when successful, or NULL when an error occurred.
Parameters:
attriba pointer to a DXF ATTRIB entity.
transparencythe transparency to be set for the entity.

Definition at line 2368 of file attrib.c.

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

Referenced by dxf_attrib_init().

char* dxf_attrib_get_default_value ( DxfAttrib attrib)

Get the default value from a DXF ATTRIB entity.

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

Definition at line 2403 of file attrib.c.

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

Referenced by dxf_attrib_write().

DxfAttrib* dxf_attrib_set_default_value ( DxfAttrib attrib,
char *  default_value 
)

Set the default value for a DXF ATTRIB entity.

Parameters:
attriba pointer to a DXF ATTRIB entity.
default_valuea string containing the default_value for the entity.

Definition at line 2438 of file attrib.c.

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

Referenced by dxf_attrib_init().

char* dxf_attrib_get_tag_value ( DxfAttrib attrib)

Get the tag value from a DXF ATTRIB entity.

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

Definition at line 2481 of file attrib.c.

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

Referenced by dxf_attrib_write().

DxfAttrib* dxf_attrib_set_tag_value ( DxfAttrib attrib,
char *  tag_value 
)

Set the tag value for a DXF ATTRIB entity.

Parameters:
attriba pointer to a DXF ATTRIB entity.
tag_valuea string containing the tag_value for the entity.

Definition at line 2516 of file attrib.c.

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

Referenced by dxf_attrib_init().

char* dxf_attrib_get_text_style ( DxfAttrib attrib)

Get the text style from a DXF ATTRIB entity.

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

Definition at line 2559 of file attrib.c.

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

Referenced by dxf_attrib_write().

DxfAttrib* dxf_attrib_set_text_style ( DxfAttrib attrib,
char *  text_style 
)

Set the text style for a DXF ATTRIB entity.

Parameters:
attriba pointer to a DXF ATTRIB entity.
text_stylea string containing the text style for the entity.

Definition at line 2594 of file attrib.c.

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

Referenced by dxf_attrib_init(), and dxf_attrib_write().

DxfPoint* dxf_attrib_get_p0 ( DxfAttrib attrib)

Get the text start point p0 of a DXF ATTRIB entity.

Returns:
the text start point p0.
Parameters:
attriba pointer to a DXF ATTRIB entity.

Definition at line 2635 of file attrib.c.

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

Referenced by dxf_attrib_init().

DxfAttrib* dxf_attrib_set_p0 ( DxfAttrib attrib,
DxfPoint p0 
)

Set the text start point p0 of a DXF ATTRIB entity.

Returns:
a pointer to a DXF ATTRIB entity.
Parameters:
attriba pointer to a DXF ATTRIB entity.
p0a pointer to a DXF POINT entity.

Definition at line 2672 of file attrib.c.

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

Referenced by dxf_attrib_init().

double dxf_attrib_get_x0 ( DxfAttrib attrib)

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

Returns:
the X-value of the text start point x0.
Parameters:
attriba pointer to a DXF ATTRIB entity.

Definition at line 2713 of file attrib.c.

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

Referenced by dxf_attrib_write().

DxfAttrib* dxf_attrib_set_x0 ( DxfAttrib attrib,
double  x0 
)

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

Returns:
a pointer to attrib when successful, or NULL when an error occurred.
Parameters:
attriba pointer to a DXF ATTRIB entity.
x0the X-value of the text start point x0 of a DXF ATTRIB entity.

Definition at line 2753 of file attrib.c.

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

Referenced by dxf_attrib_init().

double dxf_attrib_get_y0 ( DxfAttrib attrib)

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

Returns:
the Y-value of the text start point y0.
Parameters:
attriba pointer to a DXF ATTRIB entity.

Definition at line 2795 of file attrib.c.

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

Referenced by dxf_attrib_write().

DxfAttrib* dxf_attrib_set_y0 ( DxfAttrib attrib,
double  y0 
)

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

Returns:
a pointer to attrib when successful, or NULL when an error occurred.
Parameters:
attriba pointer to a DXF ATTRIB entity.
y0the Y-value of the text start point y0 of a DXF ATTRIB entity.

Definition at line 2835 of file attrib.c.

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

Referenced by dxf_attrib_init().

double dxf_attrib_get_z0 ( DxfAttrib attrib)

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

Returns:
the Z-value of the text start point z0.
Parameters:
attriba pointer to a DXF ATTRIB entity.

Definition at line 2877 of file attrib.c.

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

Referenced by dxf_attrib_write().

DxfAttrib* dxf_attrib_set_z0 ( DxfAttrib attrib,
double  z0 
)

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

Returns:
a pointer to attrib when successful, or NULL when an error occurred.
Parameters:
attriba pointer to a DXF ATTRIB entity.
z0the Z-value of the text start point z0 of a DXF ATTRIB entity.

Definition at line 2917 of file attrib.c.

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

Referenced by dxf_attrib_init().

DxfPoint* dxf_attrib_get_p1 ( DxfAttrib attrib)

Get the alignment point p1 of a DXF ATTRIB entity.

Returns:
the alignment point.
Parameters:
attriba pointer to a DXF ATTRIB entity.

Definition at line 2958 of file attrib.c.

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

Referenced by dxf_attrib_init().

DxfAttrib* dxf_attrib_set_p1 ( DxfAttrib attrib,
DxfPoint p1 
)

Set the alignment point p1 of a DXF ATTRIB entity.

Returns:
a pointer to a DXF ATTRIB entity.
Parameters:
attriba pointer to a DXF ATTRIB entity.
p1a pointer to a DXF POINT entity.

Definition at line 2995 of file attrib.c.

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

Referenced by dxf_attrib_init().

double dxf_attrib_get_x1 ( DxfAttrib attrib)

Get the X-value x1 of the alignment of a DXF ATTRIB entity.

Returns:
the X-value of the point x1.
Parameters:
attriba pointer to a DXF ATTRIB entity.

Definition at line 3036 of file attrib.c.

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

Referenced by dxf_attrib_write().

DxfAttrib* dxf_attrib_set_x1 ( DxfAttrib attrib,
double  x1 
)

Set the X-value x1 of the alinment point of a DXF ATTRIB entity.

Returns:
a pointer to attrib when successful, or NULL when an error occurred.
Parameters:
attriba pointer to a DXF ATTRIB entity.
x1the X-value x1 of a DXF ATTRIB entity.

Definition at line 3076 of file attrib.c.

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

Referenced by dxf_attrib_init().

double dxf_attrib_get_y1 ( DxfAttrib attrib)

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

Returns:
the Y-value of the point y1.
Parameters:
attriba pointer to a DXF ATTRIB entity.

Definition at line 3117 of file attrib.c.

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

Referenced by dxf_attrib_write().

DxfAttrib* dxf_attrib_set_y1 ( DxfAttrib attrib,
double  y1 
)

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

Returns:
a pointer to attrib when successful, or NULL when an error occurred.
Parameters:
attriba pointer to a DXF ATTRIB entity.
y1the Y-value y1 of a DXF ATTRIB entity.

Definition at line 3157 of file attrib.c.

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

Referenced by dxf_attrib_init().

double dxf_attrib_get_z1 ( DxfAttrib attrib)

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

Returns:
the Y-value of the point z1.
Parameters:
attriba pointer to a DXF ATTRIB entity.

Definition at line 3198 of file attrib.c.

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

Referenced by dxf_attrib_write().

DxfAttrib* dxf_attrib_set_z1 ( DxfAttrib attrib,
double  z1 
)

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

Returns:
a pointer to attrib when successful, or NULL when an error occurred.
Parameters:
attriba pointer to a DXF ATTRIB entity.
z1the Z-value z1 of a DXF ATTRIB entity.

Definition at line 3238 of file attrib.c.

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

Referenced by dxf_attrib_init().

double dxf_attrib_get_height ( DxfAttrib attrib)

Get the height from a DXF ATTRIB entity.

Returns:
height.
Parameters:
attriba pointer to a DXF ATTRIB entity.

Definition at line 3278 of file attrib.c.

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

Referenced by dxf_attrib_write().

DxfAttrib* dxf_attrib_set_height ( DxfAttrib attrib,
double  height 
)

Set the height for a DXF ATTRIB entity.

Parameters:
attriba pointer to a DXF ATTRIB entity.
heightthe height to be set for the entity.

Definition at line 3313 of file attrib.c.

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

Referenced by dxf_attrib_init(), and dxf_attrib_write().

double dxf_attrib_get_rel_x_scale ( DxfAttrib attrib)

Get the relative X scale from a DXF ATTRIB entity.

Returns:
relative X scale.
Parameters:
attriba pointer to a DXF ATTRIB entity.

Definition at line 3353 of file attrib.c.

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

Referenced by dxf_attrib_write().

DxfAttrib* dxf_attrib_set_rel_x_scale ( DxfAttrib attrib,
double  rel_x_scale 
)

Set the relative X scale for a DXF ATTRIB entity.

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

Definition at line 3388 of file attrib.c.

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

Referenced by dxf_attrib_init(), and dxf_attrib_write().

double dxf_attrib_get_rot_angle ( DxfAttrib attrib)

Get the rotation angle from a DXF ATTRIB entity.

Returns:
rotation angle.

Todo:
Unify the rotation angle.

Parameters:
attriba pointer to a DXF ATTRIB entity.

Definition at line 3421 of file attrib.c.

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

Referenced by dxf_attrib_write().

DxfAttrib* dxf_attrib_set_rot_angle ( DxfAttrib attrib,
double  rot_angle 
)

Set the rotation angle for a DXF ATTRIB entity.

Todo:
Unify the rotation angle.

Parameters:
attriba pointer to a DXF ATTRIB entity.
rot_anglethe rotation angle to be set for the entity.

Definition at line 3450 of file attrib.c.

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

Referenced by dxf_attrib_init().

double dxf_attrib_get_obl_angle ( DxfAttrib attrib)

Get the oblique angle from a DXF ATTRIB entity.

Returns:
oblique angle.

Todo:
Unify the oblique angle.

Parameters:
attriba pointer to a DXF ATTRIB entity.

Definition at line 3484 of file attrib.c.

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

Referenced by dxf_attrib_write().

DxfAttrib* dxf_attrib_set_obl_angle ( DxfAttrib attrib,
double  obl_angle 
)

Set the oblique angle for a DXF ATTRIB entity.

Todo:
Unify the oblique angle.

Parameters:
attriba pointer to a DXF ATTRIB entity.
obl_anglethe oblique angle to be set for the entity.

Definition at line 3513 of file attrib.c.

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

Referenced by dxf_attrib_init().

int dxf_attrib_get_attr_flags ( DxfAttrib attrib)

Get the attribute flags from a DXF ATTRIB entity.

Returns:
attribute flags.
Parameters:
attriba pointer to a DXF ATTRIB entity.

Definition at line 3547 of file attrib.c.

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

Referenced by dxf_attrib_write().

DxfAttrib* dxf_attrib_set_attr_flags ( DxfAttrib attrib,
int  attr_flags 
)

Set the attribute flags for a DXF ATTRIB entity.

Parameters:
attriba pointer to a DXF ATTRIB entity.
attr_flagsthe attribute flags to be set for the entity.

Definition at line 3589 of file attrib.c.

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

Referenced by dxf_attrib_init().

int dxf_attrib_is_invisible ( DxfAttrib attrib)

Test if the attribute is invisible.

Returns:
TRUE when the attribute is invisible, or FALSE when the attribute is visible.
Parameters:
attribDXF ATTRIB entity.

Definition at line 3637 of file attrib.c.

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

int dxf_attrib_is_constant ( DxfAttrib attrib)

Test if the attribute is a constant attribute.

Returns:
TRUE when the attribute is a constant, or FALSE when the attribute is not a constant attribute.
Parameters:
attribDXF ATTRIB entity.

Definition at line 3668 of file attrib.c.

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

int dxf_attrib_is_verification_required ( DxfAttrib attrib)

Test if the attribute 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:
attribDXF ATTRIB entity.

Definition at line 3699 of file attrib.c.

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

int dxf_attrib_is_preset ( DxfAttrib attrib)

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

Returns:
TRUE when the attribute is preset, or FALSE when the attribute is not preset.
Parameters:
attribDXF ATTRIB entity.

Definition at line 3730 of file attrib.c.

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

int dxf_attrib_get_text_flags ( DxfAttrib attrib)

Get the text flags from a DXF ATTRIB entity.

Returns:
text flags.
Parameters:
attriba pointer to a DXF ATTRIB entity.

Definition at line 3760 of file attrib.c.

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

Referenced by dxf_attrib_write().

DxfAttrib* dxf_attrib_set_text_flags ( DxfAttrib attrib,
int  text_flags 
)

Set the text flags for a DXF ATTRIB entity.

Parameters:
attriba pointer to a DXF ATTRIB entity.
text_flagsthe text flags to be set for the entity.

Definition at line 3802 of file attrib.c.

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

Referenced by dxf_attrib_init().

int dxf_attrib_get_hor_align ( DxfAttrib attrib)

Get the horizontal alignment from a DXF ATTRIB entity.

Returns:
horizontal alignment.
Parameters:
attriba pointer to a DXF ATTRIB entity.

Definition at line 3849 of file attrib.c.

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

Referenced by dxf_attrib_write().

DxfAttrib* dxf_attrib_set_hor_align ( DxfAttrib attrib,
int  hor_align 
)

Set the horizontal alignment for a DXF ATTRIB entity.

Parameters:
attriba pointer to a DXF ATTRIB entity.
hor_alignthe horizontal alignment to be set for the entity.

Definition at line 3891 of file attrib.c.

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

Referenced by dxf_attrib_init(), and dxf_attrib_write().

int dxf_attrib_get_field_length ( DxfAttrib attrib)

Get the field length from a DXF ATTRIB entity.

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

Definition at line 3940 of file attrib.c.

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

Referenced by dxf_attrib_write().

DxfAttrib* dxf_attrib_set_field_length ( DxfAttrib attrib,
int  field_length 
)

Set the field length for a DXF ATTRIB entity.

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

Definition at line 3977 of file attrib.c.

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

Referenced by dxf_attrib_init().

int dxf_attrib_get_vert_align ( DxfAttrib attrib)

Get the vertical text alignment from a DXF ATTRIB entity.

Returns:
horizontal alignment.
Parameters:
attriba pointer to a DXF ATTRIB entity.

Definition at line 4017 of file attrib.c.

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

Referenced by dxf_attrib_write().

DxfAttrib* dxf_attrib_set_vert_align ( DxfAttrib attrib,
int  vert_align 
)

Set the vertical text alignment for a DXF ATTRIB entity.

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

Definition at line 4059 of file attrib.c.

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

Referenced by dxf_attrib_init(), and dxf_attrib_write().

double dxf_attrib_get_extr_x0 ( DxfAttrib attrib)

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

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

Definition at line 4107 of file attrib.c.

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

Referenced by dxf_attrib_write().

DxfAttrib* dxf_attrib_set_extr_x0 ( DxfAttrib attrib,
double  extr_x0 
)

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

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

Definition at line 4140 of file attrib.c.

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

Referenced by dxf_attrib_init().

double dxf_attrib_get_extr_y0 ( DxfAttrib attrib)

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

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

Definition at line 4175 of file attrib.c.

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

Referenced by dxf_attrib_write().

DxfAttrib* dxf_attrib_set_extr_y0 ( DxfAttrib attrib,
double  extr_y0 
)

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

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

Definition at line 4208 of file attrib.c.

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

Referenced by dxf_attrib_init().

double dxf_attrib_get_extr_z0 ( DxfAttrib attrib)

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

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

Definition at line 4243 of file attrib.c.

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

Referenced by dxf_attrib_write().

DxfAttrib* dxf_attrib_set_extr_z0 ( DxfAttrib attrib,
double  extr_z0 
)

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

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

Definition at line 4276 of file attrib.c.

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

Referenced by dxf_attrib_init().

DxfPoint* dxf_attrib_get_extrusion_vector_as_point ( DxfAttrib attrib)

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

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

Definition at line 4313 of file attrib.c.

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

Here is the call graph for this function:

DxfAttrib* dxf_attrib_set_extrusion_vector_from_point ( DxfAttrib attrib,
DxfPoint point 
)

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

Parameters:
attriba pointer to a DXF ATTRIB entity.
pointa pointer to a DXF POINT entity.

Definition at line 4355 of file attrib.c.

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

DxfAttrib* dxf_attrib_set_extrusion_vector ( DxfAttrib attrib,
double  extr_x0,
double  extr_y0,
double  extr_z0 
)

Set the extrusion vector for a DXF ATTRIB entity.

Parameters:
attriba pointer to a DXF ATTRIB 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 4395 of file attrib.c.

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

DxfAttrib* dxf_attrib_get_next ( DxfAttrib attrib)

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

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

Definition at line 4437 of file attrib.c.

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

DxfAttrib* dxf_attrib_set_next ( DxfAttrib attrib,
DxfAttrib next 
)

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

Parameters:
attriba pointer to a DXF ATTRIB entity.
nexta pointer to the next ATTRIB for the entity.

Definition at line 4473 of file attrib.c.

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

Referenced by dxf_attrib_init().

DxfAttrib* dxf_attrib_get_last ( DxfAttrib attrib)

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

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

Definition at line 4516 of file attrib.c.

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