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

solid.h File Reference

Header file for a DXF solid entity (SOLID). More...

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

Go to the source code of this file.

Data Structures

struct  dxf_solid_struct
 DXF definition of an AutoCAD solid entity. More...

Typedefs

typedef struct dxf_solid_struct DxfSolid
 DXF definition of an AutoCAD solid entity.

Functions

DxfSoliddxf_solid_new ()
 Allocate memory for a DXF SOLID entity.
DxfSoliddxf_solid_init (DxfSolid *solid)
 Allocate memory and initialize data fields in a SOLID entity.
DxfSoliddxf_solid_read (DxfFile *fp, DxfSolid *solid)
 Read data from a DXF file into a DXF SOLID entity.
int dxf_solid_write (DxfFile *fp, DxfSolid *solid)
 Write DXF output to fp for a DXF SOLID entity.
int dxf_solid_free (DxfSolid *solid)
 Free the allocated memory for a DXF SOLID and all it's data fields.
void dxf_solid_free_chain (DxfSolid *solids)
 Free the allocated memory for a chain of DXF SOLID entities and all their data fields.
int dxf_solid_get_id_code (DxfSolid *solid)
 Get the id_code from a DXF SOLID entity.
DxfSoliddxf_solid_set_id_code (DxfSolid *solid, int id_code)
 Set the id_code for a DXF SOLID entity.
char * dxf_solid_get_linetype (DxfSolid *solid)
 Get the linetype from a DXF SOLID entity.
DxfSoliddxf_solid_set_linetype (DxfSolid *solid, char *linetype)
 Set the linetype for a DXF SOLID entity.
char * dxf_solid_get_layer (DxfSolid *solid)
 Get the layer from a DXF SOLID entity.
DxfSoliddxf_solid_set_layer (DxfSolid *solid, char *layer)
 Set the layer for a DXF SOLID entity.
double dxf_solid_get_elevation (DxfSolid *solid)
 Get the elevation from a DXF SOLID entity.
DxfSoliddxf_solid_set_elevation (DxfSolid *solid, double elevation)
 Set the elevation for a DXF SOLID entity.
double dxf_solid_get_thickness (DxfSolid *solid)
 Get the thickness from a DXF SOLID entity.
DxfSoliddxf_solid_set_thickness (DxfSolid *solid, double thickness)
 Set the thickness for a DXF SOLID entity.
double dxf_solid_get_linetype_scale (DxfSolid *solid)
 Get the linetype_scale from a DXF SOLID entity.
DxfSoliddxf_solid_set_linetype_scale (DxfSolid *solid, double linetype_scale)
 Set the linetype_scale for a DXF SOLID entity.
int16_t dxf_solid_get_visibility (DxfSolid *solid)
 Get the visibility from a DXF SOLID entity.
DxfSoliddxf_solid_set_visibility (DxfSolid *solid, int16_t visibility)
 Set the visibility for a DXF SOLID entity.
int dxf_solid_get_color (DxfSolid *solid)
 Get the color from a DXF SOLID entity.
DxfSoliddxf_solid_set_color (DxfSolid *solid, int color)
 Set the color for a DXF SOLID entity.
int dxf_solid_get_paperspace (DxfSolid *solid)
 Get the paperspace flag value from a DXF SOLID entity.
DxfSoliddxf_solid_set_paperspace (DxfSolid *solid, int paperspace)
 Set the paperspace flag for a DXF SOLID entity.
int dxf_solid_get_graphics_data_size (DxfSolid *solid)
 Get the graphics_data_size value from a DXF SOLID entity.
DxfSoliddxf_solid_set_graphics_data_size (DxfSolid *solid, int graphics_data_size)
 Set the graphics_data_size value for a DXF SOLID entity.
int16_t dxf_solid_get_shadow_mode (DxfSolid *solid)
 Get the shadow_mode from a DXF SOLID entity.
DxfSoliddxf_solid_set_shadow_mode (DxfSolid *solid, int16_t shadow_mode)
 Set the shadow_mode for a DXF SOLID entity.
DxfBinaryGraphicsDatadxf_solid_get_binary_graphics_data (DxfSolid *solid)
 Get the pointer to the binary_graphics_data from a DXF SOLID entity.
DxfSoliddxf_solid_set_binary_graphics_data (DxfSolid *solid, DxfBinaryGraphicsData *data)
 Set the pointer to the binary_graphics_data for a DXF SOLID entity.
char * dxf_solid_get_dictionary_owner_soft (DxfSolid *solid)
 Get the pointer to the dictionary_owner_soft from a DXF SOLID entity.
DxfSoliddxf_solid_set_dictionary_owner_soft (DxfSolid *solid, char *dictionary_owner_soft)
 Set the pointer to the dictionary_owner_soft for a DXF SOLID entity.
char * dxf_solid_get_material (DxfSolid *solid)
 Get the pointer to the material from a DXF SOLID entity.
DxfSoliddxf_solid_set_material (DxfSolid *solid, char *material)
 Set the pointer to the material for a DXF SOLID entity.
char * dxf_solid_get_dictionary_owner_hard (DxfSolid *solid)
 Get the pointer to the dictionary_owner_hard from a DXF SOLID entity.
DxfSoliddxf_solid_set_dictionary_owner_hard (DxfSolid *solid, char *dictionary_owner_hard)
 Set the pointer to the dictionary_owner_hard for a DXF SOLID entity.
int16_t dxf_solid_get_lineweight (DxfSolid *solid)
 Get the lineweight from a DXF SOLID entity.
DxfSoliddxf_solid_set_lineweight (DxfSolid *solid, int16_t lineweight)
 Set the lineweight for a DXF SOLID entity.
char * dxf_solid_get_plot_style_name (DxfSolid *solid)
 Get the plot_style_name from a DXF SOLID entity.
DxfSoliddxf_solid_set_plot_style_name (DxfSolid *solid, char *plot_style_name)
 Set the plot_style_name for a DXF SOLID entity.
long dxf_solid_get_color_value (DxfSolid *solid)
 Get the color_value from a DXF SOLID entity.
DxfSoliddxf_solid_set_color_value (DxfSolid *solid, long color_value)
 Set the color_value for a DXF SOLID entity.
char * dxf_solid_get_color_name (DxfSolid *solid)
 Get the color_name from a DXF SOLID entity.
DxfSoliddxf_solid_set_color_name (DxfSolid *solid, char *color_name)
 Set the color_name for a DXF SOLID entity.
long dxf_solid_get_transparency (DxfSolid *solid)
 Get the transparency from a DXF SOLID entity.
DxfSoliddxf_solid_set_transparency (DxfSolid *solid, long transparency)
 Set the transparency for a DXF SOLID entity.
DxfPointdxf_solid_get_p0 (DxfSolid *solid)
 Get the base point p0 of a DXF SOLID entity.
DxfSoliddxf_solid_set_p0 (DxfSolid *solid, DxfPoint *p0)
 Set the base point p0 of a DXF SOLID entity.
double dxf_solid_get_x0 (DxfSolid *solid)
 Get the X-value of the base point x0 of a DXF SOLID entity.
DxfSoliddxf_solid_set_x0 (DxfSolid *solid, double x0)
 Set the X-value of the base point x0 of a DXF SOLID entity.
double dxf_solid_get_y0 (DxfSolid *solid)
 Get the Y-value of the base point y0 of a DXF SOLID entity.
DxfSoliddxf_solid_set_y0 (DxfSolid *solid, double y0)
 Set the Y-value of the base point y0 of a DXF SOLID entity.
double dxf_solid_get_z0 (DxfSolid *solid)
 Get the Z-value of the base point z0 of a DXF SOLID entity.
DxfSoliddxf_solid_set_z0 (DxfSolid *solid, double z0)
 Set the Z-value of the base point z0 of a DXF SOLID entity.
DxfPointdxf_solid_get_p1 (DxfSolid *solid)
 Get the first alignment point p1 of a DXF SOLID entity.
DxfSoliddxf_solid_set_p1 (DxfSolid *solid, DxfPoint *p1)
 Set the first alignment point p1 of a DXF SOLID entity.
double dxf_solid_get_x1 (DxfSolid *solid)
 Get the X-value of the first alignment point x1 of a DXF SOLID entity.
DxfSoliddxf_solid_set_x1 (DxfSolid *solid, double x1)
 Set the X-value of the first alignment point x1 of a DXF SOLID entity.
double dxf_solid_get_y1 (DxfSolid *solid)
 Get the Y-value of the first alignment point y1 of a DXF SOLID entity.
DxfSoliddxf_solid_set_y1 (DxfSolid *solid, double y1)
 Set the Y-value of the first alignment point y1 of a DXF SOLID entity.
double dxf_solid_get_z1 (DxfSolid *solid)
 Get the Z-value of the first alignment point z1 of a DXF SOLID entity.
DxfSoliddxf_solid_set_z1 (DxfSolid *solid, double z1)
 Set the Z-value of the first alignment point z1 of a DXF SOLID entity.
DxfPointdxf_solid_get_p2 (DxfSolid *solid)
 Get the second alignment point p2 of a DXF SOLID entity.
DxfSoliddxf_solid_set_p2 (DxfSolid *solid, DxfPoint *p2)
 Set the second alignment point p2 of a DXF SOLID entity.
double dxf_solid_get_x2 (DxfSolid *solid)
 Get the X-value of the second alignment point x2 of a DXF SOLID entity.
DxfSoliddxf_solid_set_x2 (DxfSolid *solid, double x2)
 Set the X-value of the second alignment point x2 of a DXF SOLID entity.
double dxf_solid_get_y2 (DxfSolid *solid)
 Get the Y-value of the second alignment point y2 of a DXF SOLID entity.
DxfSoliddxf_solid_set_y2 (DxfSolid *solid, double y2)
 Set the Y-value of the second alignment point y2 of a DXF SOLID entity.
double dxf_solid_get_z2 (DxfSolid *solid)
 Get the Z-value of the second alignment point z2 of a DXF SOLID entity.
DxfSoliddxf_solid_set_z2 (DxfSolid *solid, double z2)
 Set the Z-value of the second alignment point z2 of a DXF SOLID entity.
DxfPointdxf_solid_get_p3 (DxfSolid *solid)
 Get the third alignment point p3 of a DXF SOLID entity.
DxfSoliddxf_solid_set_p3 (DxfSolid *solid, DxfPoint *p3)
 Set the third alignment point p3 of a DXF SOLID entity.
double dxf_solid_get_x3 (DxfSolid *solid)
 Get the X-value of the third alignment point x3 of a DXF SOLID entity.
DxfSoliddxf_solid_set_x3 (DxfSolid *solid, double x3)
 Set the X-value of the third alignment point x3 of a DXF SOLID entity.
double dxf_solid_get_y3 (DxfSolid *solid)
 Get the Y-value of the third alignment point y3 of a DXF SOLID entity.
DxfSoliddxf_solid_set_y3 (DxfSolid *solid, double y3)
 Set the Y-value of the third alignment point y3 of a DXF SOLID entity.
double dxf_solid_get_z3 (DxfSolid *solid)
 Get the Z-value of the third alignment point z3 of a DXF SOLID entity.
DxfSoliddxf_solid_set_z3 (DxfSolid *solid, double z3)
 Set the Z-value of the third alignment point z3 of a DXF SOLID entity.
DxfPointdxf_solid_get_extrusion_vector_as_point (DxfSolid *solid)
 Get the extrusion vector as a DXF POINT entity from a DXF SOLID entity.
DxfSoliddxf_solid_set_extrusion_vector_from_point (DxfSolid *solid, DxfPoint *point)
 Set the extrusion vector from a DXF POINT for a DXF SOLID entity.
DxfSoliddxf_solid_set_extrusion_vector (DxfSolid *solid, double extr_x0, double extr_y0, double extr_z0)
 Set the extrusion vector for a DXF SOLID entity.
double dxf_solid_get_extr_x0 (DxfSolid *solid)
 Get the X-value of the extrusion vector extr_x0 of a DXF SOLID entity.
DxfSoliddxf_solid_set_extr_x0 (DxfSolid *solid, double extr_x0)
 Set the X-value of the extrusion vector extr_x0 of a DXF SOLID entity.
double dxf_solid_get_extr_y0 (DxfSolid *solid)
 Get the Y-value of the extrusion vector extr_y0 of a DXF SOLID entity.
DxfSoliddxf_solid_set_extr_y0 (DxfSolid *solid, double extr_y0)
 Set the Y-value of the extrusion vector extr_y0 of a DXF SOLID entity.
double dxf_solid_get_extr_z0 (DxfSolid *solid)
 Get the Z-value of the extrusion vector extr_z0 of a DXF SOLID entity.
DxfSoliddxf_solid_set_extr_z0 (DxfSolid *solid, double extr_z0)
 Set the Z-value of the extrusion vector extr_z0 of a DXF SOLID entity.
DxfSoliddxf_solid_get_next (DxfSolid *solid)
 Get the pointer to the next SOLID entity from a DXF SOLID entity.
DxfSoliddxf_solid_set_next (DxfSolid *solid, DxfSolid *next)
 Set the pointer to the next SOLID for a DXF SOLID entity.
DxfSoliddxf_solid_get_last (DxfSolid *solid)
 Get the pointer to the last SOLID entity from a linked list of DXF SOLID entities.

Detailed Description

Header file for a DXF solid entity (SOLID).

Author:
Copyright (C) 2008, 2010, 2012, 2014, 2015, 2016, 2017 by Bert Timmerman <bert.timmerman@xs4all.nl>.

A DXF SOLID entity is a filled shape made with up to four point (X, Y, Z)-coordinates.
A filled triangle can be formed by duplicating the third coordinate at the fourth coordinate position.
A diabolo shaped solid can be formed by "twisting" the SOLID form in it's plane, by "swapping" the third and fourth coordinate set.

Version:
According to DXF R10.
According to DXF R11.
According to DXF R12.
According to DXF R13.
According to DXF R14.

Copyright Notices.


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

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

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

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


Definition in file solid.h.


Typedef Documentation

typedef struct dxf_solid_struct DxfSolid

DXF definition of an AutoCAD solid entity.

If only three points are entered (forming a triangular SOLID), the third and fourth points will coincide.


Function Documentation

DxfSolid* dxf_solid_new ( )

Allocate memory for a DXF SOLID entity.

Fill the memory contents with zeros.

Returns:
a pointer to the allocated memory.

Definition at line 62 of file solid.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_shape_struct::size.

Referenced by dxf_solid_init(), and dxf_solid_read().

DxfSolid* dxf_solid_init ( DxfSolid solid)

Allocate memory and initialize data fields in a SOLID entity.

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

Definition at line 99 of file solid.c.

References _, dxf_solid_struct::binary_graphics_data, dxf_solid_struct::color, dxf_solid_struct::color_name, dxf_solid_struct::color_value, dxf_solid_struct::dictionary_owner_hard, dxf_solid_struct::dictionary_owner_soft, 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_point_init(), dxf_point_new(), dxf_solid_new(), dxf_solid_struct::elevation, dxf_solid_struct::extr_x0, dxf_solid_struct::extr_y0, dxf_solid_struct::extr_z0, dxf_solid_struct::graphics_data_size, dxf_solid_struct::id_code, dxf_solid_struct::layer, dxf_solid_struct::linetype, dxf_solid_struct::linetype_scale, dxf_solid_struct::lineweight, dxf_solid_struct::material, dxf_solid_struct::next, dxf_solid_struct::p0, dxf_solid_struct::p1, dxf_solid_struct::p2, dxf_solid_struct::p3, dxf_solid_struct::paperspace, dxf_solid_struct::plot_style_name, dxf_solid_struct::shadow_mode, dxf_solid_struct::thickness, dxf_solid_struct::transparency, dxf_solid_struct::visibility, dxf_point_struct::x0, dxf_point_struct::y0, and dxf_point_struct::z0.

Referenced by dxf_solid_read().

Here is the call graph for this function:

DxfSolid* dxf_solid_read ( DxfFile fp,
DxfSolid solid 
)

Read data from a DXF file into a DXF SOLID entity.

The last line read from file contained the string "SOLID".
Now follows some data for the SOLID, to be terminated with a " 0" string announcing the following entity, or the end of the ENTITY section marker ENDSEC.

Returns:
a pointer to the DXF SOLID entity when done, or NULL when an error occurred while reading from the input file.
Parameters:
fpDXF file pointer to an input file (or device).
solida pointer to the DXF SOLID entity.

Definition at line 187 of file solid.c.

References _, dxf_file_struct::acad_version_number, AutoCAD_12, dxf_solid_struct::binary_graphics_data, dxf_solid_struct::color, dxf_solid_struct::color_name, dxf_solid_struct::color_value, dxf_binary_graphics_data_struct::data_line, dxf_solid_struct::dictionary_owner_hard, dxf_solid_struct::dictionary_owner_soft, dxf_binary_graphics_data_init(), DXF_DEBUG_BEGIN, DXF_DEBUG_END, DXF_DEFAULT_LAYER, DXF_DEFAULT_LINETYPE, dxf_point_init(), dxf_point_new(), dxf_solid_init(), dxf_solid_new(), dxf_solid_struct::elevation, dxf_solid_struct::extr_x0, dxf_solid_struct::extr_y0, dxf_solid_struct::extr_z0, dxf_file_struct::filename, dxf_file_struct::fp, dxf_solid_struct::graphics_data_size, dxf_solid_struct::id_code, dxf_solid_struct::layer, dxf_file_struct::line_number, dxf_solid_struct::linetype, dxf_solid_struct::linetype_scale, dxf_solid_struct::lineweight, dxf_solid_struct::material, dxf_binary_graphics_data_struct::next, dxf_solid_struct::p0, dxf_solid_struct::p1, dxf_solid_struct::p2, dxf_solid_struct::p3, dxf_solid_struct::paperspace, dxf_solid_struct::plot_style_name, dxf_solid_struct::shadow_mode, dxf_solid_struct::thickness, dxf_solid_struct::transparency, dxf_solid_struct::visibility, dxf_point_struct::x0, dxf_point_struct::y0, and dxf_point_struct::z0.

Here is the call graph for this function:

int dxf_solid_write ( DxfFile fp,
DxfSolid solid 
)

Write DXF output to fp for a DXF SOLID entity.

Returns:
EXIT_SUCCESS when done, or EXIT_FAILURE when an error occurred while reading from the input file.

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

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

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

Parameters:
fpDXF file pointer to an output file (or device).
solida pointer to the DXF SOLID entity.

Definition at line 567 of file solid.c.

References _, dxf_file_struct::acad_version_number, AutoCAD_11, AutoCAD_12, AutoCAD_13, AutoCAD_14, AutoCAD_2000, AutoCAD_2002, AutoCAD_2004, AutoCAD_2008, AutoCAD_2009, dxf_solid_struct::binary_graphics_data, dxf_solid_struct::color, dxf_solid_struct::color_name, dxf_solid_struct::color_value, dxf_solid_struct::dictionary_owner_hard, dxf_solid_struct::dictionary_owner_soft, 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_solid_struct::elevation, dxf_solid_struct::extr_x0, dxf_solid_struct::extr_y0, dxf_solid_struct::extr_z0, dxf_file_struct::fp, dxf_solid_struct::graphics_data_size, dxf_solid_struct::id_code, dxf_solid_struct::layer, dxf_solid_struct::linetype, dxf_solid_struct::linetype_scale, dxf_solid_struct::lineweight, dxf_solid_struct::material, dxf_solid_struct::p0, dxf_solid_struct::p1, dxf_solid_struct::p2, dxf_solid_struct::p3, dxf_solid_struct::paperspace, dxf_solid_struct::plot_style_name, dxf_solid_struct::shadow_mode, dxf_solid_struct::thickness, dxf_solid_struct::transparency, dxf_solid_struct::visibility, dxf_point_struct::x0, dxf_point_struct::y0, and dxf_point_struct::z0.

Here is the call graph for this function:

int dxf_solid_free ( DxfSolid solid)

Free the allocated memory for a DXF SOLID 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 SOLID entity.

Definition at line 801 of file solid.c.

References _, dxf_solid_struct::dictionary_owner_hard, dxf_solid_struct::dictionary_owner_soft, DXF_DEBUG_BEGIN, DXF_DEBUG_END, dxf_solid_struct::layer, dxf_solid_struct::linetype, and dxf_solid_struct::next.

Referenced by dxf_solid_free_chain().

void dxf_solid_free_chain ( DxfSolid solids)

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

Parameters:
solidspointer to the chain of DXF SOLID entities.

Definition at line 844 of file solid.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, dxf_solid_free(), and dxf_solid_struct::next.

Here is the call graph for this function:

int dxf_solid_get_id_code ( DxfSolid solid)

Get the id_code from a DXF SOLID entity.

Returns:
id_code.
Parameters:
solida pointer to a DXF SOLID entity.

Definition at line 877 of file solid.c.

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

DxfSolid* dxf_solid_set_id_code ( DxfSolid solid,
int  id_code 
)

Set the id_code for a DXF SOLID entity.

Parameters:
solida pointer to a DXF SOLID entity.
id_codethe id_code to be set for the entity.
This is to be an unique (sequential) number in the DXF file.

Definition at line 911 of file solid.c.

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

char* dxf_solid_get_linetype ( DxfSolid solid)

Get the linetype from a DXF SOLID entity.

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

Definition at line 952 of file solid.c.

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

DxfSolid* dxf_solid_set_linetype ( DxfSolid solid,
char *  linetype 
)

Set the linetype for a DXF SOLID entity.

Parameters:
solida pointer to a DXF SOLID entity.
linetypea pointer to a string containing the linetype to be set for the entity.

Definition at line 987 of file solid.c.

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

char* dxf_solid_get_layer ( DxfSolid solid)

Get the layer from a DXF SOLID entity.

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

Definition at line 1028 of file solid.c.

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

DxfSolid* dxf_solid_set_layer ( DxfSolid solid,
char *  layer 
)

Set the layer for a DXF SOLID entity.

Parameters:
solida pointer to a DXF SOLID entity.
layera pointer to a string containing the layer to be set for the entity.

Definition at line 1063 of file solid.c.

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

double dxf_solid_get_elevation ( DxfSolid solid)

Get the elevation from a DXF SOLID entity.

Returns:
elevation.
Parameters:
solida pointer to a DXF SOLID entity.

Definition at line 1104 of file solid.c.

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

DxfSolid* dxf_solid_set_elevation ( DxfSolid solid,
double  elevation 
)

Set the elevation for a DXF SOLID entity.

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

Definition at line 1132 of file solid.c.

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

double dxf_solid_get_thickness ( DxfSolid solid)

Get the thickness from a DXF SOLID entity.

Returns:
thickness.
Parameters:
solida pointer to a DXF SOLID entity.

Definition at line 1165 of file solid.c.

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

DxfSolid* dxf_solid_set_thickness ( DxfSolid solid,
double  thickness 
)

Set the thickness for a DXF SOLID entity.

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

Definition at line 1199 of file solid.c.

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

double dxf_solid_get_linetype_scale ( DxfSolid solid)

Get the linetype_scale from a DXF SOLID entity.

Returns:
linetype_scale.
Parameters:
solida pointer to a DXF SOLID entity.

Definition at line 1238 of file solid.c.

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

DxfSolid* dxf_solid_set_linetype_scale ( DxfSolid solid,
double  linetype_scale 
)

Set the linetype_scale for a DXF SOLID entity.

Parameters:
solida pointer to a DXF SOLID entity.
linetype_scalethe linetype_scale to be set for the entity.

Definition at line 1272 of file solid.c.

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

int16_t dxf_solid_get_visibility ( DxfSolid solid)

Get the visibility from a DXF SOLID entity.

Returns:
visibility.
Parameters:
solida pointer to a DXF SOLID entity.

Definition at line 1311 of file solid.c.

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

DxfSolid* dxf_solid_set_visibility ( DxfSolid solid,
int16_t  visibility 
)

Set the visibility for a DXF SOLID entity.

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

Definition at line 1351 of file solid.c.

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

int dxf_solid_get_color ( DxfSolid solid)

Get the color from a DXF SOLID entity.

Returns:
color.
Parameters:
solida pointer to a DXF SOLID entity.

Definition at line 1396 of file solid.c.

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

DxfSolid* dxf_solid_set_color ( DxfSolid solid,
int  color 
)

Set the color for a DXF SOLID entity.

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

Definition at line 1430 of file solid.c.

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

int dxf_solid_get_paperspace ( DxfSolid solid)

Get the paperspace flag value from a DXF SOLID entity.

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

Definition at line 1469 of file solid.c.

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

DxfSolid* dxf_solid_set_paperspace ( DxfSolid solid,
int  paperspace 
)

Set the paperspace flag for a DXF SOLID entity.

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

Definition at line 1509 of file solid.c.

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

int dxf_solid_get_graphics_data_size ( DxfSolid solid)

Get the graphics_data_size value from a DXF SOLID entity.

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

Definition at line 1556 of file solid.c.

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

DxfSolid* dxf_solid_set_graphics_data_size ( DxfSolid solid,
int  graphics_data_size 
)

Set the graphics_data_size value for a DXF SOLID entity.

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

Definition at line 1599 of file solid.c.

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

int16_t dxf_solid_get_shadow_mode ( DxfSolid solid)

Get the shadow_mode from a DXF SOLID entity.

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

Definition at line 1646 of file solid.c.

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

DxfSolid* dxf_solid_set_shadow_mode ( DxfSolid solid,
int16_t  shadow_mode 
)

Set the shadow_mode for a DXF SOLID entity.

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

Definition at line 1689 of file solid.c.

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

DxfBinaryGraphicsData* dxf_solid_get_binary_graphics_data ( DxfSolid solid)

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

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

Definition at line 1737 of file solid.c.

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

DxfSolid* dxf_solid_set_binary_graphics_data ( DxfSolid solid,
DxfBinaryGraphicsData data 
)

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

Parameters:
solida pointer to a DXF SOLID entity.
dataa string containing the pointer to the binary_graphics_data for the entity.

Definition at line 1773 of file solid.c.

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

char* dxf_solid_get_dictionary_owner_soft ( DxfSolid solid)

Get the pointer to the dictionary_owner_soft from a DXF SOLID entity.

Returns:
pointer to the dictionary_owner_soft.
Warning:
No checks are performed on the returned pointer (string).
Parameters:
solida pointer to a DXF SOLID entity.

Definition at line 1817 of file solid.c.

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

DxfSolid* dxf_solid_set_dictionary_owner_soft ( DxfSolid solid,
char *  dictionary_owner_soft 
)

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

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

Definition at line 1853 of file solid.c.

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

char* dxf_solid_get_material ( DxfSolid solid)

Get the pointer to the material from a DXF SOLID 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 SOLID entity.

Definition at line 1897 of file solid.c.

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

DxfSolid* dxf_solid_set_material ( DxfSolid solid,
char *  material 
)

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

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

Definition at line 1935 of file solid.c.

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

char* dxf_solid_get_dictionary_owner_hard ( DxfSolid solid)

Get the pointer to the dictionary_owner_hard from a DXF SOLID entity.

Returns:
pointer to the dictionary_owner_hard.
Warning:
No checks are performed on the returned pointer (string).
Parameters:
solida pointer to a DXF SOLID entity.

Definition at line 1979 of file solid.c.

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

DxfSolid* dxf_solid_set_dictionary_owner_hard ( DxfSolid solid,
char *  dictionary_owner_hard 
)

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

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

Definition at line 2015 of file solid.c.

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

int16_t dxf_solid_get_lineweight ( DxfSolid solid)

Get the lineweight from a DXF SOLID entity.

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

Definition at line 2057 of file solid.c.

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

DxfSolid* dxf_solid_set_lineweight ( DxfSolid solid,
int16_t  lineweight 
)

Set the lineweight for a DXF SOLID entity.

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

Definition at line 2088 of file solid.c.

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

char* dxf_solid_get_plot_style_name ( DxfSolid solid)

Get the plot_style_name from a DXF SOLID entity.

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

Definition at line 2122 of file solid.c.

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

DxfSolid* dxf_solid_set_plot_style_name ( DxfSolid solid,
char *  plot_style_name 
)

Set the plot_style_name for a DXF SOLID entity.

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

Definition at line 2160 of file solid.c.

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

long dxf_solid_get_color_value ( DxfSolid solid)

Get the color_value from a DXF SOLID entity.

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

Definition at line 2202 of file solid.c.

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

DxfSolid* dxf_solid_set_color_value ( DxfSolid solid,
long  color_value 
)

Set the color_value for a DXF SOLID entity.

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

Definition at line 2233 of file solid.c.

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

char* dxf_solid_get_color_name ( DxfSolid solid)

Get the color_name from a DXF SOLID entity.

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

Definition at line 2267 of file solid.c.

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

DxfSolid* dxf_solid_set_color_name ( DxfSolid solid,
char *  color_name 
)

Set the color_name for a DXF SOLID entity.

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

Definition at line 2305 of file solid.c.

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

long dxf_solid_get_transparency ( DxfSolid solid)

Get the transparency from a DXF SOLID entity.

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

Definition at line 2347 of file solid.c.

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

DxfSolid* dxf_solid_set_transparency ( DxfSolid solid,
long  transparency 
)

Set the transparency for a DXF SOLID entity.

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

Definition at line 2378 of file solid.c.

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

DxfPoint* dxf_solid_get_p0 ( DxfSolid solid)

Get the base point p0 of a DXF SOLID entity.

Returns:
the base point p0.
Parameters:
solida pointer to a DXF SOLID entity.

Definition at line 2411 of file solid.c.

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

DxfSolid* dxf_solid_set_p0 ( DxfSolid solid,
DxfPoint p0 
)

Set the base point p0 of a DXF SOLID entity.

Returns:
a pointer to a DXF SOLID entity.
Parameters:
solida pointer to a DXF SOLID entity.
p0a pointer to a DXF POINT entity.

Definition at line 2448 of file solid.c.

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

double dxf_solid_get_x0 ( DxfSolid solid)

Get the X-value of the base point x0 of a DXF SOLID entity.

Returns:
the X-value of the base point x0.
Parameters:
solida pointer to a DXF SOLID entity.

Definition at line 2489 of file solid.c.

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

DxfSolid* dxf_solid_set_x0 ( DxfSolid solid,
double  x0 
)

Set the X-value of the base point x0 of a DXF SOLID entity.

Returns:
a pointer to solid when successful, or NULL when an error occurred.
Parameters:
solida pointer to a DXF SOLID entity.
x0the X-value of the base point x0 of a DXF SOLID entity.

Definition at line 2529 of file solid.c.

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

double dxf_solid_get_y0 ( DxfSolid solid)

Get the Y-value of the base point y0 of a DXF SOLID entity.

Returns:
the Y-value of the base point y0.
Parameters:
solida pointer to a DXF SOLID entity.

Definition at line 2571 of file solid.c.

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

DxfSolid* dxf_solid_set_y0 ( DxfSolid solid,
double  y0 
)

Set the Y-value of the base point y0 of a DXF SOLID entity.

Returns:
a pointer to solid when successful, or NULL when an error occurred.
Parameters:
solida pointer to a DXF SOLID entity.
y0the Y-value of the base point y0 of a DXF SOLID entity.

Definition at line 2611 of file solid.c.

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

double dxf_solid_get_z0 ( DxfSolid solid)

Get the Z-value of the base point z0 of a DXF SOLID entity.

Returns:
the Z-value of the base point z0.
Parameters:
solida pointer to a DXF SOLID entity.

Definition at line 2653 of file solid.c.

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

DxfSolid* dxf_solid_set_z0 ( DxfSolid solid,
double  z0 
)

Set the Z-value of the base point z0 of a DXF SOLID entity.

Returns:
a pointer to solid when successful, or NULL when an error occurred.
Parameters:
solida pointer to a DXF SOLID entity.
z0the Y-value of the base point z0 of a DXF SOLID entity.

Definition at line 2693 of file solid.c.

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

DxfPoint* dxf_solid_get_p1 ( DxfSolid solid)

Get the first alignment point p1 of a DXF SOLID entity.

Returns:
the first alignment point p1.
Parameters:
solida pointer to a DXF SOLID entity.

Definition at line 2734 of file solid.c.

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

DxfSolid* dxf_solid_set_p1 ( DxfSolid solid,
DxfPoint p1 
)

Set the first alignment point p1 of a DXF SOLID entity.

Returns:
a pointer to a DXF SOLID entity.
Parameters:
solida pointer to a DXF SOLID entity.
p1a pointer to a DXF POINT entity.

Definition at line 2771 of file solid.c.

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

double dxf_solid_get_x1 ( DxfSolid solid)

Get the X-value of the first alignment point x1 of a DXF SOLID entity.

Returns:
the X-value of the first alignment point x1.
Parameters:
solida pointer to a DXF SOLID entity.

Definition at line 2812 of file solid.c.

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

DxfSolid* dxf_solid_set_x1 ( DxfSolid solid,
double  x1 
)

Set the X-value of the first alignment point x1 of a DXF SOLID entity.

Returns:
a pointer to solid when successful, or NULL when an error occurred.
Parameters:
solida pointer to a DXF SOLID entity.
x1the X-value of the first alignment point x1 of a DXF SOLID entity.

Definition at line 2852 of file solid.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, dxf_solid_struct::p1, dxf_point_struct::x0, and dxf_solid_struct::x1.

double dxf_solid_get_y1 ( DxfSolid solid)

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

Returns:
the Y-value of the first alignment point y1.
Parameters:
solida pointer to a DXF SOLID entity.

Definition at line 2894 of file solid.c.

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

DxfSolid* dxf_solid_set_y1 ( DxfSolid solid,
double  y1 
)

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

Returns:
a pointer to solid when successful, or NULL when an error occurred.
Parameters:
solida pointer to a DXF SOLID entity.
y1the Y-value of the first alignment point y1 of a DXF SOLID entity.

Definition at line 2934 of file solid.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, dxf_solid_struct::p1, dxf_point_struct::y0, and dxf_solid_struct::y1.

double dxf_solid_get_z1 ( DxfSolid solid)

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

Returns:
the Z-value of the first alignment point z1.
Parameters:
solida pointer to a DXF SOLID entity.

Definition at line 2976 of file solid.c.

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

DxfSolid* dxf_solid_set_z1 ( DxfSolid solid,
double  z1 
)

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

Returns:
a pointer to solid when successful, or NULL when an error occurred.
Parameters:
solida pointer to a DXF SOLID entity.
z1the Z-value of the first alignment point z1 of a DXF SOLID entity.

Definition at line 3016 of file solid.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, dxf_solid_struct::p1, dxf_point_struct::z0, and dxf_solid_struct::z1.

DxfPoint* dxf_solid_get_p2 ( DxfSolid solid)

Get the second alignment point p2 of a DXF SOLID entity.

Returns:
the second alignment point p2.
Parameters:
solida pointer to a DXF SOLID entity.

Definition at line 3057 of file solid.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_solid_struct::p2.

DxfSolid* dxf_solid_set_p2 ( DxfSolid solid,
DxfPoint p2 
)

Set the second alignment point p2 of a DXF SOLID entity.

Returns:
a pointer to a DXF SOLID entity.
Parameters:
solida pointer to a DXF SOLID entity.
p2a pointer to a DXF POINT entity.

Definition at line 3094 of file solid.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_solid_struct::p2.

double dxf_solid_get_x2 ( DxfSolid solid)

Get the X-value of the second alignment point x2 of a DXF SOLID entity.

Returns:
the X-value of the second alignment point x2.
Parameters:
solida pointer to a DXF SOLID entity.

Definition at line 3135 of file solid.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, dxf_solid_struct::p2, and dxf_point_struct::x0.

DxfSolid* dxf_solid_set_x2 ( DxfSolid solid,
double  x2 
)

Set the X-value of the second alignment point x2 of a DXF SOLID entity.

Returns:
a pointer to solid when successful, or NULL when an error occurred.
Parameters:
solida pointer to a DXF SOLID entity.
x2the X-value of the second alignment point x2 of a DXF SOLID entity.

Definition at line 3175 of file solid.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, dxf_solid_struct::p2, dxf_point_struct::x0, and dxf_solid_struct::x2.

double dxf_solid_get_y2 ( DxfSolid solid)

Get the Y-value of the second alignment point y2 of a DXF SOLID entity.

Returns:
the Y-value of the second alignment point y2.
Parameters:
solida pointer to a DXF SOLID entity.

Definition at line 3217 of file solid.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, dxf_solid_struct::p2, and dxf_point_struct::y0.

DxfSolid* dxf_solid_set_y2 ( DxfSolid solid,
double  y2 
)

Set the Y-value of the second alignment point y2 of a DXF SOLID entity.

Returns:
a pointer to solid when successful, or NULL when an error occurred.
Parameters:
solida pointer to a DXF SOLID entity.
y2the Y-value of the second alignment point y2 of a DXF SOLID entity.

Definition at line 3257 of file solid.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, dxf_solid_struct::p2, dxf_point_struct::y0, and dxf_solid_struct::y2.

double dxf_solid_get_z2 ( DxfSolid solid)

Get the Z-value of the second alignment point z2 of a DXF SOLID entity.

Returns:
the Z-value of the second alignment point z2.
Parameters:
solida pointer to a DXF SOLID entity.

Definition at line 3299 of file solid.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, dxf_solid_struct::p2, and dxf_point_struct::z0.

DxfSolid* dxf_solid_set_z2 ( DxfSolid solid,
double  z2 
)

Set the Z-value of the second alignment point z2 of a DXF SOLID entity.

Returns:
a pointer to solid when successful, or NULL when an error occurred.
Parameters:
solida pointer to a DXF SOLID entity.
z2the Z-value of the second alignment point z2 of a DXF SOLID entity.

Definition at line 3339 of file solid.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, dxf_solid_struct::p2, dxf_point_struct::z0, and dxf_solid_struct::z2.

DxfPoint* dxf_solid_get_p3 ( DxfSolid solid)

Get the third alignment point p3 of a DXF SOLID entity.

Returns:
the third alignment point p3.
Parameters:
solida pointer to a DXF SOLID entity.

Definition at line 3380 of file solid.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_solid_struct::p3.

DxfSolid* dxf_solid_set_p3 ( DxfSolid solid,
DxfPoint p3 
)

Set the third alignment point p3 of a DXF SOLID entity.

Returns:
a pointer to a DXF SOLID entity.
Parameters:
solida pointer to a DXF SOLID entity.
p3a pointer to a DXF POINT entity.

Definition at line 3417 of file solid.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_solid_struct::p3.

double dxf_solid_get_x3 ( DxfSolid solid)

Get the X-value of the third alignment point x3 of a DXF SOLID entity.

Returns:
the X-value of the third alignment point x3.
Parameters:
solida pointer to a DXF SOLID entity.

Definition at line 3458 of file solid.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, dxf_solid_struct::p3, and dxf_point_struct::x0.

DxfSolid* dxf_solid_set_x3 ( DxfSolid solid,
double  x3 
)

Set the X-value of the third alignment point x3 of a DXF SOLID entity.

Returns:
a pointer to solid when successful, or NULL when an error occurred.
Parameters:
solida pointer to a DXF SOLID entity.
x3the X-value of the third alignment point x3 of a DXF SOLID entity.

Definition at line 3498 of file solid.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, dxf_solid_struct::p3, dxf_point_struct::x0, and dxf_solid_struct::x3.

double dxf_solid_get_y3 ( DxfSolid solid)

Get the Y-value of the third alignment point y3 of a DXF SOLID entity.

Returns:
the Y-value of the third alignment point y3.
Parameters:
solida pointer to a DXF SOLID entity.

Definition at line 3540 of file solid.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, dxf_solid_struct::p3, and dxf_point_struct::y0.

DxfSolid* dxf_solid_set_y3 ( DxfSolid solid,
double  y3 
)

Set the Y-value of the third alignment point y3 of a DXF SOLID entity.

Returns:
a pointer to solid when successful, or NULL when an error occurred.
Parameters:
solida pointer to a DXF SOLID entity.
y3the Y-value of the third alignment point y3 of a DXF SOLID entity.

Definition at line 3580 of file solid.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, dxf_solid_struct::p3, dxf_point_struct::y0, and dxf_solid_struct::y3.

double dxf_solid_get_z3 ( DxfSolid solid)

Get the Z-value of the third alignment point z3 of a DXF SOLID entity.

Returns:
the Z-value of the third alignment point z3.
Parameters:
solida pointer to a DXF SOLID entity.

Definition at line 3622 of file solid.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, dxf_solid_struct::p3, and dxf_point_struct::z0.

DxfSolid* dxf_solid_set_z3 ( DxfSolid solid,
double  z3 
)

Set the Z-value of the third alignment point z3 of a DXF SOLID entity.

Returns:
a pointer to solid when successful, or NULL when an error occurred.
Parameters:
solida pointer to a DXF SOLID entity.
z3the Z-value of the third alignment point z3 of a DXF SOLID entity.

Definition at line 3662 of file solid.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, dxf_solid_struct::p3, dxf_point_struct::z0, and dxf_solid_struct::z3.

DxfPoint* dxf_solid_get_extrusion_vector_as_point ( DxfSolid solid)

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

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

Definition at line 3706 of file solid.c.

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

Here is the call graph for this function:

DxfSolid* dxf_solid_set_extrusion_vector_from_point ( DxfSolid solid,
DxfPoint point 
)

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

Parameters:
solida pointer to a DXF SOLID entity.
pointa pointer to a DXF POINT entity.

Definition at line 3748 of file solid.c.

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

DxfSolid* dxf_solid_set_extrusion_vector ( DxfSolid solid,
double  extr_x0,
double  extr_y0,
double  extr_z0 
)

Set the extrusion vector for a DXF SOLID entity.

Parameters:
solida pointer to a DXF SOLID entity.
extr_x0X-value of the extrusion direction.
extr_y0Y-value of the extrusion direction.
extr_z0Z-value of the extrusion direction.

Definition at line 3788 of file solid.c.

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

double dxf_solid_get_extr_x0 ( DxfSolid solid)

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

Returns:
the X-value of the extrusion vector extr_x0.
Parameters:
solida pointer to a DXF SOLID entity.

Definition at line 3828 of file solid.c.

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

DxfSolid* dxf_solid_set_extr_x0 ( DxfSolid solid,
double  extr_x0 
)

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

Returns:
a pointer to solid when successful, or NULL when an error occurred.
Parameters:
solida pointer to a DXF SOLID entity.
extr_x0the X-value of the extrusion vector extr_x0 of a DXF SOLID entity.

Definition at line 3861 of file solid.c.

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

double dxf_solid_get_extr_y0 ( DxfSolid solid)

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

Returns:
the Y-value of the extrusion vector extr_y0.
Parameters:
solida pointer to a DXF SOLID entity.

Definition at line 3896 of file solid.c.

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

DxfSolid* dxf_solid_set_extr_y0 ( DxfSolid solid,
double  extr_y0 
)

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

Returns:
a pointer to solid when successful, or NULL when an error occurred.
Parameters:
solida pointer to a DXF SOLID entity.
extr_y0the Y-value of the extrusion vector extr_y0 of a DXF SOLID entity.

Definition at line 3929 of file solid.c.

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

double dxf_solid_get_extr_z0 ( DxfSolid solid)

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

Returns:
the Z-value of the extrusion vector extr_z0.
Parameters:
solida pointer to a DXF SOLID entity.

Definition at line 3964 of file solid.c.

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

DxfSolid* dxf_solid_set_extr_z0 ( DxfSolid solid,
double  extr_z0 
)

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

Returns:
a pointer to solid when successful, or NULL when an error occurred.
Parameters:
solida pointer to a DXF SOLID entity.
extr_z0the Z-value of the extrusion vector extr_z0 of a DXF SOLID entity.

Definition at line 3997 of file solid.c.

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

DxfSolid* dxf_solid_get_next ( DxfSolid solid)

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

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

Definition at line 4034 of file solid.c.

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

DxfSolid* dxf_solid_set_next ( DxfSolid solid,
DxfSolid next 
)

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

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

Definition at line 4070 of file solid.c.

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

DxfSolid* dxf_solid_get_last ( DxfSolid solid)

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

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

Definition at line 4113 of file solid.c.

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