![]() |
libDXF 0.0.1
A library with DXF related functions written in C.
|
Functions for a DXF body entity (BODY).
More...
#include "body.h"
Go to the source code of this file.
Functions | |
| DxfBody * | dxf_body_new () |
Allocate memory for a DxfBody. | |
| DxfBody * | dxf_body_init (DxfBody *body) |
Allocate memory and initialize data fields in a BODY entity. | |
| DxfBody * | dxf_body_read (DxfFile *fp, DxfBody *body) |
Read data from a DXF file into a DXF BODY entity. | |
| int | dxf_body_write (DxfFile *fp, DxfBody *body) |
Write DXF output to a file for a DXF BODY entity. | |
| int | dxf_body_free (DxfBody *body) |
Free the allocated memory for a DXF BODY and all it's data fields. | |
| void | dxf_body_free_chain (DxfBody *bodies) |
Free the allocated memory for a chain of DXF BODY entities and all their data fields. | |
| int | dxf_body_get_id_code (DxfBody *body) |
Get the ID code from a DXF BODY entity. | |
| DxfBody * | dxf_body_set_id_code (DxfBody *body, int id_code) |
Set the ID code for a DXF BODY entity. | |
| char * | dxf_body_get_linetype (DxfBody *body) |
Get the linetype from a DXF BODY entity. | |
| DxfBody * | dxf_body_set_linetype (DxfBody *body, char *linetype) |
Set the linetype for a DXF BODY entity. | |
| char * | dxf_body_get_layer (DxfBody *body) |
Get the layer from a DXF BODY entity. | |
| DxfBody * | dxf_body_set_layer (DxfBody *body, char *layer) |
Set the layer for a DXF BODY entity. | |
| double | dxf_body_get_elevation (DxfBody *body) |
Get the elevation from a DXF BODY entity. | |
| DxfBody * | dxf_body_set_elevation (DxfBody *body, double elevation) |
Set the elevation for a DXF BODY entity. | |
| double | dxf_body_get_thickness (DxfBody *body) |
Get the thickness from a DXF BODY entity. | |
| DxfBody * | dxf_body_set_thickness (DxfBody *body, double thickness) |
Set the thickness for a DXF BODY entity. | |
| double | dxf_body_get_linetype_scale (DxfBody *body) |
Get the linetype scale from a DXF BODY entity. | |
| DxfBody * | dxf_body_set_linetype_scale (DxfBody *body, double linetype_scale) |
Set the linetype scale for a DXF BODY entity. | |
| int16_t | dxf_body_get_visibility (DxfBody *body) |
Get the visibility from a DXF BODY entity. | |
| DxfBody * | dxf_body_set_visibility (DxfBody *body, int16_t visibility) |
Set the visibility for a DXF BODY entity. | |
| int | dxf_body_get_color (DxfBody *body) |
Get the color from a DXF BODY entity. | |
| DxfBody * | dxf_body_set_color (DxfBody *body, int color) |
Set the color for a DXF BODY entity. | |
| int | dxf_body_get_paperspace (DxfBody *body) |
Get the paperspace flag value from a DXF BODY entity. | |
| DxfBody * | dxf_body_set_paperspace (DxfBody *body, int paperspace) |
Set the paperspace flag for a DXF BODY entity. | |
| int | dxf_body_get_graphics_data_size (DxfBody *body) |
Get the graphics_data_size value from a DXF BODY entity. | |
| DxfBody * | dxf_body_set_graphics_data_size (DxfBody *body, int graphics_data_size) |
Set the graphics_data_size value for a DXF BODY entity. | |
| int16_t | dxf_body_get_shadow_mode (DxfBody *body) |
Get the shadow_mode from a DXF BODY entity. | |
| DxfBody * | dxf_body_set_shadow_mode (DxfBody *body, int16_t shadow_mode) |
Set the shadow_mode for a DXF BODY entity. | |
| DxfBinaryGraphicsData * | dxf_body_get_binary_graphics_data (DxfBody *body) |
Get the pointer to the binary graphics data from a DXF BODY entity. | |
| DxfBody * | dxf_body_set_binary_graphics_data (DxfBody *body, DxfBinaryGraphicsData *data) |
Set the pointer to the binary_graphics_data for a DXF BODY entity. | |
| char * | dxf_body_get_dictionary_owner_soft (DxfBody *body) |
Get the soft pointer to the dictionary owner from a DXF BODY entity. | |
| DxfBody * | dxf_body_set_dictionary_owner_soft (DxfBody *body, char *dictionary_owner_soft) |
Set the pointer to the dictionary_owner_soft for a DXF BODY entity. | |
| char * | dxf_body_get_material (DxfBody *body) |
Get the pointer to the material from a DXF BODY entity. | |
| DxfBody * | dxf_body_set_material (DxfBody *body, char *material) |
Set the pointer to the material for a DXF BODY entity. | |
| char * | dxf_body_get_dictionary_owner_hard (DxfBody *body) |
Get the hard pointer to the dictionary owner from a DXF BODY entity. | |
| DxfBody * | dxf_body_set_dictionary_owner_hard (DxfBody *body, char *dictionary_owner_hard) |
Set the pointer to the dictionary_owner_hard for a DXF BODY entity. | |
| int16_t | dxf_body_get_lineweight (DxfBody *body) |
Get the lineweight from a DXF BODY entity. | |
| DxfBody * | dxf_body_set_lineweight (DxfBody *body, int16_t lineweight) |
Set the lineweight for a DXF BODY entity. | |
| char * | dxf_body_get_plot_style_name (DxfBody *body) |
Get the plot_style_name from a DXF BODY entity. | |
| DxfBody * | dxf_body_set_plot_style_name (DxfBody *body, char *plot_style_name) |
Set the plot_style_name for a DXF BODY entity. | |
| long | dxf_body_get_color_value (DxfBody *body) |
Get the color_value from a DXF BODY entity. | |
| DxfBody * | dxf_body_set_color_value (DxfBody *body, long color_value) |
Set the color_value for a DXF BODY entity. | |
| char * | dxf_body_get_color_name (DxfBody *body) |
Get the color_name from a DXF BODY entity. | |
| DxfBody * | dxf_body_set_color_name (DxfBody *body, char *color_name) |
Set the color_name for a DXF BODY entity. | |
| long | dxf_body_get_transparency (DxfBody *body) |
Get the transparency from a DXF BODY entity. | |
| DxfBody * | dxf_body_set_transparency (DxfBody *body, long transparency) |
Set the transparency for a DXF BODY entity. | |
| DxfProprietaryData * | dxf_body_get_proprietary_data (DxfBody *body) |
Get the pointer to the proprietary_data from a DXF BODY entity. | |
| DxfBody * | dxf_body_set_proprietary_data (DxfBody *body, DxfProprietaryData *proprietary_data) |
Set the proprietary data for a DXF BODY entity. | |
| DxfProprietaryData * | dxf_body_get_additional_proprietary_data (DxfBody *body) |
Get the additional_proprietary_data from a DXF BODY entity. | |
| DxfBody * | dxf_body_set_additional_proprietary_data (DxfBody *body, DxfProprietaryData *additional_proprietary_data) |
Set the pointer to the additional proprietary data for a DXF BODY entity. | |
| int | dxf_body_get_modeler_format_version_number (DxfBody *body) |
Get the modeler format version number from a DXF BODY entity. | |
| DxfBody * | dxf_body_set_modeler_format_version_number (DxfBody *body, int modeler_format_version_number) |
Set the modeler format version number for a DXF BODY entity. | |
| DxfBody * | dxf_body_get_next (DxfBody *body) |
Get the pointer to the next BODY entity from a DXF BODY entity. | |
| DxfBody * | dxf_body_set_next (DxfBody *body, DxfBody *next) |
Set the pointer to the next BODY for a DXF BODY entity. | |
| DxfBody * | dxf_body_get_last (DxfBody *body) |
Get the pointer to the last BODY entity from a linked list of DXF BODY entities. | |
Functions for a DXF body entity (BODY).
BODY entity requires AutoCAD version R13 or higher.
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 body.c.
| DxfBody* dxf_body_new | ( | ) |
Allocate memory for a DxfBody.
Fill the memory contents with zeros.
Definition at line 53 of file body.c.
References _, DXF_DEBUG_BEGIN, and DXF_DEBUG_END.
Referenced by dxf_body_init(), and dxf_body_read().
Allocate memory and initialize data fields in a BODY entity.
NULL when no memory was allocated, a pointer to the allocated memory when succesful. | body | DXF BODY entity. |
Definition at line 91 of file body.c.
References _, dxf_body_struct::additional_proprietary_data, dxf_body_struct::binary_graphics_data, dxf_binary_graphics_data_init(), dxf_body_get_binary_graphics_data(), dxf_body_new(), dxf_body_set_binary_graphics_data(), dxf_body_set_color(), dxf_body_set_color_name(), dxf_body_set_color_value(), dxf_body_set_dictionary_owner_hard(), dxf_body_set_dictionary_owner_soft(), dxf_body_set_elevation(), dxf_body_set_graphics_data_size(), dxf_body_set_id_code(), dxf_body_set_layer(), dxf_body_set_linetype(), dxf_body_set_linetype_scale(), dxf_body_set_lineweight(), dxf_body_set_material(), dxf_body_set_modeler_format_version_number(), dxf_body_set_next(), dxf_body_set_paperspace(), dxf_body_set_plot_style_name(), dxf_body_set_proprietary_data(), dxf_body_set_shadow_mode(), dxf_body_set_thickness(), dxf_body_set_transparency(), dxf_body_set_visibility(), DXF_COLOR_BYLAYER, DXF_DEBUG_BEGIN, DXF_DEBUG_END, DXF_DEFAULT_LAYER, DXF_DEFAULT_LINETYPE, DXF_DEFAULT_LINETYPE_SCALE, DXF_DEFAULT_VISIBILITY, DXF_MODELSPACE, dxf_proprietary_data_init(), and dxf_body_struct::proprietary_data.
Referenced by dxf_body_read().

Read data from a DXF file into a DXF BODY entity.
The last line read from file contained the string "BODY".
Now follows some data for the BODY, 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 body.
body. | fp | DXF file pointer to an input file (or device). |
| body | DXF BODY entity. |
Definition at line 159 of file body.c.
References _, dxf_file_struct::acad_version_number, dxf_body_struct::additional_proprietary_data, AutoCAD_11, AutoCAD_13, dxf_body_struct::color, dxf_body_struct::dictionary_owner_hard, dxf_body_struct::dictionary_owner_soft, dxf_body_init(), dxf_body_new(), DXF_DEBUG_BEGIN, DXF_DEBUG_END, DXF_DEFAULT_LAYER, DXF_DEFAULT_LINETYPE, DXF_FLATLAND, dxf_proprietary_data_init(), dxf_body_struct::elevation, dxf_file_struct::filename, dxf_file_struct::fp, dxf_body_struct::id_code, dxf_body_struct::layer, dxf_proprietary_data_struct::line, dxf_file_struct::line_number, dxf_body_struct::linetype, dxf_body_struct::modeler_format_version_number, dxf_proprietary_data_struct::next, dxf_proprietary_data_struct::order, dxf_body_struct::paperspace, dxf_body_struct::proprietary_data, and dxf_body_struct::thickness.

Write DXF output to a file for a DXF BODY entity.
EXIT_SUCCESS when done, or EXIT_FAILURE when an error occurred while reading from the input file. | fp | DXF file pointer to an output file (or device). |
| body | DXF BODY entity. |
Definition at line 367 of file body.c.
References _, dxf_file_struct::acad_version_number, AutoCAD_11, AutoCAD_13, AutoCAD_14, dxf_body_get_additional_proprietary_data(), dxf_body_get_color(), dxf_body_get_dictionary_owner_hard(), dxf_body_get_dictionary_owner_soft(), dxf_body_get_elevation(), dxf_body_get_id_code(), dxf_body_get_layer(), dxf_body_get_linetype(), dxf_body_get_linetype_scale(), dxf_body_get_modeler_format_version_number(), dxf_body_get_paperspace(), dxf_body_get_proprietary_data(), dxf_body_get_thickness(), dxf_body_get_visibility(), dxf_body_set_layer(), dxf_body_set_linetype(), DXF_COLOR_BYLAYER, DXF_DEBUG_BEGIN, DXF_DEBUG_END, DXF_DEFAULT_LAYER, DXF_DEFAULT_LINETYPE, DXF_FLATLAND, DXF_PAPERSPACE, dxf_proprietary_data_get_line(), dxf_proprietary_data_get_next(), dxf_file_struct::fp, and dxf_proprietary_data_struct::order.

| int dxf_body_free | ( | DxfBody * | body | ) |
Free the allocated memory for a DXF BODY and all it's data fields.
EXIT_SUCCESS when done, or EXIT_FAILURE when an error occurred. | body | Pointer to the memory occupied by the DXF BODY entity. |
Definition at line 536 of file body.c.
References _, dxf_body_struct::additional_proprietary_data, dxf_body_struct::dictionary_owner_hard, dxf_body_struct::dictionary_owner_soft, DXF_DEBUG_BEGIN, DXF_DEBUG_END, dxf_proprietary_data_free_chain(), dxf_body_struct::layer, dxf_body_struct::linetype, dxf_body_struct::next, and dxf_body_struct::proprietary_data.
Referenced by dxf_body_free_chain().

| void dxf_body_free_chain | ( | DxfBody * | bodies | ) |
Free the allocated memory for a chain of DXF BODY entities and all their data fields.
| bodies | pointer to the chain of DXF BODY entities. |
Definition at line 581 of file body.c.
References _, dxf_body_free(), DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_body_struct::next.

| int dxf_body_get_id_code | ( | DxfBody * | body | ) |
Get the ID code from a DXF BODY entity.
| body | a pointer to a DXF BODY entity. |
Definition at line 614 of file body.c.
References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_body_struct::id_code.
Referenced by dxf_body_write().
Set the ID code for a DXF BODY entity.
| body | a pointer to a DXF BODY entity. |
| id_code | Identification number for the entity. This is to be an unique (sequential) number in the DXF file. |
Definition at line 649 of file body.c.
References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_body_struct::id_code.
Referenced by dxf_body_init().
| char* dxf_body_get_linetype | ( | DxfBody * | body | ) |
Get the linetype from a DXF BODY entity.
NULL when an error occurred. | body | a pointer to a DXF BODY entity. |
Definition at line 691 of file body.c.
References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_body_struct::linetype.
Referenced by dxf_body_write().
Set the linetype for a DXF BODY entity.
| body | a pointer to a DXF BODY entity. |
| linetype | a string containing the linetype for the entity. |
Definition at line 726 of file body.c.
References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_body_struct::linetype.
Referenced by dxf_body_init(), and dxf_body_write().
| char* dxf_body_get_layer | ( | DxfBody * | body | ) |
Get the layer from a DXF BODY entity.
NULL when an error occurred. | body | a pointer to a DXF BODY entity. |
Definition at line 766 of file body.c.
References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_body_struct::layer.
Referenced by dxf_body_write().
Set the layer for a DXF BODY entity.
| body | a pointer to a DXF BODY entity. |
| layer | a string containing the layer for the entity. |
Definition at line 801 of file body.c.
References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_body_struct::layer.
Referenced by dxf_body_init(), and dxf_body_write().
| double dxf_body_get_elevation | ( | DxfBody * | body | ) |
Get the elevation from a DXF BODY entity.
| body | a pointer to a DXF BODY entity. |
Definition at line 841 of file body.c.
References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_body_struct::elevation.
Referenced by dxf_body_write().
Set the elevation for a DXF BODY entity.
| body | a pointer to a DXF BODY entity. |
| elevation | the elevation to be set for the entity. |
Definition at line 869 of file body.c.
References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_body_struct::elevation.
Referenced by dxf_body_init().
| double dxf_body_get_thickness | ( | DxfBody * | body | ) |
Get the thickness from a DXF BODY entity.
| body | a pointer to a DXF BODY entity. |
Definition at line 902 of file body.c.
References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_body_struct::thickness.
Referenced by dxf_body_write().
Set the thickness for a DXF BODY entity.
| body | a pointer to a DXF BODY entity. |
| thickness | the thickness to be set for the entity. |
Definition at line 937 of file body.c.
References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_body_struct::thickness.
Referenced by dxf_body_init().
| double dxf_body_get_linetype_scale | ( | DxfBody * | body | ) |
Get the linetype scale from a DXF BODY entity.
| body | a pointer to a DXF BODY entity. |
Definition at line 977 of file body.c.
References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_body_struct::linetype_scale.
Referenced by dxf_body_write().
Set the linetype scale for a DXF BODY entity.
| body | a pointer to a DXF BODY entity. |
| linetype_scale | the linetype scale to be set for the entity. |
Definition at line 1012 of file body.c.
References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_body_struct::linetype_scale.
Referenced by dxf_body_init().
| int16_t dxf_body_get_visibility | ( | DxfBody * | body | ) |
Get the visibility from a DXF BODY entity.
| body | a pointer to a DXF BODY entity. |
Definition at line 1052 of file body.c.
References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_body_struct::visibility.
Referenced by dxf_body_write().
Set the visibility for a DXF BODY entity.
| body | a pointer to a DXF BODY entity. |
| visibility | the visibility to be set for the entity. |
Definition at line 1094 of file body.c.
References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_body_struct::visibility.
Referenced by dxf_body_init().
| int dxf_body_get_color | ( | DxfBody * | body | ) |
Get the color from a DXF BODY entity.
| body | a pointer to a DXF BODY entity. |
Definition at line 1141 of file body.c.
References _, dxf_body_struct::color, DXF_DEBUG_BEGIN, and DXF_DEBUG_END.
Referenced by dxf_body_write().
Set the color for a DXF BODY entity.
| body | a pointer to a DXF BODY entity. |
| color | the color to be set for the entity. |
Definition at line 1175 of file body.c.
References _, dxf_body_struct::color, DXF_DEBUG_BEGIN, and DXF_DEBUG_END.
Referenced by dxf_body_init().
| int dxf_body_get_paperspace | ( | DxfBody * | body | ) |
Get the paperspace flag value from a DXF BODY entity.
| body | a pointer to a DXF BODY entity. |
Definition at line 1216 of file body.c.
References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_body_struct::paperspace.
Referenced by dxf_body_write().
Set the paperspace flag for a DXF BODY entity.
| body | a pointer to a DXF BODY entity. |
| paperspace | the paperspace flag value to be set for the entity. |
Definition at line 1256 of file body.c.
References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_body_struct::paperspace.
Referenced by dxf_body_init().
| int dxf_body_get_graphics_data_size | ( | DxfBody * | body | ) |
Get the graphics_data_size value from a DXF BODY entity.
graphics_data_size value when successful, or EXIT_FAILURE when an error occurred. | body | a pointer to a DXF BODY entity. |
Definition at line 1304 of file body.c.
References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_body_struct::graphics_data_size.
Set the graphics_data_size value for a DXF BODY entity.
body when successful, or NULL when an error occurred. | body | a pointer to a DXF BODY entity. |
| graphics_data_size | the graphics_data_size value to be set for the entity. |
Definition at line 1347 of file body.c.
References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_body_struct::graphics_data_size.
Referenced by dxf_body_init().
| int16_t dxf_body_get_shadow_mode | ( | DxfBody * | body | ) |
Get the shadow_mode from a DXF BODY entity.
shadow_mode when successful, or EXIT_FAILURE when an error occurred. | body | a pointer to a DXF BODY entity. |
Definition at line 1396 of file body.c.
References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_body_struct::shadow_mode.
Set the shadow_mode for a DXF BODY entity.
body when successful, or NULL when an error occurred. | body | a pointer to a DXF BODY entity. |
| shadow_mode | the shadow mode to be set for the entity. |
Definition at line 1441 of file body.c.
References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_body_struct::shadow_mode.
Referenced by dxf_body_init().
| DxfBinaryGraphicsData* dxf_body_get_binary_graphics_data | ( | DxfBody * | body | ) |
Get the pointer to the binary graphics data from a DXF BODY entity.
| body | a pointer to a DXF BODY entity. |
Definition at line 1491 of file body.c.
References _, dxf_body_struct::binary_graphics_data, DXF_DEBUG_BEGIN, and DXF_DEBUG_END.
Referenced by dxf_body_init().
| DxfBody* dxf_body_set_binary_graphics_data | ( | DxfBody * | body, |
| DxfBinaryGraphicsData * | data | ||
| ) |
Set the pointer to the binary_graphics_data for a DXF BODY entity.
body when successful, or NULL when an error occurred. | body | a pointer to a DXF BODY entity. |
| data | a string containing the pointer to the binary_graphics_data for the entity. |
Definition at line 1530 of file body.c.
References _, dxf_body_struct::binary_graphics_data, DXF_DEBUG_BEGIN, and DXF_DEBUG_END.
Referenced by dxf_body_init().
| char* dxf_body_get_dictionary_owner_soft | ( | DxfBody * | body | ) |
Get the soft pointer to the dictionary owner from a DXF BODY entity.
| body | a pointer to a DXF BODY entity. |
Definition at line 1574 of file body.c.
References _, dxf_body_struct::dictionary_owner_soft, DXF_DEBUG_BEGIN, and DXF_DEBUG_END.
Referenced by dxf_body_write().
Set the pointer to the dictionary_owner_soft for a DXF BODY entity.
| body | a pointer to a DXF BODY entity. |
| dictionary_owner_soft | a string containing the pointer to the dictionary_owner_soft for the entity. |
Definition at line 1610 of file body.c.
References _, dxf_body_struct::dictionary_owner_soft, DXF_DEBUG_BEGIN, and DXF_DEBUG_END.
Referenced by dxf_body_init().
| char* dxf_body_get_material | ( | DxfBody * | body | ) |
Get the pointer to the material from a DXF BODY entity.
material when successful, or NULL when an error occurred.| body | a pointer to a DXF BODY entity. |
Definition at line 1655 of file body.c.
References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_body_struct::material.
Set the pointer to the material for a DXF BODY entity.
body when successful, or NULL when an error occurred. | body | a pointer to a DXF BODY entity. |
| material | a string containing the pointer to the material for the entity. |
Definition at line 1693 of file body.c.
References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_body_struct::material.
Referenced by dxf_body_init().
| char* dxf_body_get_dictionary_owner_hard | ( | DxfBody * | body | ) |
Get the hard pointer to the dictionary owner from a DXF BODY entity.
| body | a pointer to a DXF BODY entity. |
Definition at line 1737 of file body.c.
References _, dxf_body_struct::dictionary_owner_hard, DXF_DEBUG_BEGIN, and DXF_DEBUG_END.
Referenced by dxf_body_write().
Set the pointer to the dictionary_owner_hard for a DXF BODY entity.
| body | a pointer to a DXF BODY entity. |
| dictionary_owner_hard | a string containing the pointer to the dictionary_owner_hard for the entity. |
Definition at line 1773 of file body.c.
References _, dxf_body_struct::dictionary_owner_hard, DXF_DEBUG_BEGIN, and DXF_DEBUG_END.
Referenced by dxf_body_init().
| int16_t dxf_body_get_lineweight | ( | DxfBody * | body | ) |
Get the lineweight from a DXF BODY entity.
lineweight when successful, or EXIT_FAILURE when an error occurred. | body | a pointer to a DXF BODY entity. |
Definition at line 1815 of file body.c.
References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_body_struct::lineweight.
Set the lineweight for a DXF BODY entity.
body when successful, or NULL when an error occurred. | body | a pointer to a DXF BODY entity. |
| lineweight | the lineweight to be set for the entity. |
Definition at line 1846 of file body.c.
References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_body_struct::lineweight.
Referenced by dxf_body_init().
| char* dxf_body_get_plot_style_name | ( | DxfBody * | body | ) |
Get the plot_style_name from a DXF BODY entity.
plot_style_name when sucessful, or NULL when an error occurred. | body | a pointer to a DXF BODY entity. |
Definition at line 1880 of file body.c.
References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_body_struct::plot_style_name.
Set the plot_style_name for a DXF BODY entity.
body when successful, or NULL when an error occurred. | body | a pointer to a DXF BODY entity. |
| plot_style_name | a string containing the plot_style_name for the entity. |
Definition at line 1918 of file body.c.
References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_body_struct::plot_style_name.
Referenced by dxf_body_init().
| long dxf_body_get_color_value | ( | DxfBody * | body | ) |
Get the color_value from a DXF BODY entity.
color_value when successful, or EXIT_FAILURE when an error occurred. | body | a pointer to a DXF BODY entity. |
Definition at line 1960 of file body.c.
References _, dxf_body_struct::color_value, DXF_DEBUG_BEGIN, and DXF_DEBUG_END.
Set the color_value for a DXF BODY entity.
body when successful, or NULL when an error occurred. | body | a pointer to a DXF BODY entity. |
| color_value | the color_value to be set for the entity. |
Definition at line 1991 of file body.c.
References _, dxf_body_struct::color_value, DXF_DEBUG_BEGIN, and DXF_DEBUG_END.
Referenced by dxf_body_init().
| char* dxf_body_get_color_name | ( | DxfBody * | body | ) |
Get the color_name from a DXF BODY entity.
color_name when sucessful, or NULL when an error occurred. | body | a pointer to a DXF BODY entity. |
Definition at line 2025 of file body.c.
References _, dxf_body_struct::color_name, DXF_DEBUG_BEGIN, and DXF_DEBUG_END.
Set the color_name for a DXF BODY entity.
body when successful, or NULL when an error occurred. | body | a pointer to a DXF BODY entity. |
| color_name | a string containing the color_name for the entity. |
Definition at line 2063 of file body.c.
References _, dxf_body_struct::color_name, DXF_DEBUG_BEGIN, and DXF_DEBUG_END.
Referenced by dxf_body_init().
| long dxf_body_get_transparency | ( | DxfBody * | body | ) |
Get the transparency from a DXF BODY entity.
transparency when successful, or EXIT_FAILURE when an error occurred. | body | a pointer to a DXF BODY entity. |
Definition at line 2105 of file body.c.
References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_body_struct::transparency.
Set the transparency for a DXF BODY entity.
body when successful, or NULL when an error occurred. | body | a pointer to a DXF BODY entity. |
| transparency | the transparency to be set for the entity. |
Definition at line 2136 of file body.c.
References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_body_struct::transparency.
Referenced by dxf_body_init().
| DxfProprietaryData* dxf_body_get_proprietary_data | ( | DxfBody * | body | ) |
Get the pointer to the proprietary_data from a DXF BODY entity.
proprietary_data.| body | a pointer to a DXF BODY entity. |
Definition at line 2172 of file body.c.
References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_body_struct::proprietary_data.
Referenced by dxf_body_write().
| DxfBody* dxf_body_set_proprietary_data | ( | DxfBody * | body, |
| DxfProprietaryData * | proprietary_data | ||
| ) |
Set the proprietary data for a DXF BODY entity.
| body | a pointer to a DXF BODY entity. |
| proprietary_data | a pointer to a linked list containing the proprietary_data for the entity. |
Definition at line 2207 of file body.c.
References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_body_struct::proprietary_data.
Referenced by dxf_body_init().
| DxfProprietaryData* dxf_body_get_additional_proprietary_data | ( | DxfBody * | body | ) |
Get the additional_proprietary_data from a DXF BODY entity.
additional_proprietary_data.| body | a pointer to a DXF BODY entity. |
Definition at line 2250 of file body.c.
References _, dxf_body_struct::additional_proprietary_data, DXF_DEBUG_BEGIN, and DXF_DEBUG_END.
Referenced by dxf_body_write().
| DxfBody* dxf_body_set_additional_proprietary_data | ( | DxfBody * | body, |
| DxfProprietaryData * | additional_proprietary_data | ||
| ) |
Set the pointer to the additional proprietary data for a DXF BODY entity.
| body | a pointer to a DXF BODY entity. |
| additional_proprietary_data | an array containing the additional proprietary data for the entity. |
Definition at line 2286 of file body.c.
References _, dxf_body_struct::additional_proprietary_data, DXF_DEBUG_BEGIN, and DXF_DEBUG_END.
| int dxf_body_get_modeler_format_version_number | ( | DxfBody * | body | ) |
Get the modeler format version number from a DXF BODY entity.
| body | a pointer to a DXF BODY entity. |
Definition at line 2327 of file body.c.
References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_body_struct::modeler_format_version_number.
Referenced by dxf_body_write().
| DxfBody* dxf_body_set_modeler_format_version_number | ( | DxfBody * | body, |
| int | modeler_format_version_number | ||
| ) |
Set the modeler format version number for a DXF BODY entity.
| body | a pointer to a DXF BODY entity. |
| modeler_format_version_number | Modeler format version number (currently = 1). |
Definition at line 2362 of file body.c.
References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_body_struct::modeler_format_version_number.
Referenced by dxf_body_init().
Get the pointer to the next BODY entity from a DXF BODY entity.
BODY entity.| body | a pointer to a DXF BODY entity. |
Definition at line 2405 of file body.c.
References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_body_struct::next.
Set the pointer to the next BODY for a DXF BODY entity.
| body | a pointer to a DXF BODY entity. |
| next | a pointer to the next BODY for the entity. |
Definition at line 2441 of file body.c.
References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_body_struct::next.
Referenced by dxf_body_init().
Get the pointer to the last BODY entity from a linked list of DXF BODY entities.
BODY entity.| body | a pointer to a DXF BODY entity. |
Definition at line 2484 of file body.c.
References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_body_struct::next.
1.7.3