libDXF 0.0.1
A library with DXF related functions written in C.
|
Header file for a DXF attribute entity (ATTRIB
).
More...
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 | |
DxfAttrib * | dxf_attrib_new () |
Allocate memory for a DXF ATTRIB . | |
DxfAttrib * | dxf_attrib_init (DxfAttrib *attrib) |
Allocate memory and initialize data fields in a DXF ATTRIB entity. | |
DxfAttrib * | dxf_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. | |
DxfAttrib * | dxf_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. | |
DxfAttrib * | dxf_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. | |
DxfAttrib * | dxf_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. | |
DxfAttrib * | dxf_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. | |
DxfAttrib * | dxf_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. | |
DxfAttrib * | dxf_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. | |
DxfAttrib * | dxf_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. | |
DxfAttrib * | dxf_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. | |
DxfAttrib * | dxf_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. | |
DxfAttrib * | dxf_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. | |
DxfAttrib * | dxf_attrib_set_shadow_mode (DxfAttrib *attrib, int16_t shadow_mode) |
Set the shadow_mode for a DXF ATTRIB entity. | |
DxfBinaryGraphicsData * | dxf_attrib_get_binary_graphics_data (DxfAttrib *attrib) |
Get the pointer to the binary_graphics_data from a DXF ATTRIB entity. | |
DxfAttrib * | dxf_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. | |
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. | |
char * | dxf_attrib_get_material (DxfAttrib *attrib) |
Get the pointer to the material from a DXF ATTRIB entity. | |
DxfAttrib * | dxf_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. | |
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. | |
int16_t | dxf_attrib_get_lineweight (DxfAttrib *attrib) |
Get the lineweight from a DXF ATTRIB entity. | |
DxfAttrib * | dxf_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. | |
DxfAttrib * | dxf_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. | |
DxfAttrib * | dxf_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. | |
DxfAttrib * | dxf_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. | |
DxfAttrib * | dxf_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. | |
DxfAttrib * | dxf_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. | |
DxfAttrib * | dxf_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. | |
DxfAttrib * | dxf_attrib_set_text_style (DxfAttrib *attrib, char *text_style) |
Set the text style for a DXF ATTRIB entity. | |
DxfPoint * | dxf_attrib_get_p0 (DxfAttrib *attrib) |
Get the text start point p0 of a DXF ATTRIB entity. | |
DxfAttrib * | dxf_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. | |
DxfAttrib * | dxf_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. | |
DxfAttrib * | dxf_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. | |
DxfAttrib * | dxf_attrib_set_z0 (DxfAttrib *attrib, double z0) |
Set the Z-value of the text start point z0 of a DXF ATTRIB entity. | |
DxfPoint * | dxf_attrib_get_p1 (DxfAttrib *attrib) |
Get the alignment point p1 of a DXF ATTRIB entity. | |
DxfAttrib * | dxf_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. | |
DxfAttrib * | dxf_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. | |
DxfAttrib * | dxf_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. | |
DxfAttrib * | dxf_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. | |
DxfAttrib * | dxf_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. | |
DxfAttrib * | dxf_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. | |
DxfAttrib * | dxf_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. | |
DxfAttrib * | dxf_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. | |
DxfAttrib * | dxf_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. | |
DxfAttrib * | dxf_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. | |
DxfAttrib * | dxf_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. | |
DxfAttrib * | dxf_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. | |
DxfAttrib * | dxf_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. | |
DxfAttrib * | dxf_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. | |
DxfAttrib * | dxf_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. | |
DxfAttrib * | dxf_attrib_set_extr_z0 (DxfAttrib *attrib, double extr_z0) |
Set the Z-value of the extrusion vector of a DXF ATTRIB entity. | |
DxfPoint * | dxf_attrib_get_extrusion_vector_as_point (DxfAttrib *attrib) |
Get the extrusion vector as a DXF POINT entity from a DXF ATTRIB entity. | |
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. | |
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. | |
DxfAttrib * | dxf_attrib_get_next (DxfAttrib *attrib) |
Get the pointer to the next ATTRIB entity from a DXF ATTRIB entity. | |
DxfAttrib * | dxf_attrib_set_next (DxfAttrib *attrib, DxfAttrib *next) |
Set the pointer to the next ATTRIB for a DXF ATTRIB entity. | |
DxfAttrib * | dxf_attrib_get_last (DxfAttrib *attrib) |
Get the pointer to the last ATTRIB entity from a linked list of DXF ATTRIB entities. |
Header file for a DXF attribute entity (ATTRIB
).
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 struct dxf_attrib_struct DxfAttrib |
DXF definition of an AutoCAD attribute entity (ATTRIB
).
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().
Allocate memory and initialize data fields in a DXF ATTRIB
entity.
NULL
when no memory was allocated, a pointer to the allocated memory when succesful. attrib | DXF 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().
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
.
attrib
. fp | DXF file pointer to an input file (or device). |
attrib | DXF 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.
Write DXF output for a DXF ATTRIB
entity.
fp | DXF file pointer to an output file (or device). |
attrib | DXF 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.
int dxf_attrib_free | ( | DxfAttrib * | attrib | ) |
Free the allocated memory for a DXF ATTRIB
and all it's data fields.
EXIT_SUCCESS
when done, or EXIT_FAILURE
when an error occurred. attrib | DXF ATTRIB entity. |
Definition at line 766 of file attrib.c.
References _, dxf_attrib_struct::binary_graphics_data, dxf_attrib_struct::color_name, dxf_attrib_struct::default_value, dxf_attrib_struct::dictionary_owner_hard, dxf_attrib_struct::dictionary_owner_soft, dxf_binary_graphics_data_free_chain(), DXF_DEBUG_BEGIN, DXF_DEBUG_END, dxf_point_free(), dxf_attrib_struct::layer, dxf_attrib_struct::linetype, dxf_attrib_struct::material, dxf_attrib_struct::next, dxf_attrib_struct::p0, dxf_attrib_struct::p1, dxf_attrib_struct::plot_style_name, dxf_attrib_struct::tag_value, and dxf_attrib_struct::text_style.
Referenced by dxf_attrib_free_chain().
void dxf_attrib_free_chain | ( | DxfAttrib * | attribs | ) |
Free the allocated memory for a chain of DXF ATTRIB
entities and all their data fields.
attribs | pointer 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.
int dxf_attrib_get_id_code | ( | DxfAttrib * | attrib | ) |
Get the ID code from a DXF ATTRIB
entity.
attrib | a 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().
Set the ID code for a DXF ATTRIB
entity.
attrib | a pointer to a DXF ATTRIB entity. |
id_code | Identification 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.
NULL
when an error occurred. attrib | a 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().
Set the linetype for a DXF ATTRIB
entity.
attrib | a pointer to a DXF ATTRIB entity. |
linetype | a 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.
NULL
when an error occurred. attrib | a 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().
Set the layer for a DXF ATTRIB
entity.
attrib | a pointer to a DXF ATTRIB entity. |
layer | a 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.
attrib | a 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().
Set the elevation for a DXF ATTRIB
entity.
attrib | a pointer to a DXF ATTRIB entity. |
elevation | the 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.
attrib | a 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().
Set the thickness for a DXF ATTRIB
entity.
attrib | a pointer to a DXF ATTRIB entity. |
thickness | the 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.
attrib | a 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().
Set the linetype scale for a DXF ATTRIB
entity.
attrib | a pointer to a DXF ATTRIB entity. |
linetype_scale | the 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.
attrib | a 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().
Set the visibility for a DXF ATTRIB
entity.
attrib | a pointer to a DXF ATTRIB entity. |
visibility | the 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.
attrib | a 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().
Set the color for a DXF ATTRIB
entity.
attrib | a pointer to a DXF ATTRIB entity. |
color | the 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.
attrib | a 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().
Set the paperspace flag for a DXF ATTRIB
entity.
attrib | a pointer to a DXF ATTRIB entity. |
paperspace | the 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.
graphics_data_size
value when successful, or EXIT_FAILURE
when an error occurred. attrib | a 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.
Set the graphics_data_size
value for a DXF ATTRIB
entity.
attrib
when successful, or NULL
when an error occurred. attrib | a pointer to a DXF ATTRIB entity. |
graphics_data_size | the 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.
shadow_mode
when successful, or EXIT_FAILURE
when an error occurred. attrib | a 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.
Set the shadow_mode
for a DXF ATTRIB
entity.
attrib
when successful, or NULL
when an error occurred. attrib | a pointer to a DXF ATTRIB entity. |
shadow_mode | the 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.
binary_graphics_data
.attrib | a 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.
attrib | a pointer to a DXF ATTRIB entity. |
data | a 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.
attrib | a 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.
attrib | a pointer to a DXF ATTRIB entity. |
dictionary_owner_soft | a 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.
material
when successful, or NULL
when an error occurred.attrib | a 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.
Set the pointer to the material
for a DXF ATTRIB
entity.
attrib
when successful, or NULL
when an error occurred. attrib | a pointer to a DXF ATTRIB entity. |
material | a 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.
attrib | a 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.
attrib | a pointer to a DXF ATTRIB entity. |
dictionary_owner_hard | a 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.
lineweight
when successful, or EXIT_FAILURE
when an error occurred. attrib | a 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.
Set the lineweight
for a DXF ATTRIB
entity.
attrib
when successful, or NULL
when an error occurred. attrib | a pointer to a DXF ATTRIB entity. |
lineweight | the 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.
plot_style_name
when sucessful, or NULL
when an error occurred. attrib | a 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.
Set the plot_style_name
for a DXF ATTRIB
entity.
attrib
when successful, or NULL
when an error occurred. attrib | a pointer to a DXF ATTRIB entity. |
plot_style_name | a 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.
color_value
when successful, or EXIT_FAILURE
when an error occurred. attrib | a 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.
Set the color_value
for a DXF ATTRIB
entity.
attrib
when successful, or NULL
when an error occurred. attrib | a pointer to a DXF ATTRIB entity. |
color_value | the 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.
color_name
when sucessful, or NULL
when an error occurred. attrib | a 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.
Set the color_name
for a DXF ATTRIB
entity.
attrib
when successful, or NULL
when an error occurred. attrib | a pointer to a DXF ATTRIB entity. |
color_name | a 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.
transparency
when successful, or EXIT_FAILURE
when an error occurred. attrib | a 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.
Set the transparency
for a DXF ATTRIB
entity.
attrib
when successful, or NULL
when an error occurred. attrib | a pointer to a DXF ATTRIB entity. |
transparency | the 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.
attrib | a 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().
Set the default value for a DXF ATTRIB
entity.
attrib | a pointer to a DXF ATTRIB entity. |
default_value | a 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.
attrib | a 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().
Set the tag value for a DXF ATTRIB
entity.
attrib | a pointer to a DXF ATTRIB entity. |
tag_value | a 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.
attrib | a 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().
Set the text style for a DXF ATTRIB
entity.
attrib | a pointer to a DXF ATTRIB entity. |
text_style | a 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().
Get the text start point p0
of a DXF ATTRIB
entity.
p0
. attrib | a 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().
Set the text start point p0
of a DXF ATTRIB
entity.
ATTRIB
entity. attrib | a pointer to a DXF ATTRIB entity. |
p0 | a 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.
x0
. attrib | a 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().
Set the X-value of the text start point x0
of a DXF ATTRIB
entity.
attrib
when successful, or NULL
when an error occurred. attrib | a pointer to a DXF ATTRIB entity. |
x0 | the 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.
y0
. attrib | a 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().
Set the Y-value of the text start point y0
of a DXF ATTRIB
entity.
attrib
when successful, or NULL
when an error occurred. attrib | a pointer to a DXF ATTRIB entity. |
y0 | the 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.
z0
. attrib | a 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().
Set the Z-value of the text start point z0
of a DXF ATTRIB
entity.
attrib
when successful, or NULL
when an error occurred. attrib | a pointer to a DXF ATTRIB entity. |
z0 | the 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().
Get the alignment point p1
of a DXF ATTRIB
entity.
attrib | a 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().
Set the alignment point p1
of a DXF ATTRIB
entity.
ATTRIB
entity. attrib | a pointer to a DXF ATTRIB entity. |
p1 | a 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.
x1
. attrib | a 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().
Set the X-value x1
of the alinment point of a DXF ATTRIB
entity.
attrib
when successful, or NULL
when an error occurred. attrib | a pointer to a DXF ATTRIB entity. |
x1 | the 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.
y1
. attrib | a 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().
Set the Y-value y1
of the alignment point of a DXF ATTRIB
entity.
attrib
when successful, or NULL
when an error occurred. attrib | a pointer to a DXF ATTRIB entity. |
y1 | the 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.
z1
. attrib | a 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().
Set the Z-value z1
of the alignment point of a DXF ATTRIB
entity.
attrib
when successful, or NULL
when an error occurred. attrib | a pointer to a DXF ATTRIB entity. |
z1 | the 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.
attrib | a 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().
Set the height for a DXF ATTRIB
entity.
attrib | a pointer to a DXF ATTRIB entity. |
height | the 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.
attrib | a 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().
Set the relative X scale for a DXF ATTRIB
entity.
attrib | a pointer to a DXF ATTRIB entity. |
rel_x_scale | the 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.
attrib | a 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().
Set the rotation angle for a DXF ATTRIB
entity.
attrib | a pointer to a DXF ATTRIB entity. |
rot_angle | the 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.
attrib | a 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().
Set the oblique angle for a DXF ATTRIB
entity.
attrib | a pointer to a DXF ATTRIB entity. |
obl_angle | the 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.
attrib | a 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().
Set the attribute flags for a DXF ATTRIB
entity.
attrib | a pointer to a DXF ATTRIB entity. |
attr_flags | the 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.
TRUE
when the attribute is invisible, or FALSE
when the attribute is visible. attrib | DXF 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.
TRUE
when the attribute is a constant, or FALSE
when the attribute is not a constant attribute. attrib | DXF 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.
TRUE
when the input needs to be verified, or FALSE
when the input needs not to be verified. attrib | DXF 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).
TRUE
when the attribute is preset, or FALSE
when the attribute is not preset. attrib | DXF 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.
attrib | a 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().
Set the text flags for a DXF ATTRIB
entity.
attrib | a pointer to a DXF ATTRIB entity. |
text_flags | the 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.
attrib | a 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().
Set the horizontal alignment for a DXF ATTRIB
entity.
attrib | a pointer to a DXF ATTRIB entity. |
hor_align | the 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.
attrib | a 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().
Set the field length for a DXF ATTRIB
entity.
attrib | a pointer to a DXF ATTRIB entity. |
field_length | the 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.
attrib | a 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().
Set the vertical text alignment for a DXF ATTRIB
entity.
attrib | a pointer to a DXF ATTDEF entity. |
vert_align | the 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.
attrib | a 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().
Set the X-value of the extrusion vector of a DXF ATTRIB
entity.
attrib
when successful, NULL
when an error occurred. attrib | a pointer to a DXF ATTRIB entity. |
extr_x0 | the 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.
attrib | a 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().
Set the Y-value of the extrusion vector of a DXF ATTRIB
entity.
attrib
when successful, NULL
when an error occurred. attrib | a pointer to a DXF ATTRIB entity. |
extr_y0 | the 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.
attrib | a 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().
Set the Z-value of the extrusion vector of a DXF ATTRIB
entity.
attrib
when successful, NULL
when an error occurred. attrib | a pointer to a DXF ATTRIB entity. |
extr_z0 | the 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().
Get the extrusion vector as a DXF POINT
entity from a DXF ATTRIB
entity.
POINT
containing the extrusion coordinates.POINT
. attrib | a 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.
Set the extrusion vector from a DXF POINT
for a DXF ATTRIB
entity.
attrib | a pointer to a DXF ATTRIB entity. |
point | a 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.
attrib | a pointer to a DXF ATTRIB 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 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.
Get the pointer to the next ATTRIB
entity from a DXF ATTRIB
entity.
ATTRIB
entity.attrib | a 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.
Set the pointer to the next ATTRIB
for a DXF ATTRIB
entity.
attrib | a pointer to a DXF ATTRIB entity. |
next | a 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().
Get the pointer to the last ATTRIB
entity from a linked list of DXF ATTRIB
entities.
ATTRIB
entity.attrib | a 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.