libDXF 0.0.1
A library with DXF related functions written in C.
|
Header file for a DXF circle entity (CIRCLE
).
More...
Go to the source code of this file.
Data Structures | |
struct | dxf_circle_struct |
DXF definition of a circle entity (CIRCLE ). More... | |
Typedefs | |
typedef struct dxf_circle_struct | DxfCircle |
DXF definition of a circle entity (CIRCLE ). | |
Functions | |
DxfCircle * | dxf_circle_new () |
Allocate memory for a DXF CIRCLE . | |
DxfCircle * | dxf_circle_init (DxfCircle *circle) |
Allocate memory and initialize data fields in a CIRCLE entity. | |
DxfCircle * | dxf_circle_read (DxfFile *fp, DxfCircle *circle) |
Read data from a DXF file into a DXF CIRCLE entity. | |
int | dxf_circle_write (DxfFile *fp, DxfCircle *circle) |
Write DXF output to file for a DXF CIRCLE entity. | |
int | dxf_circle_free (DxfCircle *circle) |
Free the allocated memory for a DXF CIRCLE and all it's data fields. | |
void | dxf_circle_free_chain (DxfCircle *circles) |
Free the allocated memory for a chain of DXF CIRCLE entities and all their data fields. | |
int | dxf_circle_get_id_code (DxfCircle *circle) |
Get the ID code from a DXF CIRCLE entity. | |
DxfCircle * | dxf_circle_set_id_code (DxfCircle *circle, int id_code) |
Set the ID code for a DXF CIRCLE entity. | |
char * | dxf_circle_get_linetype (DxfCircle *circle) |
Get the linetype from a DXF CIRCLE entity. | |
DxfCircle * | dxf_circle_set_linetype (DxfCircle *circle, char *linetype) |
Set the linetype for a DXF CIRCLE entity. | |
char * | dxf_circle_get_layer (DxfCircle *circle) |
Get the layer from a DXF CIRCLE entity. | |
DxfCircle * | dxf_circle_set_layer (DxfCircle *circle, char *layer) |
Set the layer for a DXF CIRCLE entity. | |
double | dxf_circle_get_elevation (DxfCircle *circle) |
Get the elevation from a DXF CIRCLE entity. | |
DxfCircle * | dxf_circle_set_elevation (DxfCircle *circle, double elevation) |
Set the elevation for a DXF CIRCLE entity. | |
double | dxf_circle_get_thickness (DxfCircle *circle) |
Get the thickness from a DXF CIRCLE entity. | |
DxfCircle * | dxf_circle_set_thickness (DxfCircle *circle, double thickness) |
Set the thickness for a DXF CIRCLE entity. | |
double | dxf_circle_get_linetype_scale (DxfCircle *circle) |
Get the linetype scale from a DXF CIRCLE entity. | |
DxfCircle * | dxf_circle_set_linetype_scale (DxfCircle *circle, double linetype_scale) |
Set the linetype scale for a DXF CIRCLE entity. | |
int16_t | dxf_circle_get_visibility (DxfCircle *circle) |
Get the visibility from a DXF CIRCLE entity. | |
DxfCircle * | dxf_circle_set_visibility (DxfCircle *circle, int16_t visibility) |
Set the visibility for a DXF CIRCLE entity. | |
int | dxf_circle_get_color (DxfCircle *circle) |
Get the color from a DXF CIRCLE entity. | |
DxfCircle * | dxf_circle_set_color (DxfCircle *circle, int color) |
Set the color for a DXF CIRCLE entity. | |
int | dxf_circle_get_paperspace (DxfCircle *circle) |
Get the paperspace flag value from a DXF CIRCLE entity. | |
DxfCircle * | dxf_circle_set_paperspace (DxfCircle *circle, int paperspace) |
Set the paperspace flag for a DXF CIRCLE entity. | |
int | dxf_circle_get_graphics_data_size (DxfCircle *circle) |
Get the graphics_data_size value from a DXF CIRCLE entity. | |
DxfCircle * | dxf_circle_set_graphics_data_size (DxfCircle *circle, int graphics_data_size) |
Set the graphics_data_size value for a DXF CIRCLE entity. | |
int16_t | dxf_circle_get_shadow_mode (DxfCircle *circle) |
Get the shadow_mode from a DXF CIRCLE entity. | |
DxfCircle * | dxf_circle_set_shadow_mode (DxfCircle *circle, int16_t shadow_mode) |
Set the shadow_mode for a DXF CIRCLE entity. | |
DxfBinaryGraphicsData * | dxf_circle_get_binary_graphics_data (DxfCircle *circle) |
Get the pointer to the binary graphics data from a DXF CIRCLE entity. | |
DxfCircle * | dxf_circle_set_binary_graphics_data (DxfCircle *circle, DxfBinaryGraphicsData *data) |
Set the pointer to the binary_graphics_data for a DXF CIRCLE entity. | |
char * | dxf_circle_get_dictionary_owner_soft (DxfCircle *circle) |
Get the soft pointer to the dictionary owner from a DXF CIRCLE entity. | |
DxfCircle * | dxf_circle_set_dictionary_owner_soft (DxfCircle *circle, char *dictionary_owner_soft) |
Set the pointer to the dictionary_owner_soft for a DXF CIRCLE entity. | |
char * | dxf_circle_get_material (DxfCircle *circle) |
Get the pointer to the material from a DXF CIRCLE entity. | |
DxfCircle * | dxf_circle_set_material (DxfCircle *circle, char *material) |
Set the pointer to the material for a DXF CIRCLE entity. | |
char * | dxf_circle_get_dictionary_owner_hard (DxfCircle *circle) |
Get the hard pointer to the dictionary owner from a DXF CIRCLE entity. | |
DxfCircle * | dxf_circle_set_dictionary_owner_hard (DxfCircle *circle, char *dictionary_owner_hard) |
Set the pointer to the dictionary_owner_hard for a DXF CIRCLE entity. | |
int16_t | dxf_circle_get_lineweight (DxfCircle *circle) |
Get the lineweight from a DXF CIRCLE entity. | |
DxfCircle * | dxf_circle_set_lineweight (DxfCircle *circle, int16_t lineweight) |
Set the lineweight for a DXF CIRCLE entity. | |
char * | dxf_circle_get_plot_style_name (DxfCircle *circle) |
Get the plot_style_name from a DXF CIRCLE entity. | |
DxfCircle * | dxf_circle_set_plot_style_name (DxfCircle *circle, char *plot_style_name) |
Set the plot_style_name for a DXF CIRCLE entity. | |
long | dxf_circle_get_color_value (DxfCircle *circle) |
Get the color_value from a DXF CIRCLE entity. | |
DxfCircle * | dxf_circle_set_color_value (DxfCircle *circle, long color_value) |
Set the color_value for a DXF CIRCLE entity. | |
char * | dxf_circle_get_color_name (DxfCircle *circle) |
Get the color_name from a DXF CIRCLE entity. | |
DxfCircle * | dxf_circle_set_color_name (DxfCircle *circle, char *color_name) |
Set the color_name for a DXF CIRCLE entity. | |
long | dxf_circle_get_transparency (DxfCircle *circle) |
Get the transparency from a DXF CIRCLE entity. | |
DxfCircle * | dxf_circle_set_transparency (DxfCircle *circle, long transparency) |
Set the transparency for a DXF CIRCLE entity. | |
DxfPoint * | dxf_circle_get_p0 (DxfCircle *circle) |
Get the base point p0 of a DXF CIRCLE entity. | |
DxfCircle * | dxf_circle_set_p0 (DxfCircle *circle, DxfPoint *point) |
Set the base point p0 of a DXF CIRCLE entity. | |
double | dxf_circle_get_x0 (DxfCircle *circle) |
Get the X-value of the base point x0 of a DXF CIRCLE entity. | |
DxfCircle * | dxf_circle_set_x0 (DxfCircle *circle, double x0) |
Set the X-value of the base point x0 of a DXF CIRCLE entity. | |
double | dxf_circle_get_y0 (DxfCircle *circle) |
Get the Y-value of the base point y0 of a DXF CIRCLE entity. | |
DxfCircle * | dxf_circle_set_y0 (DxfCircle *circle, double y0) |
Set the Y-value of the base point y0 of a DXF CIRCLE entity. | |
double | dxf_circle_get_z0 (DxfCircle *circle) |
Get the Z-value of the base point z0 of a DXF CIRCLE entity. | |
DxfCircle * | dxf_circle_set_z0 (DxfCircle *circle, double z0) |
Set the Z-value of the base point z0 of a DXF CIRCLE entity. | |
double | dxf_circle_get_radius (DxfCircle *circle) |
Get the radius from a DXF CIRCLE entity. | |
DxfCircle * | dxf_circle_set_radius (DxfCircle *circle, double radius) |
Set the radius for a DXF CIRCLE entity. | |
DxfPoint * | dxf_circle_get_extrusion_vector_as_point (DxfCircle *circle) |
Get the extrusion vector as a DXF POINT entity from a DXF CIRCLE entity. | |
DxfCircle * | dxf_circle_set_extrusion_vector (DxfCircle *circle, double extr_x0, double extr_y0, double extr_z0) |
Set the extrusion vector for a DXF CIRCLE entity. | |
double | dxf_circle_get_extr_x0 (DxfCircle *circle) |
Get the extr_x0 from a DXF CIRCLE entity. | |
DxfCircle * | dxf_circle_set_extr_x0 (DxfCircle *circle, double extr_x0) |
Set the extr_x0 for a DXF CIRCLE entity. | |
double | dxf_circle_get_extr_y0 (DxfCircle *circle) |
Get the extr_y0 from a DXF CIRCLE entity. | |
DxfCircle * | dxf_circle_set_extr_y0 (DxfCircle *circle, double extr_y0) |
Set the extr_y0 for a DXF CIRCLE entity. | |
double | dxf_circle_get_extr_z0 (DxfCircle *circle) |
Get the extr_z0 from a DXF CIRCLE entity. | |
DxfCircle * | dxf_circle_set_extr_z0 (DxfCircle *circle, double extr_z0) |
Set the extr_z0 for a DXF CIRCLE entity. | |
double | dxf_circle_get_area (DxfCircle *circle) |
Get the area from a DXF CIRCLE entity. | |
double | dxf_circle_get_circumference (DxfCircle *circle) |
Get the circumference from a DXF CIRCLE entity. | |
int | dxf_circle_test_point_in_circle (DxfPoint *point, DxfCircle *circle) |
Test if a DXF POINT lies within, on top or outside a DXF CIRCLE entity. | |
DxfCircle * | dxf_circle_get_next (DxfCircle *circle) |
Get the pointer to the next CIRCLE entity from a DXF CIRCLE entity. | |
DxfCircle * | dxf_circle_set_next (DxfCircle *circle, DxfCircle *next) |
Set the pointer to the next CIRCLE for a DXF CIRCLE entity. | |
DxfCircle * | dxf_circle_get_last (DxfCircle *circle) |
Get the pointer to the last CIRCLE entity from a linked list of DXF CIRCLE entities. |
Header file for a DXF circle entity (CIRCLE
).
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 circle.h.
typedef struct dxf_circle_struct DxfCircle |
DXF definition of a circle entity (CIRCLE
).
DxfCircle* dxf_circle_new | ( | ) |
Allocate memory for a DXF CIRCLE
.
Fill the memory contents with zeros.
Definition at line 53 of file circle.c.
References _, DXF_DEBUG_BEGIN, and DXF_DEBUG_END.
Referenced by dxf_circle_init(), and dxf_circle_read().
Allocate memory and initialize data fields in a CIRCLE
entity.
NULL
when no memory was allocated, a pointer to the allocated memory when succesful. circle | DXF circle entity. |
Definition at line 91 of file circle.c.
References _, dxf_binary_graphics_data_init(), dxf_binary_graphics_data_new(), dxf_circle_get_binary_graphics_data(), dxf_circle_get_p0(), dxf_circle_new(), dxf_circle_set_binary_graphics_data(), dxf_circle_set_color(), dxf_circle_set_color_name(), dxf_circle_set_color_value(), dxf_circle_set_dictionary_owner_hard(), dxf_circle_set_dictionary_owner_soft(), dxf_circle_set_elevation(), dxf_circle_set_extr_x0(), dxf_circle_set_extr_y0(), dxf_circle_set_extr_z0(), dxf_circle_set_graphics_data_size(), dxf_circle_set_id_code(), dxf_circle_set_layer(), dxf_circle_set_linetype(), dxf_circle_set_linetype_scale(), dxf_circle_set_lineweight(), dxf_circle_set_material(), dxf_circle_set_next(), dxf_circle_set_p0(), dxf_circle_set_paperspace(), dxf_circle_set_plot_style_name(), dxf_circle_set_radius(), dxf_circle_set_shadow_mode(), dxf_circle_set_thickness(), dxf_circle_set_transparency(), dxf_circle_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_point_init(), and dxf_point_new().
Referenced by dxf_circle_read().
Read data from a DXF file into a DXF CIRCLE
entity.
The last line read from file contained the string "CIRCLE".
Now follows some data for the CIRCLE
, 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 circle
.
circle
. fp | DXF file pointer to an input file (or device). |
circle | DXF circle entity. |
Definition at line 162 of file circle.c.
References _, dxf_file_struct::acad_version_number, AutoCAD_11, AutoCAD_13, dxf_circle_struct::color, dxf_circle_struct::dictionary_owner_hard, dxf_circle_struct::dictionary_owner_soft, dxf_circle_get_layer(), dxf_circle_get_linetype(), dxf_circle_init(), dxf_circle_new(), dxf_circle_set_layer(), dxf_circle_set_linetype(), DXF_DEBUG_BEGIN, DXF_DEBUG_END, DXF_DEFAULT_LAYER, DXF_DEFAULT_LINETYPE, dxf_circle_struct::elevation, dxf_circle_struct::extr_x0, dxf_circle_struct::extr_y0, dxf_circle_struct::extr_z0, dxf_file_struct::filename, dxf_file_struct::fp, dxf_circle_struct::id_code, dxf_circle_struct::layer, dxf_file_struct::line_number, dxf_circle_struct::linetype, dxf_circle_struct::linetype_scale, dxf_circle_struct::p0, dxf_circle_struct::paperspace, dxf_circle_struct::radius, dxf_circle_struct::thickness, dxf_circle_struct::visibility, dxf_point_struct::x0, dxf_point_struct::y0, and dxf_point_struct::z0.
Write DXF output to file for a DXF CIRCLE
entity.
fp | DXF file pointer to an output file (or device). |
circle | DXF circle entity. |
Definition at line 385 of file circle.c.
References _, dxf_file_struct::acad_version_number, AutoCAD_11, AutoCAD_12, AutoCAD_13, AutoCAD_14, dxf_circle_get_color(), dxf_circle_get_dictionary_owner_hard(), dxf_circle_get_dictionary_owner_soft(), dxf_circle_get_elevation(), dxf_circle_get_id_code(), dxf_circle_get_layer(), dxf_circle_get_linetype(), dxf_circle_get_linetype_scale(), dxf_circle_get_paperspace(), dxf_circle_get_radius(), dxf_circle_get_thickness(), dxf_circle_get_visibility(), dxf_circle_get_x0(), dxf_circle_get_y0(), dxf_circle_get_z0(), dxf_circle_set_layer(), dxf_circle_set_linetype(), DXF_COLOR_BYLAYER, DXF_DEBUG_BEGIN, DXF_DEBUG_END, DXF_DEFAULT_LAYER, DXF_DEFAULT_LINETYPE, DXF_FLATLAND, DXF_PAPERSPACE, dxf_circle_struct::extr_x0, dxf_circle_struct::extr_y0, dxf_circle_struct::extr_z0, and dxf_file_struct::fp.
int dxf_circle_free | ( | DxfCircle * | circle | ) |
Free the allocated memory for a DXF CIRCLE
and all it's data fields.
EXIT_SUCCESS
when done, or EXIT_FAILURE
when an error occurred. circle | Pointer to the memory occupied by the DXF CIRCLE entity. |
Definition at line 545 of file circle.c.
References _, dxf_circle_struct::dictionary_owner_hard, dxf_circle_struct::dictionary_owner_soft, DXF_DEBUG_BEGIN, DXF_DEBUG_END, dxf_circle_struct::layer, dxf_circle_struct::linetype, and dxf_circle_struct::next.
Referenced by dxf_circle_free_chain().
void dxf_circle_free_chain | ( | DxfCircle * | circles | ) |
Free the allocated memory for a chain of DXF CIRCLE
entities and all their data fields.
circles | pointer to the chain of DXF CIRCLE entities. |
Definition at line 587 of file circle.c.
References _, dxf_circle_free(), DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_circle_struct::next.
int dxf_circle_get_id_code | ( | DxfCircle * | circle | ) |
Get the ID code from a DXF CIRCLE
entity.
circle | a pointer to a DXF CIRCLE entity. |
Definition at line 620 of file circle.c.
References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_circle_struct::id_code.
Referenced by dxf_circle_write().
Set the ID code for a DXF CIRCLE
entity.
circle | a pointer to a DXF CIRCLE entity. |
id_code | Identification number for the entity. This is to be an unique (sequential) number in the DXF file. |
Definition at line 655 of file circle.c.
References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_circle_struct::id_code.
Referenced by dxf_circle_init().
char* dxf_circle_get_linetype | ( | DxfCircle * | circle | ) |
Get the linetype from a DXF CIRCLE
entity.
NULL
when an error occurred. circle | a pointer to a DXF CIRCLE entity. |
Definition at line 697 of file circle.c.
References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_circle_struct::linetype.
Referenced by dxf_circle_read(), and dxf_circle_write().
Set the linetype for a DXF CIRCLE
entity.
circle | a pointer to a DXF CIRCLE entity. |
linetype | a string containing the linetype for the entity. |
Definition at line 732 of file circle.c.
References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_circle_struct::linetype.
Referenced by dxf_circle_init(), dxf_circle_read(), and dxf_circle_write().
char* dxf_circle_get_layer | ( | DxfCircle * | circle | ) |
Get the layer from a DXF CIRCLE
entity.
NULL
when an error occurred. circle | a pointer to a DXF CIRCLE entity. |
Definition at line 772 of file circle.c.
References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_circle_struct::layer.
Referenced by dxf_circle_read(), and dxf_circle_write().
Set the layer for a DXF CIRCLE
entity.
circle | a pointer to a DXF CIRCLE entity. |
layer | a string containing the layer for the entity. |
Definition at line 807 of file circle.c.
References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_circle_struct::layer.
Referenced by dxf_circle_init(), dxf_circle_read(), and dxf_circle_write().
double dxf_circle_get_elevation | ( | DxfCircle * | circle | ) |
Get the elevation from a DXF CIRCLE
entity.
circle | a pointer to a DXF CIRCLE entity. |
Definition at line 847 of file circle.c.
References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_circle_struct::elevation.
Referenced by dxf_circle_write().
Set the elevation for a DXF CIRCLE
entity.
circle | a pointer to a DXF CIRCLE entity. |
elevation | the elevation to be set for the entity. |
Definition at line 875 of file circle.c.
References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_circle_struct::elevation.
Referenced by dxf_circle_init().
double dxf_circle_get_thickness | ( | DxfCircle * | circle | ) |
Get the thickness from a DXF CIRCLE
entity.
circle | a pointer to a DXF CIRCLE entity. |
Definition at line 908 of file circle.c.
References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_circle_struct::thickness.
Referenced by dxf_circle_write().
Set the thickness for a DXF CIRCLE
entity.
circle | a pointer to a DXF CIRCLE entity. |
thickness | the thickness to be set for the entity. |
Definition at line 943 of file circle.c.
References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_circle_struct::thickness.
Referenced by dxf_circle_init().
double dxf_circle_get_linetype_scale | ( | DxfCircle * | circle | ) |
Get the linetype scale from a DXF CIRCLE
entity.
circle | a pointer to a DXF CIRCLE entity. |
Definition at line 983 of file circle.c.
References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_circle_struct::linetype_scale.
Referenced by dxf_circle_write().
Set the linetype scale for a DXF CIRCLE
entity.
circle | a pointer to a DXF CIRCLE entity. |
linetype_scale | the linetype scale to be set for the entity. |
Definition at line 1018 of file circle.c.
References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_circle_struct::linetype_scale.
Referenced by dxf_circle_init().
int16_t dxf_circle_get_visibility | ( | DxfCircle * | circle | ) |
Get the visibility from a DXF CIRCLE
entity.
circle | a pointer to a DXF CIRCLE entity. |
Definition at line 1058 of file circle.c.
References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_circle_struct::visibility.
Referenced by dxf_circle_write().
Set the visibility for a DXF CIRCLE
entity.
circle | a pointer to a DXF CIRCLE entity. |
visibility | the visibility to be set for the entity. |
Definition at line 1100 of file circle.c.
References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_circle_struct::visibility.
Referenced by dxf_circle_init().
int dxf_circle_get_color | ( | DxfCircle * | circle | ) |
Get the color from a DXF CIRCLE
entity.
circle | a pointer to a DXF CIRCLE entity. |
Definition at line 1147 of file circle.c.
References _, dxf_circle_struct::color, DXF_DEBUG_BEGIN, and DXF_DEBUG_END.
Referenced by dxf_circle_write().
Set the color for a DXF CIRCLE
entity.
circle | a pointer to a DXF CIRCLE entity. |
color | the color to be set for the entity. |
Definition at line 1181 of file circle.c.
References _, dxf_circle_struct::color, DXF_DEBUG_BEGIN, and DXF_DEBUG_END.
Referenced by dxf_circle_init().
int dxf_circle_get_paperspace | ( | DxfCircle * | circle | ) |
Get the paperspace flag value from a DXF CIRCLE
entity.
circle | a pointer to a DXF CIRCLE entity. |
Definition at line 1222 of file circle.c.
References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_circle_struct::paperspace.
Referenced by dxf_circle_write().
Set the paperspace flag for a DXF CIRCLE
entity.
circle | a pointer to a DXF CIRCLE entity. |
paperspace | the paperspace flag value to be set for the entity. |
Definition at line 1262 of file circle.c.
References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_circle_struct::paperspace.
Referenced by dxf_circle_init().
int dxf_circle_get_graphics_data_size | ( | DxfCircle * | circle | ) |
Get the graphics_data_size
value from a DXF CIRCLE
entity.
graphics_data_size
value when successful, or EXIT_FAILURE
when an error occurred. circle | a pointer to a DXF CIRCLE entity. |
Definition at line 1311 of file circle.c.
References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_circle_struct::graphics_data_size.
Set the graphics_data_size
value for a DXF CIRCLE
entity.
circle
when successful, or NULL
when an error occurred. circle | a pointer to a DXF CIRCLE entity. |
graphics_data_size | the graphics_data_size value to be set for the entity. |
Definition at line 1354 of file circle.c.
References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_circle_struct::graphics_data_size.
Referenced by dxf_circle_init().
int16_t dxf_circle_get_shadow_mode | ( | DxfCircle * | circle | ) |
Get the shadow_mode
from a DXF CIRCLE
entity.
shadow_mode
when successful, or EXIT_FAILURE
when an error occurred. circle | a pointer to a DXF CIRCLE entity. |
Definition at line 1403 of file circle.c.
References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_circle_struct::shadow_mode.
Set the shadow_mode
for a DXF CIRCLE
entity.
circle
when successful, or NULL
when an error occurred. circle | a pointer to a DXF CIRCLE entity. |
shadow_mode | the shadow mode to be set for the entity. |
Definition at line 1448 of file circle.c.
References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_circle_struct::shadow_mode.
Referenced by dxf_circle_init().
DxfBinaryGraphicsData* dxf_circle_get_binary_graphics_data | ( | DxfCircle * | circle | ) |
Get the pointer to the binary graphics data from a DXF CIRCLE
entity.
circle | a pointer to a DXF CIRCLE entity. |
Definition at line 1498 of file circle.c.
References _, dxf_circle_struct::binary_graphics_data, DXF_DEBUG_BEGIN, and DXF_DEBUG_END.
Referenced by dxf_circle_init().
DxfCircle* dxf_circle_set_binary_graphics_data | ( | DxfCircle * | circle, |
DxfBinaryGraphicsData * | data | ||
) |
Set the pointer to the binary_graphics_data for a DXF CIRCLE
entity.
circle
when successful, or NULL
when an error occurred. circle | a pointer to a DXF CIRCLE entity. |
data | a string containing the pointer to the binary_graphics_data for the entity. |
Definition at line 1537 of file circle.c.
References _, dxf_circle_struct::binary_graphics_data, DXF_DEBUG_BEGIN, and DXF_DEBUG_END.
Referenced by dxf_circle_init().
char* dxf_circle_get_dictionary_owner_soft | ( | DxfCircle * | circle | ) |
Get the soft pointer to the dictionary owner from a DXF CIRCLE
entity.
circle | a pointer to a DXF CIRCLE entity. |
Definition at line 1581 of file circle.c.
References _, dxf_circle_struct::dictionary_owner_soft, DXF_DEBUG_BEGIN, and DXF_DEBUG_END.
Referenced by dxf_circle_write().
DxfCircle* dxf_circle_set_dictionary_owner_soft | ( | DxfCircle * | circle, |
char * | dictionary_owner_soft | ||
) |
Set the pointer to the dictionary_owner_soft for a DXF CIRCLE
entity.
circle | a pointer to a DXF CIRCLE entity. |
dictionary_owner_soft | a string containing the pointer to the dictionary_owner_soft for the entity. |
Definition at line 1617 of file circle.c.
References _, dxf_circle_struct::dictionary_owner_soft, DXF_DEBUG_BEGIN, and DXF_DEBUG_END.
Referenced by dxf_circle_init().
char* dxf_circle_get_material | ( | DxfCircle * | circle | ) |
Get the pointer to the material
from a DXF CIRCLE
entity.
material
when successful, or NULL
when an error occurred.circle | a pointer to a DXF CIRCLE entity. |
Definition at line 1662 of file circle.c.
References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_circle_struct::material.
Set the pointer to the material
for a DXF CIRCLE
entity.
circle
when successful, or NULL
when an error occurred. circle | a pointer to a DXF CIRCLE entity. |
material | a string containing the pointer to the material for the entity. |
Definition at line 1700 of file circle.c.
References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_circle_struct::material.
Referenced by dxf_circle_init().
char* dxf_circle_get_dictionary_owner_hard | ( | DxfCircle * | circle | ) |
Get the hard pointer to the dictionary owner from a DXF CIRCLE
entity.
circle | a pointer to a DXF CIRCLE entity. |
Definition at line 1744 of file circle.c.
References _, dxf_circle_struct::dictionary_owner_hard, DXF_DEBUG_BEGIN, and DXF_DEBUG_END.
Referenced by dxf_circle_write().
DxfCircle* dxf_circle_set_dictionary_owner_hard | ( | DxfCircle * | circle, |
char * | dictionary_owner_hard | ||
) |
Set the pointer to the dictionary_owner_hard for a DXF CIRCLE
entity.
circle | a pointer to a DXF CIRCLE entity. |
dictionary_owner_hard | a string containing the pointer to the dictionary_owner_hard for the entity. |
Definition at line 1780 of file circle.c.
References _, dxf_circle_struct::dictionary_owner_hard, DXF_DEBUG_BEGIN, and DXF_DEBUG_END.
Referenced by dxf_circle_init().
int16_t dxf_circle_get_lineweight | ( | DxfCircle * | circle | ) |
Get the lineweight
from a DXF CIRCLE
entity.
lineweight
when successful, or EXIT_FAILURE
when an error occurred. circle | a pointer to a DXF CIRCLE entity. |
Definition at line 1822 of file circle.c.
References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_circle_struct::lineweight.
Set the lineweight
for a DXF CIRCLE
entity.
circle
when successful, or NULL
when an error occurred. circle | a pointer to a DXF CIRCLE entity. |
lineweight | the lineweight to be set for the entity. |
Definition at line 1853 of file circle.c.
References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_circle_struct::lineweight.
Referenced by dxf_circle_init().
char* dxf_circle_get_plot_style_name | ( | DxfCircle * | circle | ) |
Get the plot_style_name
from a DXF CIRCLE
entity.
plot_style_name
when sucessful, or NULL
when an error occurred. circle | a pointer to a DXF CIRCLE entity. |
Definition at line 1887 of file circle.c.
References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_circle_struct::plot_style_name.
Set the plot_style_name
for a DXF CIRCLE
entity.
circle
when successful, or NULL
when an error occurred. circle | a pointer to a DXF CIRCLE entity. |
plot_style_name | a string containing the plot_style_name for the entity. |
Definition at line 1925 of file circle.c.
References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_circle_struct::plot_style_name.
Referenced by dxf_circle_init().
long dxf_circle_get_color_value | ( | DxfCircle * | circle | ) |
Get the color_value
from a DXF CIRCLE
entity.
color_value
when successful, or EXIT_FAILURE
when an error occurred. circle | a pointer to a DXF CIRCLE entity. |
Definition at line 1967 of file circle.c.
References _, dxf_circle_struct::color_value, DXF_DEBUG_BEGIN, and DXF_DEBUG_END.
Set the color_value
for a DXF CIRCLE
entity.
circle
when successful, or NULL
when an error occurred. circle | a pointer to a DXF CIRCLE entity. |
color_value | the color_value to be set for the entity. |
Definition at line 1998 of file circle.c.
References _, dxf_circle_struct::color_value, DXF_DEBUG_BEGIN, and DXF_DEBUG_END.
Referenced by dxf_circle_init().
char* dxf_circle_get_color_name | ( | DxfCircle * | circle | ) |
Get the color_name
from a DXF CIRCLE
entity.
color_name
when sucessful, or NULL
when an error occurred. circle | a pointer to a DXF CIRCLE entity. |
Definition at line 2032 of file circle.c.
References _, dxf_circle_struct::color_name, DXF_DEBUG_BEGIN, and DXF_DEBUG_END.
Set the color_name
for a DXF CIRCLE
entity.
circle
when successful, or NULL
when an error occurred. circle | a pointer to a DXF CIRCLE entity. |
color_name | a string containing the color_name for the entity. |
Definition at line 2070 of file circle.c.
References _, dxf_circle_struct::color_name, DXF_DEBUG_BEGIN, and DXF_DEBUG_END.
Referenced by dxf_circle_init().
long dxf_circle_get_transparency | ( | DxfCircle * | circle | ) |
Get the transparency
from a DXF CIRCLE
entity.
transparency
when successful, or EXIT_FAILURE
when an error occurred. circle | a pointer to a DXF CIRCLE entity. |
Definition at line 2112 of file circle.c.
References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_circle_struct::transparency.
Set the transparency
for a DXF CIRCLE
entity.
circle
when successful, or NULL
when an error occurred. circle | a pointer to a DXF CIRCLE entity. |
transparency | the transparency to be set for the entity. |
Definition at line 2143 of file circle.c.
References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_circle_struct::transparency.
Referenced by dxf_circle_init().
Get the base point p0
of a DXF CIRCLE
entity.
circle | a pointer to a DXF CIRCLE entity. |
Definition at line 2176 of file circle.c.
References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_circle_struct::p0.
Referenced by dxf_circle_init().
Set the base point p0
of a DXF CIRCLE
entity.
CIRCLE
entity. circle | a pointer to a DXF CIRCLE entity. |
point | a pointer to a DXF POINT entity. |
Definition at line 2213 of file circle.c.
References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_circle_struct::p0.
Referenced by dxf_circle_init().
double dxf_circle_get_x0 | ( | DxfCircle * | circle | ) |
Get the X-value of the base point x0
of a DXF CIRCLE
entity.
x0
. circle | a pointer to a DXF CIRCLE entity. |
Definition at line 2254 of file circle.c.
References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, dxf_circle_struct::p0, and dxf_point_struct::x0.
Referenced by dxf_circle_write().
Set the X-value of the base point x0
of a DXF CIRCLE
entity.
circle
when successful, or NULL
when an error occurred. circle | a pointer to a DXF CIRCLE entity. |
x0 | the X-value of the base point x0 of a DXF CIRCLE entity. |
Definition at line 2294 of file circle.c.
References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, dxf_circle_struct::p0, and dxf_point_struct::x0.
double dxf_circle_get_y0 | ( | DxfCircle * | circle | ) |
Get the Y-value of the base point y0
of a DXF CIRCLE
entity.
y0
. circle | a pointer to a DXF CIRCLE entity. |
Definition at line 2336 of file circle.c.
References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, dxf_circle_struct::p0, and dxf_point_struct::y0.
Referenced by dxf_circle_write().
Set the Y-value of the base point y0
of a DXF CIRCLE
entity.
circle
when successful, or NULL
when an error occurred. circle | a pointer to a DXF CIRCLE entity. |
y0 | the Y-value of the base point y0 of a DXF CIRCLE entity. |
Definition at line 2376 of file circle.c.
References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, dxf_circle_struct::p0, and dxf_point_struct::y0.
double dxf_circle_get_z0 | ( | DxfCircle * | circle | ) |
Get the Z-value of the base point z0
of a DXF CIRCLE
entity.
z0
. circle | a pointer to a DXF CIRCLE entity. |
Definition at line 2418 of file circle.c.
References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, dxf_circle_struct::p0, and dxf_point_struct::z0.
Referenced by dxf_circle_write().
Set the Z-value of the base point z0
of a DXF CIRCLE
entity.
circle
when successful, or NULL
when an error occurred. circle | a pointer to a DXF CIRCLE entity. |
z0 | the Z-value of the base point z0 of a DXF CIRCLE entity. |
Definition at line 2458 of file circle.c.
References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, dxf_circle_struct::p0, and dxf_point_struct::z0.
double dxf_circle_get_radius | ( | DxfCircle * | circle | ) |
Get the radius from a DXF CIRCLE
entity.
circle | a pointer to a DXF CIRCLE entity. |
Definition at line 2499 of file circle.c.
References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_circle_struct::radius.
Referenced by dxf_circle_write().
Set the radius for a DXF CIRCLE
entity.
circle | a pointer to a DXF CIRCLE entity. |
radius | the radius to be set for the entity. |
Definition at line 2541 of file circle.c.
References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_circle_struct::radius.
Referenced by dxf_circle_init().
Get the extrusion vector as a DXF POINT
entity from a DXF CIRCLE
entity.
POINT
containing the extrusion coordinates.POINT
. circle | a pointer to a DXF CIRCLE entity. |
Definition at line 2591 of file circle.c.
References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, dxf_point_init(), dxf_circle_struct::extr_x0, dxf_circle_struct::extr_y0, and dxf_circle_struct::extr_z0.
DxfCircle* dxf_circle_set_extrusion_vector | ( | DxfCircle * | circle, |
double | extr_x0, | ||
double | extr_y0, | ||
double | extr_z0 | ||
) |
Set the extrusion vector for a DXF CIRCLE
entity.
circle | a pointer to a DXF CIRCLE entity. |
extr_x0 | X-value of the extrusion direction. |
extr_y0 | Y-value of the extrusion direction. |
extr_z0 | Z-value of the extrusion direction. |
Definition at line 2632 of file circle.c.
References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, dxf_circle_struct::extr_x0, dxf_circle_struct::extr_y0, and dxf_circle_struct::extr_z0.
double dxf_circle_get_extr_x0 | ( | DxfCircle * | circle | ) |
Get the extr_x0
from a DXF CIRCLE
entity.
extr_xo
. circle | a pointer to a DXF CIRCLE entity. |
Definition at line 2671 of file circle.c.
References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_circle_struct::extr_x0.
Set the extr_x0
for a DXF CIRCLE
entity.
circle | a pointer to a DXF CIRCLE entity. |
extr_x0 | the extr_x0 to be set for the entity. |
Definition at line 2699 of file circle.c.
References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_circle_struct::extr_x0.
Referenced by dxf_circle_init().
double dxf_circle_get_extr_y0 | ( | DxfCircle * | circle | ) |
Get the extr_y0
from a DXF CIRCLE
entity.
extr_xo
. circle | a pointer to a DXF CIRCLE entity. |
Definition at line 2732 of file circle.c.
References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_circle_struct::extr_y0.
Set the extr_y0
for a DXF CIRCLE
entity.
circle | a pointer to a DXF CIRCLE entity. |
extr_y0 | the extr_y0 to be set for the entity. |
Definition at line 2760 of file circle.c.
References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_circle_struct::extr_y0.
Referenced by dxf_circle_init().
double dxf_circle_get_extr_z0 | ( | DxfCircle * | circle | ) |
Get the extr_z0
from a DXF CIRCLE
entity.
extr_zo
. circle | a pointer to a DXF CIRCLE entity. |
Definition at line 2793 of file circle.c.
References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_circle_struct::extr_z0.
Set the extr_z0
for a DXF CIRCLE
entity.
circle | a pointer to a DXF CIRCLE entity. |
extr_z0 | the extr_z0 to be set for the entity. |
Definition at line 2821 of file circle.c.
References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_circle_struct::extr_z0.
Referenced by dxf_circle_init().
double dxf_circle_get_area | ( | DxfCircle * | circle | ) |
Get the area
from a DXF CIRCLE
entity.
area
. circle | a pointer to a DXF CIRCLE entity. |
Definition at line 2854 of file circle.c.
References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_circle_struct::radius.
double dxf_circle_get_circumference | ( | DxfCircle * | circle | ) |
Get the circumference
from a DXF CIRCLE
entity.
circumference
. circle | a pointer to a DXF CIRCLE entity. |
Definition at line 2898 of file circle.c.
References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_circle_struct::radius.
Test if a DXF POINT
lies within, on top or outside a DXF CIRCLE
entity.
INSIDE
if the point lies inside the circle, OUTSIDE
if the point lies outside the circle, ON_EDGE
if the point lies on top the circle.point | a pointer to a DXF POINT entity. |
circle | a pointer to a DXF CIRCLE entity. |
Definition at line 2947 of file circle.c.
References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, INSIDE, ON_EDGE, OUTSIDE, dxf_circle_struct::p0, dxf_circle_struct::radius, dxf_point_struct::x0, and dxf_point_struct::y0.
Get the pointer to the next CIRCLE
entity from a DXF CIRCLE
entity.
CIRCLE
entity.circle | a pointer to a DXF CIRCLE entity. |
Definition at line 3011 of file circle.c.
References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_circle_struct::next.
Set the pointer to the next CIRCLE
for a DXF CIRCLE
entity.
circle | a pointer to a DXF CIRCLE entity. |
next | a pointer to the next CIRCLE for the entity. |
Definition at line 3047 of file circle.c.
References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_circle_struct::next.
Referenced by dxf_circle_init().
Get the pointer to the last CIRCLE
entity from a linked list of DXF CIRCLE
entities.
CIRCLE
entity.circle | a pointer to a DXF CIRCLE entity. |
Definition at line 3090 of file circle.c.
References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_circle_struct::next.