libDXF 0.0.1
A library with DXF related functions written in C.
Functions

3dsolid.c File Reference

Functions for a DXF 3D solid entity (3DSOLID). More...

#include "3dsolid.h"
Include dependency graph for 3dsolid.c:

Go to the source code of this file.

Functions

Dxf3dsoliddxf_3dsolid_new ()
 Allocate memory for a DXF 3DSOLID.
Dxf3dsoliddxf_3dsolid_init (Dxf3dsolid *solid)
 Allocate memory and initialize data fields in a 3DSOLID entity.
Dxf3dsoliddxf_3dsolid_read (DxfFile *fp, Dxf3dsolid *solid)
 Read data from a DXF file into a DXF 3DSOLID entity.
int dxf_3dsolid_write (DxfFile *fp, Dxf3dsolid *solid)
 Write DXF output to a file for a DXF 3DSOLID entity.
int dxf_3dsolid_free (Dxf3dsolid *solid)
 Free the allocated memory for a DXF 3DSOLID and all it's data fields.
void dxf_3dsolid_free_chain (Dxf3dsolid *solids)
 Free the allocated memory for a chain of DXF 3DSOLID entities and all their data fields.
int dxf_3dsolid_get_id_code (Dxf3dsolid *solid)
 Get the ID code from a DXF 3DSOLID entity.
Dxf3dsoliddxf_3dsolid_set_id_code (Dxf3dsolid *solid, int id_code)
 Set the ID code for a DXF 3DSOLID entity.
char * dxf_3dsolid_get_linetype (Dxf3dsolid *solid)
 Get the linetype from a DXF 3DSOLID entity.
Dxf3dsoliddxf_3dsolid_set_linetype (Dxf3dsolid *solid, char *linetype)
 Set the linetype for a DXF 3DSOLID entity.
char * dxf_3dsolid_get_layer (Dxf3dsolid *solid)
 Get the layer from a DXF 3DSOLID entity.
Dxf3dsoliddxf_3dsolid_set_layer (Dxf3dsolid *solid, char *layer)
 Set the layer for a DXF 3DSOLID entity.
double dxf_3dsolid_get_elevation (Dxf3dsolid *solid)
 Get the elevation from a DXF 3DSOLID entity.
Dxf3dsoliddxf_3dsolid_set_elevation (Dxf3dsolid *solid, double elevation)
 Set the elevation for a DXF 3DSOLID entity.
double dxf_3dsolid_get_thickness (Dxf3dsolid *solid)
 Get the thickness from a DXF 3DSOLID entity.
Dxf3dsoliddxf_3dsolid_set_thickness (Dxf3dsolid *solid, double thickness)
 Set the thickness for a DXF 3DSOLID entity.
double dxf_3dsolid_get_linetype_scale (Dxf3dsolid *solid)
 Get the linetype scale from a DXF 3DSOLID entity.
Dxf3dsoliddxf_3dsolid_set_linetype_scale (Dxf3dsolid *solid, double linetype_scale)
 Set the linetype scale for a DXF 3DSOLID entity.
int16_t dxf_3dsolid_get_visibility (Dxf3dsolid *solid)
 Get the visibility from a DXF 3DSOLID entity.
Dxf3dsoliddxf_3dsolid_set_visibility (Dxf3dsolid *solid, int16_t visibility)
 Set the visibility for a DXF 3DSOLID entity.
int dxf_3dsolid_get_color (Dxf3dsolid *solid)
 Get the color from a DXF 3DSOLID entity.
Dxf3dsoliddxf_3dsolid_set_color (Dxf3dsolid *solid, int color)
 Set the color for a DXF 3DSOLID entity.
int dxf_3dsolid_get_paperspace (Dxf3dsolid *solid)
 Get the paperspace flag value from a DXF 3DSOLID entity.
Dxf3dsoliddxf_3dsolid_set_paperspace (Dxf3dsolid *solid, int paperspace)
 Set the paperspace flag for a DXF 3DSOLID entity.
int dxf_3dsolid_get_graphics_data_size (Dxf3dsolid *solid)
 Get the graphics_data_size value from a DXF 3DSOLID entity.
Dxf3dsoliddxf_3dsolid_set_graphics_data_size (Dxf3dsolid *solid, int graphics_data_size)
 Set the graphics_data_size value for a DXF 3DSOLID entity.
int16_t dxf_3dsolid_get_shadow_mode (Dxf3dsolid *solid)
 Get the shadow_mode from a DXF 3DSOLID entity.
Dxf3dsoliddxf_3dsolid_set_shadow_mode (Dxf3dsolid *solid, int16_t shadow_mode)
 Set the shadow_mode for a DXF 3DSOLID entity.
DxfBinaryGraphicsDatadxf_3dsolid_get_binary_graphics_data (Dxf3dsolid *solid)
 Get the pointer to the binary graphics data from a DXF 3DSOLID entity.
Dxf3dsoliddxf_3dsolid_set_binary_graphics_data (Dxf3dsolid *solid, DxfBinaryGraphicsData *data)
 Set the pointer to the binary_graphics_data for a DXF 3DSOLID entity.
char * dxf_3dsolid_get_dictionary_owner_soft (Dxf3dsolid *solid)
 Get the soft pointer to the dictionary owner from a DXF 3DSOLID entity.
Dxf3dsoliddxf_3dsolid_set_dictionary_owner_soft (Dxf3dsolid *solid, char *dictionary_owner_soft)
 Set the pointer to the dictionary_owner_soft for a DXF 3DSOLID entity.
char * dxf_3dsolid_get_material (Dxf3dsolid *solid)
 Get the pointer to the material from a DXF 3DSOLID entity.
Dxf3dsoliddxf_3dsolid_set_material (Dxf3dsolid *solid, char *material)
 Set the pointer to the material for a DXF 3DSOLID entity.
char * dxf_3dsolid_get_dictionary_owner_hard (Dxf3dsolid *solid)
 Get the hard pointer to the dictionary owner from a DXF 3DSOLID entity.
Dxf3dsoliddxf_3dsolid_set_dictionary_owner_hard (Dxf3dsolid *solid, char *dictionary_owner_hard)
 Set the pointer to the dictionary_owner_hard for a DXF 3DSOLID entity.
int16_t dxf_3dsolid_get_lineweight (Dxf3dsolid *solid)
 Get the lineweight from a DXF 3DSOLID entity.
Dxf3dsoliddxf_3dsolid_set_lineweight (Dxf3dsolid *solid, int16_t lineweight)
 Set the lineweight for a DXF 3DSOLID entity.
char * dxf_3dsolid_get_plot_style_name (Dxf3dsolid *solid)
 Get the plot_style_name from a DXF 3DSOLID entity.
Dxf3dsoliddxf_3dsolid_set_plot_style_name (Dxf3dsolid *solid, char *plot_style_name)
 Set the plot_style_name for a DXF 3DSOLID entity.
long dxf_3dsolid_get_color_value (Dxf3dsolid *solid)
 Get the color_value from a DXF 3DSOLID entity.
Dxf3dsoliddxf_3dsolid_set_color_value (Dxf3dsolid *solid, long color_value)
 Set the color_value for a DXF 3DSOLID entity.
char * dxf_3dsolid_get_color_name (Dxf3dsolid *solid)
 Get the color_name from a DXF 3DSOLID entity.
Dxf3dsoliddxf_3dsolid_set_color_name (Dxf3dsolid *solid, char *color_name)
 Set the color_name for a DXF 3DSOLID entity.
long dxf_3dsolid_get_transparency (Dxf3dsolid *solid)
 Get the transparency from a DXF 3DSOLID entity.
Dxf3dsoliddxf_3dsolid_set_transparency (Dxf3dsolid *solid, long transparency)
 Set the transparency for a DXF 3DSOLID entity.
DxfProprietaryDatadxf_3dsolid_get_proprietary_data (Dxf3dsolid *solid)
 Get the pointer to the proprietary_data from a DXF 3DSOLID entity.
Dxf3dsoliddxf_3dsolid_set_proprietary_data (Dxf3dsolid *solid, DxfProprietaryData *proprietary_data)
 Set the proprietary_data for a DXF 3DSOLID entity.
DxfProprietaryDatadxf_3dsolid_get_additional_proprietary_data (Dxf3dsolid *solid)
 Get the pointer to the additional_proprietary_data from a DXF 3DSOLID entity.
Dxf3dsoliddxf_3dsolid_set_additional_proprietary_data (Dxf3dsolid *solid, DxfProprietaryData *additional_proprietary_data)
 Set the additional_proprietary_data for a DXF 3DSOLID entity.
int dxf_3dsolid_get_modeler_format_version_number (Dxf3dsolid *solid)
 Get the modeler format version number from a DXF 3DSOLID entity.
Dxf3dsoliddxf_3dsolid_set_modeler_format_version_number (Dxf3dsolid *solid, int modeler_format_version_number)
 Set the modeler format version number for a DXF 3DSOLID entity.
char * dxf_3dsolid_get_history (Dxf3dsolid *solid)
 Get the pointer to the history from a DXF 3DSOLID entity.
Dxf3dsoliddxf_3dsolid_set_history (Dxf3dsolid *solid, char *history)
 Set the pointer to the history for a DXF 3DSOLID entity.
Dxf3dsoliddxf_3dsolid_get_next (Dxf3dsolid *solid)
 Get the pointer to the next 3DSOLID entity from a DXF 3DSOLID entity.
Dxf3dsoliddxf_3dsolid_set_next (Dxf3dsolid *solid, Dxf3dsolid *next)
 Set the pointer to the next 3DSOLID for a DXF 3DSOLID entity.
Dxf3dsoliddxf_3dsolid_get_last (Dxf3dsolid *solid)
 Get the pointer to the last 3DSOLID entity from a linked list of DXF 3DSOLID entity.

Detailed Description

Functions for a DXF 3D solid entity (3DSOLID).

Author:
Copyright (C) 2012, 2013, 2014, 2015, 2016 by Bert Timmerman <bert.timmerman@xs4all.nl>.
Version:
The 3DSOLID entity was introduced in DXF R13.
Warning:
dxf_3dsolid_new(), dxf_3dsolid_init(), dxf_3dsolid_read() and dxf_3dsolid_free() are backward compatible with versions R10 .. R12 to allow for reading DXF data generated with other CAD software.
When writing DXF data to file with versions before DXF R13 a warning message is given.
Version:
According to DXF R10 (backward compatibility).
According to DXF R11 (backward compatibility).
According to DXF R12 (backward compatibility).
According to DXF R13.
According to DXF R14.

Copyright Notices.


This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to:
Free Software Foundation, Inc.,
59 Temple Place,
Suite 330,
Boston,
MA 02111 USA.

Drawing eXchange Format (DXF) is a defacto industry standard for the exchange of drawing files between various Computer Aided Drafting programs.
DXF is an industry standard designed by Autodesk(TM).
For more details see http://www.autodesk.com.


Definition in file 3dsolid.c.


Function Documentation

Dxf3dsolid* dxf_3dsolid_new ( )

Allocate memory for a DXF 3DSOLID.

Fill the memory contents with zeros.

Definition at line 60 of file 3dsolid.c.

References _, DXF_DEBUG_BEGIN, and DXF_DEBUG_END.

Referenced by dxf_3dsolid_init(), and dxf_3dsolid_read().

Dxf3dsolid* dxf_3dsolid_init ( Dxf3dsolid solid)

Allocate memory and initialize data fields in a 3DSOLID entity.

Returns:
NULL when no memory was allocated, a pointer to the allocated memory when succesful.
Parameters:
solida pointer to a DXF 3DSOLID entity.

Definition at line 98 of file 3dsolid.c.

References _, dxf_3dsolid_struct::additional_proprietary_data, dxf_3dsolid_get_binary_graphics_data(), dxf_3dsolid_new(), dxf_3dsolid_set_additional_proprietary_data(), dxf_3dsolid_set_binary_graphics_data(), dxf_3dsolid_set_color(), dxf_3dsolid_set_color_name(), dxf_3dsolid_set_color_value(), dxf_3dsolid_set_dictionary_owner_hard(), dxf_3dsolid_set_dictionary_owner_soft(), dxf_3dsolid_set_elevation(), dxf_3dsolid_set_graphics_data_size(), dxf_3dsolid_set_history(), dxf_3dsolid_set_id_code(), dxf_3dsolid_set_layer(), dxf_3dsolid_set_linetype(), dxf_3dsolid_set_linetype_scale(), dxf_3dsolid_set_lineweight(), dxf_3dsolid_set_material(), dxf_3dsolid_set_modeler_format_version_number(), dxf_3dsolid_set_next(), dxf_3dsolid_set_paperspace(), dxf_3dsolid_set_plot_style_name(), dxf_3dsolid_set_proprietary_data(), dxf_3dsolid_set_shadow_mode(), dxf_3dsolid_set_thickness(), dxf_3dsolid_set_transparency(), dxf_3dsolid_set_visibility(), 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_VISIBILITY, DXF_MODELSPACE, dxf_proprietary_data_init(), and dxf_3dsolid_struct::proprietary_data.

Referenced by dxf_3dsolid_read().

Here is the call graph for this function:

Dxf3dsolid* dxf_3dsolid_read ( DxfFile fp,
Dxf3dsolid solid 
)

Read data from a DXF file into a DXF 3DSOLID entity.

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

Returns:
a pointer to solid.
Parameters:
fpa DXF file pointer to an input file (or device).
solida pointer to a DXF 3DSOLID entity.

Definition at line 167 of file 3dsolid.c.

References _, dxf_file_struct::acad_version_number, dxf_3dsolid_struct::additional_proprietary_data, AutoCAD_13, dxf_3dsolid_struct::binary_graphics_data, dxf_3dsolid_struct::color, dxf_3dsolid_struct::color_name, dxf_3dsolid_struct::color_value, dxf_binary_graphics_data_struct::data_line, dxf_3dsolid_struct::dictionary_owner_hard, dxf_3dsolid_struct::dictionary_owner_soft, dxf_3dsolid_init(), dxf_3dsolid_new(), dxf_binary_graphics_data_init(), DXF_DEBUG_BEGIN, DXF_DEBUG_END, DXF_DEFAULT_LAYER, DXF_DEFAULT_LINETYPE, dxf_proprietary_data_init(), dxf_3dsolid_struct::elevation, dxf_file_struct::filename, dxf_file_struct::fp, dxf_3dsolid_struct::graphics_data_size, dxf_3dsolid_struct::history, dxf_3dsolid_struct::id_code, dxf_3dsolid_struct::layer, dxf_proprietary_data_struct::line, dxf_file_struct::line_number, dxf_3dsolid_struct::linetype, dxf_3dsolid_struct::linetype_scale, dxf_3dsolid_struct::lineweight, dxf_3dsolid_struct::material, dxf_3dsolid_struct::modeler_format_version_number, dxf_binary_graphics_data_struct::next, dxf_proprietary_data_struct::next, dxf_proprietary_data_struct::order, dxf_3dsolid_struct::paperspace, dxf_3dsolid_struct::plot_style_name, dxf_3dsolid_struct::proprietary_data, dxf_3dsolid_struct::shadow_mode, dxf_3dsolid_struct::thickness, dxf_3dsolid_struct::transparency, and dxf_3dsolid_struct::visibility.

Here is the call graph for this function:

int dxf_3dsolid_write ( DxfFile fp,
Dxf3dsolid solid 
)

Write DXF output to a file for a DXF 3DSOLID entity.

Returns:
EXIT_SUCCESS when done, or EXIT_FAILURE when an error occurred.

Todo:
for version R14.
Implementing the start of application-defined group "{application_name", with Group code 102.
For example: "{ACAD_REACTORS" indicates the start of the AutoCAD persistent reactors group.

application-defined codes: Group codes and values within the 102 groups are application defined (optional).

End of group, "}" (optional), with Group code 102.

Parameters:
fpa DXF file pointer to an output file (or device).
solida pointer to a DXF 3DSOLID entity.

Definition at line 470 of file 3dsolid.c.

References _, dxf_file_struct::acad_version_number, AutoCAD_11, AutoCAD_13, AutoCAD_14, AutoCAD_2000, AutoCAD_2002, AutoCAD_2004, AutoCAD_2008, AutoCAD_2009, dxf_3dsolid_get_additional_proprietary_data(), dxf_3dsolid_get_binary_graphics_data(), dxf_3dsolid_get_color(), dxf_3dsolid_get_color_name(), dxf_3dsolid_get_color_value(), dxf_3dsolid_get_dictionary_owner_hard(), dxf_3dsolid_get_dictionary_owner_soft(), dxf_3dsolid_get_elevation(), dxf_3dsolid_get_graphics_data_size(), dxf_3dsolid_get_history(), dxf_3dsolid_get_id_code(), dxf_3dsolid_get_layer(), dxf_3dsolid_get_linetype(), dxf_3dsolid_get_linetype_scale(), dxf_3dsolid_get_lineweight(), dxf_3dsolid_get_material(), dxf_3dsolid_get_modeler_format_version_number(), dxf_3dsolid_get_paperspace(), dxf_3dsolid_get_plot_style_name(), dxf_3dsolid_get_proprietary_data(), dxf_3dsolid_get_shadow_mode(), dxf_3dsolid_get_thickness(), dxf_3dsolid_get_transparency(), dxf_3dsolid_get_visibility(), dxf_3dsolid_set_layer(), dxf_3dsolid_set_linetype(), dxf_binary_graphics_data_get_data_line(), dxf_binary_graphics_data_get_next(), 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.

Here is the call graph for this function:

int dxf_3dsolid_free ( Dxf3dsolid solid)

Free the allocated memory for a DXF 3DSOLID and all it's data fields.

Returns:
EXIT_SUCCESS when done, or EXIT_FAILURE when an error occurred.
Parameters:
solida pointer to the memory occupied by the DXF 3DSOLID entity.

Definition at line 681 of file 3dsolid.c.

References _, dxf_3dsolid_get_additional_proprietary_data(), dxf_3dsolid_get_binary_graphics_data(), dxf_3dsolid_get_color_name(), dxf_3dsolid_get_dictionary_owner_hard(), dxf_3dsolid_get_dictionary_owner_soft(), dxf_3dsolid_get_history(), dxf_3dsolid_get_layer(), dxf_3dsolid_get_linetype(), dxf_3dsolid_get_material(), dxf_3dsolid_get_plot_style_name(), dxf_3dsolid_get_proprietary_data(), dxf_binary_graphics_data_free_chain(), DXF_DEBUG_BEGIN, DXF_DEBUG_END, dxf_proprietary_data_free_chain(), and dxf_3dsolid_struct::next.

Referenced by dxf_3dsolid_free_chain().

Here is the call graph for this function:

void dxf_3dsolid_free_chain ( Dxf3dsolid solids)

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

Parameters:
solidsa pointer to the chain of DXF 3DSOLID entities.

Definition at line 731 of file 3dsolid.c.

References _, dxf_3dsolid_free(), DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_3dsolid_struct::next.

Here is the call graph for this function:

int dxf_3dsolid_get_id_code ( Dxf3dsolid solid)

Get the ID code from a DXF 3DSOLID entity.

Returns:
ID code.
Parameters:
solida pointer to a DXF 3DSOLID entity.

Definition at line 764 of file 3dsolid.c.

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

Referenced by dxf_3dsolid_write().

Dxf3dsolid* dxf_3dsolid_set_id_code ( Dxf3dsolid solid,
int  id_code 
)

Set the ID code for a DXF 3DSOLID entity.

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

Definition at line 799 of file 3dsolid.c.

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

Referenced by dxf_3dsolid_init().

char* dxf_3dsolid_get_linetype ( Dxf3dsolid solid)

Get the linetype from a DXF 3DSOLID entity.

Returns:
linetype when sucessful, NULL when an error occurred.
Parameters:
solida pointer to a DXF 3DSOLID entity.

Definition at line 841 of file 3dsolid.c.

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

Referenced by dxf_3dsolid_free(), and dxf_3dsolid_write().

Dxf3dsolid* dxf_3dsolid_set_linetype ( Dxf3dsolid solid,
char *  linetype 
)

Set the linetype for a DXF 3DSOLID entity.

Parameters:
solida pointer to a DXF 3DSOLID entity.
linetypea string containing the linetype for the entity.

Definition at line 876 of file 3dsolid.c.

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

Referenced by dxf_3dsolid_init(), and dxf_3dsolid_write().

char* dxf_3dsolid_get_layer ( Dxf3dsolid solid)

Get the layer from a DXF 3DSOLID entity.

Returns:
layer when sucessful, NULL when an error occurred.
Parameters:
solida pointer to a DXF 3DSOLID entity.

Definition at line 916 of file 3dsolid.c.

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

Referenced by dxf_3dsolid_free(), and dxf_3dsolid_write().

Dxf3dsolid* dxf_3dsolid_set_layer ( Dxf3dsolid solid,
char *  layer 
)

Set the layer for a DXF 3DSOLID entity.

Parameters:
solida pointer to a DXF 3DSOLID entity.
layera string containing the layer for the entity.

Definition at line 951 of file 3dsolid.c.

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

Referenced by dxf_3dsolid_init(), and dxf_3dsolid_write().

double dxf_3dsolid_get_elevation ( Dxf3dsolid solid)

Get the elevation from a DXF 3DSOLID entity.

Returns:
elevation.
Parameters:
solida pointer to a DXF 3DSOLID entity.

Definition at line 991 of file 3dsolid.c.

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

Referenced by dxf_3dsolid_write().

Dxf3dsolid* dxf_3dsolid_set_elevation ( Dxf3dsolid solid,
double  elevation 
)

Set the elevation for a DXF 3DSOLID entity.

Parameters:
solida pointer to a DXF 3DSOLID entity.
elevationthe elevation to be set for the entity.

Definition at line 1019 of file 3dsolid.c.

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

Referenced by dxf_3dsolid_init().

double dxf_3dsolid_get_thickness ( Dxf3dsolid solid)

Get the thickness from a DXF 3DSOLID entity.

Returns:
thickness.
Parameters:
solida pointer to a DXF 3DSOLID entity.

Definition at line 1052 of file 3dsolid.c.

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

Referenced by dxf_3dsolid_write().

Dxf3dsolid* dxf_3dsolid_set_thickness ( Dxf3dsolid solid,
double  thickness 
)

Set the thickness for a DXF 3DSOLID entity.

Parameters:
solida pointer to a DXF 3DSOLID entity.
thicknessthe thickness to be set for the entity.

Definition at line 1087 of file 3dsolid.c.

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

Referenced by dxf_3dsolid_init().

double dxf_3dsolid_get_linetype_scale ( Dxf3dsolid solid)

Get the linetype scale from a DXF 3DSOLID entity.

Returns:
linetype scale.
Parameters:
solida pointer to a DXF 3DSOLID entity.

Definition at line 1127 of file 3dsolid.c.

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

Referenced by dxf_3dsolid_write().

Dxf3dsolid* dxf_3dsolid_set_linetype_scale ( Dxf3dsolid solid,
double  linetype_scale 
)

Set the linetype scale for a DXF 3DSOLID entity.

Parameters:
solida pointer to a DXF 3DSOLID entity.
linetype_scalethe linetype scale to be set for the entity.

Definition at line 1162 of file 3dsolid.c.

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

Referenced by dxf_3dsolid_init().

int16_t dxf_3dsolid_get_visibility ( Dxf3dsolid solid)

Get the visibility from a DXF 3DSOLID entity.

Returns:
visibility.
Parameters:
solida pointer to a DXF 3DSOLID entity.

Definition at line 1202 of file 3dsolid.c.

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

Referenced by dxf_3dsolid_write().

Dxf3dsolid* dxf_3dsolid_set_visibility ( Dxf3dsolid solid,
int16_t  visibility 
)

Set the visibility for a DXF 3DSOLID entity.

Parameters:
solida pointer to a DXF 3DSOLID entity.
visibilitythe visibility to be set for the entity.

Definition at line 1244 of file 3dsolid.c.

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

Referenced by dxf_3dsolid_init().

int dxf_3dsolid_get_color ( Dxf3dsolid solid)

Get the color from a DXF 3DSOLID entity.

Returns:
color.
Parameters:
solida pointer to a DXF 3DSOLID entity.

Definition at line 1291 of file 3dsolid.c.

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

Referenced by dxf_3dsolid_write().

Dxf3dsolid* dxf_3dsolid_set_color ( Dxf3dsolid solid,
int  color 
)

Set the color for a DXF 3DSOLID entity.

Parameters:
solida pointer to a DXF 3DSOLID entity.
colorthe color to be set for the entity.

Definition at line 1325 of file 3dsolid.c.

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

Referenced by dxf_3dsolid_init().

int dxf_3dsolid_get_paperspace ( Dxf3dsolid solid)

Get the paperspace flag value from a DXF 3DSOLID entity.

Returns:
paperspace flag value.
Parameters:
solida pointer to a DXF 3DSOLID entity.

Definition at line 1364 of file 3dsolid.c.

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

Referenced by dxf_3dsolid_write().

Dxf3dsolid* dxf_3dsolid_set_paperspace ( Dxf3dsolid solid,
int  paperspace 
)

Set the paperspace flag for a DXF 3DSOLID entity.

Parameters:
solida pointer to a DXF 3DSOLID entity.
paperspacethe paperspace flag value to be set for the entity.

Definition at line 1404 of file 3dsolid.c.

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

Referenced by dxf_3dsolid_init().

int dxf_3dsolid_get_graphics_data_size ( Dxf3dsolid solid)

Get the graphics_data_size value from a DXF 3DSOLID entity.

Returns:
graphics_data_size value when successful, or EXIT_FAILURE when an error occurred.
Parameters:
solida pointer to a DXF 3DSOLID entity.

Definition at line 1452 of file 3dsolid.c.

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

Referenced by dxf_3dsolid_write().

Dxf3dsolid* dxf_3dsolid_set_graphics_data_size ( Dxf3dsolid solid,
int  graphics_data_size 
)

Set the graphics_data_size value for a DXF 3DSOLID entity.

Returns:
a pointer to solid when successful, or NULL when an error occurred.
Parameters:
solida pointer to a DXF 3DSOLID entity.
graphics_data_sizethe graphics_data_size value to be set for the entity.

Definition at line 1495 of file 3dsolid.c.

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

Referenced by dxf_3dsolid_init().

int16_t dxf_3dsolid_get_shadow_mode ( Dxf3dsolid solid)

Get the shadow_mode from a DXF 3DSOLID entity.

Returns:
shadow_mode when successful, or EXIT_FAILURE when an error occurred.
Parameters:
solida pointer to a DXF 3DSOLID entity.

Definition at line 1544 of file 3dsolid.c.

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

Referenced by dxf_3dsolid_write().

Dxf3dsolid* dxf_3dsolid_set_shadow_mode ( Dxf3dsolid solid,
int16_t  shadow_mode 
)

Set the shadow_mode for a DXF 3DSOLID entity.

Returns:
a pointer to solid when successful, or NULL when an error occurred.
Parameters:
solida pointer to a DXF 3DSOLID entity.
shadow_modethe shadow mode to be set for the entity.

Definition at line 1589 of file 3dsolid.c.

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

Referenced by dxf_3dsolid_init().

DxfBinaryGraphicsData* dxf_3dsolid_get_binary_graphics_data ( Dxf3dsolid solid)

Get the pointer to the binary graphics data from a DXF 3DSOLID entity.

Returns:
pointer to the binary graphics data.
Warning:
No checks are performed on the returned pointer.
Parameters:
solida pointer to a DXF 3DSOLID entity.

Definition at line 1639 of file 3dsolid.c.

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

Referenced by dxf_3dsolid_free(), dxf_3dsolid_init(), and dxf_3dsolid_write().

Dxf3dsolid* dxf_3dsolid_set_binary_graphics_data ( Dxf3dsolid solid,
DxfBinaryGraphicsData data 
)

Set the pointer to the binary_graphics_data for a DXF 3DSOLID entity.

Returns:
a pointer to solid when successful, or NULL when an error occurred.
Parameters:
solida pointer to a DXF 3DSOLID entity.
dataa string containing the pointer to the binary_graphics_data for the entity.

Definition at line 1678 of file 3dsolid.c.

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

Referenced by dxf_3dsolid_init().

char* dxf_3dsolid_get_dictionary_owner_soft ( Dxf3dsolid solid)

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

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

Definition at line 1722 of file 3dsolid.c.

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

Referenced by dxf_3dsolid_free(), and dxf_3dsolid_write().

Dxf3dsolid* dxf_3dsolid_set_dictionary_owner_soft ( Dxf3dsolid solid,
char *  dictionary_owner_soft 
)

Set the pointer to the dictionary_owner_soft for a DXF 3DSOLID entity.

Parameters:
solida pointer to a DXF 3DSOLID entity.
dictionary_owner_softa string containing the pointer to the dictionary_owner_soft for the entity.

Definition at line 1758 of file 3dsolid.c.

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

Referenced by dxf_3dsolid_init().

char* dxf_3dsolid_get_material ( Dxf3dsolid solid)

Get the pointer to the material from a DXF 3DSOLID entity.

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

Definition at line 1803 of file 3dsolid.c.

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

Referenced by dxf_3dsolid_free(), and dxf_3dsolid_write().

Dxf3dsolid* dxf_3dsolid_set_material ( Dxf3dsolid solid,
char *  material 
)

Set the pointer to the material for a DXF 3DSOLID entity.

Returns:
a pointer to solid when successful, or NULL when an error occurred.
Parameters:
solida pointer to a DXF 3DSOLID entity.
materiala string containing the pointer to the material for the entity.

Definition at line 1841 of file 3dsolid.c.

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

Referenced by dxf_3dsolid_init().

char* dxf_3dsolid_get_dictionary_owner_hard ( Dxf3dsolid solid)

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

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

Definition at line 1885 of file 3dsolid.c.

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

Referenced by dxf_3dsolid_free(), and dxf_3dsolid_write().

Dxf3dsolid* dxf_3dsolid_set_dictionary_owner_hard ( Dxf3dsolid solid,
char *  dictionary_owner_hard 
)

Set the pointer to the dictionary_owner_hard for a DXF 3DSOLID entity.

Parameters:
solida pointer to a DXF 3DSOLID entity.
dictionary_owner_harda string containing the pointer to the dictionary_owner_hard for the entity.

Definition at line 1921 of file 3dsolid.c.

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

Referenced by dxf_3dsolid_init().

int16_t dxf_3dsolid_get_lineweight ( Dxf3dsolid solid)

Get the lineweight from a DXF 3DSOLID entity.

Returns:
lineweight when successful, or EXIT_FAILURE when an error occurred.
Parameters:
solida pointer to a DXF 3DSOLID entity.

Definition at line 1963 of file 3dsolid.c.

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

Referenced by dxf_3dsolid_write().

Dxf3dsolid* dxf_3dsolid_set_lineweight ( Dxf3dsolid solid,
int16_t  lineweight 
)

Set the lineweight for a DXF 3DSOLID entity.

Returns:
a pointer to solid when successful, or NULL when an error occurred.
Parameters:
solida pointer to a DXF 3DSOLID entity.
lineweightthe lineweight to be set for the entity.

Definition at line 1994 of file 3dsolid.c.

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

Referenced by dxf_3dsolid_init().

char* dxf_3dsolid_get_plot_style_name ( Dxf3dsolid solid)

Get the plot_style_name from a DXF 3DSOLID entity.

Returns:
plot_style_name when sucessful, or NULL when an error occurred.
Parameters:
solida pointer to a DXF 3DSOLID entity.

Definition at line 2028 of file 3dsolid.c.

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

Referenced by dxf_3dsolid_free(), and dxf_3dsolid_write().

Dxf3dsolid* dxf_3dsolid_set_plot_style_name ( Dxf3dsolid solid,
char *  plot_style_name 
)

Set the plot_style_name for a DXF 3DSOLID entity.

Returns:
a pointer to solid when successful, or NULL when an error occurred.
Parameters:
solida pointer to a DXF 3DSOLID entity.
plot_style_namea string containing the plot_style_name for the entity.

Definition at line 2066 of file 3dsolid.c.

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

Referenced by dxf_3dsolid_init().

long dxf_3dsolid_get_color_value ( Dxf3dsolid solid)

Get the color_value from a DXF 3DSOLID entity.

Returns:
color_value when successful, or EXIT_FAILURE when an error occurred.
Parameters:
solida pointer to a DXF 3DSOLID entity.

Definition at line 2108 of file 3dsolid.c.

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

Referenced by dxf_3dsolid_write().

Dxf3dsolid* dxf_3dsolid_set_color_value ( Dxf3dsolid solid,
long  color_value 
)

Set the color_value for a DXF 3DSOLID entity.

Returns:
a pointer to solid when successful, or NULL when an error occurred.
Parameters:
solida pointer to a DXF 3DSOLID entity.
color_valuethe color_value to be set for the entity.

Definition at line 2139 of file 3dsolid.c.

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

Referenced by dxf_3dsolid_init().

char* dxf_3dsolid_get_color_name ( Dxf3dsolid solid)

Get the color_name from a DXF 3DSOLID entity.

Returns:
color_name when sucessful, or NULL when an error occurred.
Parameters:
solida pointer to a DXF 3DSOLID entity.

Definition at line 2173 of file 3dsolid.c.

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

Referenced by dxf_3dsolid_free(), and dxf_3dsolid_write().

Dxf3dsolid* dxf_3dsolid_set_color_name ( Dxf3dsolid solid,
char *  color_name 
)

Set the color_name for a DXF 3DSOLID entity.

Returns:
a pointer to solid when successful, or NULL when an error occurred.
Parameters:
solida pointer to a DXF 3DSOLID entity.
color_namea string containing the color_name for the entity.

Definition at line 2211 of file 3dsolid.c.

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

Referenced by dxf_3dsolid_init().

long dxf_3dsolid_get_transparency ( Dxf3dsolid solid)

Get the transparency from a DXF 3DSOLID entity.

Returns:
transparency when successful, or EXIT_FAILURE when an error occurred.
Parameters:
solida pointer to a DXF 3DSOLID entity.

Definition at line 2253 of file 3dsolid.c.

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

Referenced by dxf_3dsolid_write().

Dxf3dsolid* dxf_3dsolid_set_transparency ( Dxf3dsolid solid,
long  transparency 
)

Set the transparency for a DXF 3DSOLID entity.

Returns:
a pointer to solid when successful, or NULL when an error occurred.
Parameters:
solida pointer to a DXF 3DSOLID entity.
transparencythe transparency to be set for the entity.

Definition at line 2284 of file 3dsolid.c.

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

Referenced by dxf_3dsolid_init().

DxfProprietaryData* dxf_3dsolid_get_proprietary_data ( Dxf3dsolid solid)

Get the pointer to the proprietary_data from a DXF 3DSOLID entity.

Returns:
pointer to the proprietary_data.
Warning:
No checks are performed on the returned pointer.
Parameters:
solida pointer to a DXF 3DSOLID entity.

Definition at line 2320 of file 3dsolid.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_3dsolid_struct::proprietary_data.

Referenced by dxf_3dsolid_free(), and dxf_3dsolid_write().

Dxf3dsolid* dxf_3dsolid_set_proprietary_data ( Dxf3dsolid solid,
DxfProprietaryData proprietary_data 
)

Set the proprietary_data for a DXF 3DSOLID entity.

Parameters:
solida pointer to a DXF 3DSOLID entity.
proprietary_datathe proprietary_data to be set for the entity.

Definition at line 2355 of file 3dsolid.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_3dsolid_struct::proprietary_data.

Referenced by dxf_3dsolid_init().

DxfProprietaryData* dxf_3dsolid_get_additional_proprietary_data ( Dxf3dsolid solid)

Get the pointer to the additional_proprietary_data from a DXF 3DSOLID entity.

Returns:
pointer to the additional_proprietary_data.
Warning:
No checks are performed on the returned pointer.
Parameters:
solida pointer to a DXF 3DSOLID entity.

Definition at line 2398 of file 3dsolid.c.

References _, dxf_3dsolid_struct::additional_proprietary_data, DXF_DEBUG_BEGIN, and DXF_DEBUG_END.

Referenced by dxf_3dsolid_free(), and dxf_3dsolid_write().

Dxf3dsolid* dxf_3dsolid_set_additional_proprietary_data ( Dxf3dsolid solid,
DxfProprietaryData additional_proprietary_data 
)

Set the additional_proprietary_data for a DXF 3DSOLID entity.

Parameters:
solida pointer to a DXF 3DSOLID entity.
additional_proprietary_datathe additional_proprietary_data to be set for the entity.

Definition at line 2434 of file 3dsolid.c.

References _, dxf_3dsolid_struct::additional_proprietary_data, DXF_DEBUG_BEGIN, and DXF_DEBUG_END.

Referenced by dxf_3dsolid_init().

int dxf_3dsolid_get_modeler_format_version_number ( Dxf3dsolid solid)

Get the modeler format version number from a DXF 3DSOLID entity.

Returns:
the modeler format version number.
Parameters:
solida pointer to a DXF 3DSOLID entity.

Definition at line 2475 of file 3dsolid.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, DXF_MODELER_FORMAT_CURRENT_VERSION, and dxf_3dsolid_struct::modeler_format_version_number.

Referenced by dxf_3dsolid_write().

Dxf3dsolid* dxf_3dsolid_set_modeler_format_version_number ( Dxf3dsolid solid,
int  modeler_format_version_number 
)

Set the modeler format version number for a DXF 3DSOLID entity.

Parameters:
solida pointer to a DXF 3DSOLID entity.
modeler_format_version_numberthe modeler format version number to be set for the entity.

Definition at line 2516 of file 3dsolid.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, DXF_MODELER_FORMAT_CURRENT_VERSION, and dxf_3dsolid_struct::modeler_format_version_number.

Referenced by dxf_3dsolid_init().

char* dxf_3dsolid_get_history ( Dxf3dsolid solid)

Get the pointer to the history from a DXF 3DSOLID entity.

Returns:
soft pointer to the history.
Warning:
No checks are performed on the returned pointer (string).
Parameters:
solida pointer to a DXF 3DSOLID entity.

Definition at line 2566 of file 3dsolid.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_3dsolid_struct::history.

Referenced by dxf_3dsolid_free(), and dxf_3dsolid_write().

Dxf3dsolid* dxf_3dsolid_set_history ( Dxf3dsolid solid,
char *  history 
)

Set the pointer to the history for a DXF 3DSOLID entity.

Parameters:
solida pointer to a DXF 3DSOLID entity.
historya string containing the pointer to the history for the entity.

Definition at line 2601 of file 3dsolid.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_3dsolid_struct::history.

Referenced by dxf_3dsolid_init().

Dxf3dsolid* dxf_3dsolid_get_next ( Dxf3dsolid solid)

Get the pointer to the next 3DSOLID entity from a DXF 3DSOLID entity.

Returns:
pointer to the next 3DSOLID entity.
Warning:
No checks are performed on the returned pointer.
Parameters:
solida pointer to a DXF 3DSOLID entity.

Definition at line 2644 of file 3dsolid.c.

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

Dxf3dsolid* dxf_3dsolid_set_next ( Dxf3dsolid solid,
Dxf3dsolid next 
)

Set the pointer to the next 3DSOLID for a DXF 3DSOLID entity.

Parameters:
solida pointer to a DXF 3SOLID entity.
nexta pointer to the next 3DSOLID for the entity.

Definition at line 2680 of file 3dsolid.c.

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

Referenced by dxf_3dsolid_init().

Dxf3dsolid* dxf_3dsolid_get_last ( Dxf3dsolid solid)

Get the pointer to the last 3DSOLID entity from a linked list of DXF 3DSOLID entity.

Returns:
pointer to the last 3DSOLID entity.
Warning:
No checks are performed on the returned pointer.
Parameters:
solida pointer to a DXF 3DSOLID entity.

Definition at line 2723 of file 3dsolid.c.

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