libDXF 0.0.1
A library with DXF related functions written in C.
|
Header file for a DXF attribute definition entity (ATTDEF
).
More...
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 | |
DxfAttdef * | dxf_attdef_new () |
Allocate memory for a DxfAttdef . | |
DxfAttdef * | dxf_attdef_init (DxfAttdef *attdef) |
Allocate memory and initialize data fields in a ATTDEF entity. | |
DxfAttdef * | dxf_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. | |
DxfAttdef * | dxf_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. | |
DxfAttdef * | dxf_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. | |
DxfAttdef * | dxf_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. | |
DxfAttdef * | dxf_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. | |
DxfAttdef * | dxf_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. | |
DxfAttdef * | dxf_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. | |
DxfAttdef * | dxf_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. | |
DxfAttdef * | dxf_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. | |
DxfAttdef * | dxf_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. | |
DxfAttdef * | dxf_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. | |
DxfAttdef * | dxf_attdef_set_shadow_mode (DxfAttdef *attdef, int16_t shadow_mode) |
Set the shadow_mode for a DXF ATTDEF entity. | |
DxfBinaryGraphicsData * | dxf_attdef_get_binary_graphics_data (DxfAttdef *attdef) |
Get the pointer to the binary_graphics_data from a DXF ATTDEF entity. | |
DxfAttdef * | dxf_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. | |
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. | |
char * | dxf_attdef_get_material (DxfAttdef *attdef) |
Get the pointer to the material from a DXF ATTDEF entity. | |
DxfAttdef * | dxf_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. | |
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. | |
int16_t | dxf_attdef_get_lineweight (DxfAttdef *attdef) |
Get the lineweight from a DXF ATTDEF entity. | |
DxfAttdef * | dxf_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. | |
DxfAttdef * | dxf_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. | |
DxfAttdef * | dxf_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. | |
DxfAttdef * | dxf_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. | |
DxfAttdef * | dxf_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. | |
DxfAttdef * | dxf_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. | |
DxfAttdef * | dxf_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. | |
DxfAttdef * | dxf_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. | |
DxfAttdef * | dxf_attdef_set_text_style (DxfAttdef *attdef, char *text_style) |
Set the text style for a DXF ATTDEF entity. | |
DxfPoint * | dxf_attdef_get_p0 (DxfAttdef *attdef) |
Get the first alignment point p0 of a DXF ATTDEF entity. | |
DxfAttdef * | dxf_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. | |
DxfAttdef * | dxf_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. | |
DxfAttdef * | dxf_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. | |
DxfAttdef * | dxf_attdef_set_z0 (DxfAttdef *attdef, double z0) |
Set the Z-value of the first alignment point z0 of a DXF ATTDEF entity. | |
DxfPoint * | dxf_attdef_get_p1 (DxfAttdef *attdef) |
Get the second alignment point p1 of a DXF ATTDEF entity. | |
DxfAttdef * | dxf_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. | |
DxfAttdef * | dxf_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. | |
DxfAttdef * | dxf_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. | |
DxfAttdef * | dxf_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. | |
DxfAttdef * | dxf_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. | |
DxfAttdef * | dxf_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. | |
DxfAttdef * | dxf_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. | |
DxfAttdef * | dxf_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. | |
DxfAttdef * | dxf_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. | |
DxfAttdef * | dxf_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. | |
DxfAttdef * | dxf_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. | |
DxfAttdef * | dxf_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. | |
DxfAttdef * | dxf_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. | |
DxfAttdef * | dxf_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. | |
DxfAttdef * | dxf_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. | |
DxfAttdef * | dxf_attdef_set_extr_z0 (DxfAttdef *attdef, double extr_z0) |
Set the Z-value of the extrusion vector of a DXF ATTDEF entity. | |
DxfPoint * | dxf_attdef_get_extrusion_vector_as_point (DxfAttdef *attdef) |
Get the extrusion vector as a DXF POINT entity from a DXF ATTDEF entity. | |
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. | |
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. | |
DxfAttdef * | dxf_attdef_get_next (DxfAttdef *attdef) |
Get the pointer to the next ATTDEF entity from a DXF ATTDEF entity. | |
DxfAttdef * | dxf_attdef_set_next (DxfAttdef *attdef, DxfAttdef *next) |
Set the pointer to the next ATTDEF for a DXF ATTDEF entity. | |
DxfAttdef * | dxf_attdef_get_last (DxfAttdef *attdef) |
Get the pointer to the last ATTDEF entity from a linked list DXF of ATTDEF entities. |
Header file for a DXF attribute definition entity (ATTDEF
).
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 struct dxf_attdef_struct DxfAttdef |
DXF definition of an AutoCAD attribute definition entity (ATTDEF
).
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().
Allocate memory and initialize data fields in a ATTDEF
entity.
NULL
when no memory was allocated, a pointer to the allocated memory when succesful. attdef | DXF 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().
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
.
attdef
. fp | DXF file pointer to an input file (or device). |
attdef | DXF 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.
Write DXF output to fp for a attribute definition entity.
fp | DXF file pointer to an output file (or device). |
attdef | attribute 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.
int dxf_attdef_free | ( | DxfAttdef * | attdef | ) |
Free the allocate memory for a DXF ATTDEF
and all it's data fields.
EXIT_SUCCESS
when done, or EXIT_FAILURE
when an error occurred. attdef | DXF 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.
attdefs | pointer 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.
int dxf_attdef_get_id_code | ( | DxfAttdef * | attdef | ) |
Get the ID code from a DXF ATTDEF
entity.
attdef | a 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().
Set the ID code for a DXF ATTDEF
entity.
attdef | a pointer to a DXF ATTDEF entity. |
id_code | Identification 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.
NULL
when an error occurred. attdef | a 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().
Set the linetype for a DXF ATTDEF
entity.
attdef | a pointer to a DXF ATTDEF entity. |
linetype | a 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.
NULL
when an error occurred. attdef | a 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().
Set the layer for a DXF ATTDEF
entity.
attdef | a pointer to a DXF ATTDEF entity. |
layer | a 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.
attdef | a 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.
Set the elevation for a DXF ATTDEF
entity.
attdef | a pointer to a DXF ATTDEF entity. |
elevation | the 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.
attdef | a 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().
Set the thickness for a DXF ATTDEF
entity.
attdef | a pointer to a DXF ATTDEF entity. |
thickness | the 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.
attdef | a 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().
Set the linetype scale for a DXF ATTDEF
entity.
attdef | a pointer to a DXF ATTDEF entity. |
linetype_scale | the 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.
attdef | a 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().
Set the visibility for a DXF ATTDEF
entity.
attdef | a pointer to a DXF ATTDEF entity. |
visibility | the 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.
attdef | a 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().
Set the color for a DXF ATTDEF
entity.
attdef | a pointer to a DXF ATTDEF entity. |
color | the 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.
attdef | a 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.
Set the paperspace flag for a DXF ATTDEF
entity.
attdef | a pointer to a DXF ATTDEF entity. |
paperspace | the 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.
graphics_data_size
value when successful, or EXIT_FAILURE
when an error occurred. attdef | a 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.
Set the graphics_data_size
value for a DXF ATTDEF
entity.
attdef
when successful, or NULL
when an error occurred. attdef | a pointer to a DXF ATTDEF entity. |
graphics_data_size | the 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.
shadow_mode
when successful, or EXIT_FAILURE
when an error occurred. attdef | a 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.
Set the shadow_mode
for a DXF ATTDEF
entity.
attdef
when successful, or NULL
when an error occurred. attdef | a pointer to a DXF ATTDEF entity. |
shadow_mode | the 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.
binary_graphics_data
.attdef | a 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.
attdef | a pointer to a DXF ATTDEF entity. |
data | a 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.
attdef | a 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.
attdef | a pointer to a DXF ATTDEF entity. |
dictionary_owner_soft | a 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.
material
when successful, or NULL
when an error occurred.attdef | a 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.
Set the pointer to the material
for a DXF ATTDEF
entity.
attdef
when successful, or NULL
when an error occurred. attdef | a pointer to a DXF ATTDEF entity. |
material | a 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.
attdef | a 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.
attdef | a pointer to a DXF ATTDEF entity. |
dictionary_owner_hard | a 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.
lineweight
when successful, or EXIT_FAILURE
when an error occurred. attdef | a 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.
Set the lineweight
for a DXF ATTDEF
entity.
attdef
when successful, or NULL
when an error occurred. attdef | a pointer to a DXF ATTDEF entity. |
lineweight | the 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.
plot_style_name
when sucessful, or NULL
when an error occurred. attdef | a 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.
Set the plot_style_name
for a DXF ATTDEF
entity.
attdef
when successful, or NULL
when an error occurred. attdef | a pointer to a DXF ATTDEF entity. |
plot_style_name | a 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.
color_value
when successful, or EXIT_FAILURE
when an error occurred. attdef | a 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.
Set the color_value
for a DXF ATTDEF
entity.
attdef
when successful, or NULL
when an error occurred. attdef | a pointer to a DXF ATTDEF entity. |
color_value | the 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.
color_name
when sucessful, or NULL
when an error occurred. attdef | a 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.
Set the color_name
for a DXF ATTDEF
entity.
attdef
when successful, or NULL
when an error occurred. attdef | a pointer to a DXF ATTDEF entity. |
color_name | a 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.
transparency
when successful, or EXIT_FAILURE
when an error occurred. attdef | a 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.
Set the transparency
for a DXF ATTDEF
entity.
attdef
when successful, or NULL
when an error occurred. attdef | a pointer to a DXF ATTDEF entity. |
transparency | the 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.
attdef | a 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().
Set the default value for a DXF ATTDEF
entity.
attdef | a pointer to a DXF ATTDEF entity. |
default_value | a 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.
attdef | a 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().
Set the tag value for a DXF ATTDEF
entity.
attdef | a pointer to a DXF ATTDEF entity. |
tag_value | a 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.
attdef | a 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().
Set the prompt value for a DXF ATTDEF
entity.
attdef | a pointer to a DXF ATTDEF entity. |
prompt_value | a 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.
attdef | a 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().
Set the text style for a DXF ATTDEF
entity.
attdef | a pointer to a DXF ATTDEF entity. |
text_style | a 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().
Get the first alignment point p0
of a DXF ATTDEF
entity.
p0
. attdef | a 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().
Set the first alignment point p0
of a DXF ATTDEF
entity.
attdef
when successful, NULL
when an error occurred. attdef | a pointer to a DXF ATTDEF entity. |
p0 | a 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.
x0
. attdef | a 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().
Set the X-value of the first alignment point x0
of a DXF ATTDEF
entity.
attdef
when successful, or NULL
when an error occurred. attdef | a pointer to a DXF ATTDEF entity. |
x0 | the 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.
y0
. attdef | a 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().
Set the Y-value of the first alignment point y0
of a DXF ATTDEF
entity.
attdef
when successful, or NULL
when an error occurred. attdef | a pointer to a DXF ATTDEF entity. |
y0 | the 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.
z0
. attdef | a 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().
Set the Z-value of the first alignment point z0
of a DXF ATTDEF
entity.
attdef
when successful, or NULL
when an error occurred. attdef | a pointer to a DXF ATTDEF entity. |
z0 | the 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().
Get the second alignment point p1
of a DXF ATTDEF
entity.
p1
. attdef | a 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().
Set the second alignment point p1
of a DXF ATTDEF
entity.
attdef
when successful, NULL
when an error occurred. attdef | a pointer to a DXF ATTDEF entity. |
p1 | a 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.
x1
. attdef | a 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().
Set the X-value of the second alignment point x1
of a DXF ATTDEF
entity.
attdef
when successful, or NULL
when an error occurred. attdef | a pointer to a DXF ATTDEF entity. |
x1 | the 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.
y1
. attdef | a 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().
Set the Y-value of the second alignment point y1
of a DXF ATTDEF
entity.
attdef
when successful, or NULL
when an error occurred. attdef | a pointer to a DXF ATTDEF entity. |
y1 | the 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.
z1
. attdef | a 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().
Set the Z-value of the second alignment point z1
of a DXF ATTDEF
entity.
attdef
when successful, or NULL
when an error occurred. attdef | a pointer to a DXF ATTDEF entity. |
z1 | the 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.
attdef | a 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().
Set the height for a DXF ATTDEF
entity.
attdef | a pointer to a DXF ATTDEF entity. |
height | the 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.
attdef | a 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().
Set the relative X scale for a DXF ATTDEF
entity.
attdef | a pointer to a DXF ATTDEF entity. |
rel_x_scale | the 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.
attdef | a 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().
Set the rotation angle for a DXF ATTDEF
entity.
attdef | a pointer to a DXF ATTDEF entity. |
rot_angle | the 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.
attdef | a 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().
Set the oblique angle for a DXF ATTDEF
entity.
attdef | a pointer to a DXF ATTDEF entity. |
obl_angle | the 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.
attdef | a 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().
Set the attribute flags for a DXF ATTDEF
entity.
attdef | a pointer to a DXF ATTDEF entity. |
attr_flags | the 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.
TRUE
when the attribute definition is invisible, or FALSE
when the attribute definition is visible. attdef | DXF 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.
TRUE
when the attribute definition is a constant, or FALSE
when the attribute definition is not a constant. attdef | DXF 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.
TRUE
when the input needs to be verified, or FALSE
when the input needs not to be verified. attdef | DXF 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).
TRUE
when the attributre definition is preset, or FALSE
when the attribute definition is not preset. attdef | DXF 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.
attdef | a 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().
Set the text flags for a DXF ATTDEF
entity.
attdef | a pointer to a DXF ATTDEF entity. |
text_flags | the 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.
attdef | a 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().
Set the horizontal alignment for a DXF ATTDEF
entity.
attdef | a pointer to a DXF ATTDEF entity. |
hor_align | the 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.
attdef | a 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().
Set the field length for a DXF ATTDEF
entity.
attdef | a pointer to a DXF ATTDEF entity. |
field_length | the 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.
attdef | a 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().
Set the vertical text alignment for a DXF ATTDEF
entity.
attdef | a pointer to a DXF ATTDEF entity. |
vert_align | the 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.
attdef | a 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().
Set the X-value of the extrusion vector of a DXF ATTDEF
entity.
attdef
when successful, NULL
when an error occurred. attdef | a pointer to a DXF ATTDEF entity. |
extr_x0 | the 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.
attdef | a 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().
Set the Y-value of the extrusion vector of a DXF ATTDEF
entity.
attdef
when successful, NULL
when an error occurred. attdef | a pointer to a DXF ATTDEF entity. |
extr_y0 | the 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.
attdef | a 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().
Set the Z-value of the extrusion vector of a DXF ATTDEF
entity.
attdef
when successful, NULL
when an error occurred. attdef | a pointer to a DXF ATTDEF entity. |
extr_z0 | the 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().
Get the extrusion vector as a DXF POINT
entity from a DXF ATTDEF
entity.
POINT
containing the extrusion coordinates.POINT
. attdef | a 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.
Set the extrusion vector from a DXF POINT
for a DXF ATTDEF
entity.
attdef | a pointer to a DXF ATTDEF entity. |
point | a 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.
attdef | a pointer to a DXF ATTDEF entity. |
extr_x0 | X-value of the extrusion direction. |
extr_y0 | Y-value of the extrusion direction. |
extr_z0 | Z-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.
Get the pointer to the next ATTDEF
entity from a DXF ATTDEF
entity.
ATTDEF
entity.attdef | a 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.
Set the pointer to the next ATTDEF
for a DXF ATTDEF
entity.
attdef | a pointer to a DXF ATTDEF entity. |
next | a 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().
Get the pointer to the last ATTDEF
entity from a linked list DXF of ATTDEF
entities.
ATTDEF
entity.attdef | a 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.