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

ellipse.h File Reference

Header file for a DXF ellipse entity (ELLIPSE). More...

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

Go to the source code of this file.

Data Structures

struct  dxf_ellipse_struct
 Definition of an AutoCAD ellipse entity (ELLIPSE). More...

Typedefs

typedef struct dxf_ellipse_struct DxfEllipse
 Definition of an AutoCAD ellipse entity (ELLIPSE).

Functions

DxfEllipsedxf_ellipse_new ()
 Allocate memory for a DXF ELLIPSE.
DxfEllipsedxf_ellipse_init (DxfEllipse *ellipse)
 Allocate memory and initialize data fields in a DXF ELLIPSE entity.
DxfEllipsedxf_ellipse_read (DxfFile *fp, DxfEllipse *ellipse)
 Read data from a DXF file into a DXF ELLIPSE entity.
int dxf_ellipse_write (DxfFile *fp, DxfEllipse *ellipse)
 Write DXF output to a file for a DXF ELLIPSE entity.
int dxf_ellipse_free (DxfEllipse *ellipse)
 Free the allocated memory for a DXF ELLIPSE and all it's data fields.
void dxf_ellipse_free_chain (DxfEllipse *ellipses)
 Free the allocated memory for a chain of DXF ELLIPSE entities and all their data fields.
int dxf_ellipse_get_id_code (DxfEllipse *ellipse)
 Get the id_code from a DXF ELLIPSE entity.
DxfEllipsedxf_ellipse_set_id_code (DxfEllipse *ellipse, int id_code)
 Set the ID code for a DXF ELLIPSE entity.
char * dxf_ellipse_get_linetype (DxfEllipse *ellipse)
 Get the linetype from a DXF ELLIPSE entity.
DxfEllipsedxf_ellipse_set_linetype (DxfEllipse *ellipse, char *linetype)
 Set the linetype for a DXF ELLIPSE entity.
char * dxf_ellipse_get_layer (DxfEllipse *ellipse)
 Get the layer from a DXF ELLIPSE entity.
DxfEllipsedxf_ellipse_set_layer (DxfEllipse *ellipse, char *layer)
 Set the layer for a DXF ELLIPSE entity.
double dxf_ellipse_get_elevation (DxfEllipse *ellipse)
 Get the elevation from a DXF ELLIPSE entity.
DxfEllipsedxf_ellipse_set_elevation (DxfEllipse *ellipse, double elevation)
 Set the elevation for a DXF ELLIPSE entity.
double dxf_ellipse_get_thickness (DxfEllipse *ellipse)
 Get the thickness from a DXF ELLIPSE entity.
DxfEllipsedxf_ellipse_set_thickness (DxfEllipse *ellipse, double thickness)
 Set the thickness for a DXF ELLIPSE entity.
double dxf_ellipse_get_linetype_scale (DxfEllipse *ellipse)
 Get the linetype scale from a DXF ELLIPSE entity.
DxfEllipsedxf_ellipse_set_linetype_scale (DxfEllipse *ellipse, double linetype_scale)
 Set the linetype scale for a DXF ELLIPSE entity.
int16_t dxf_ellipse_get_visibility (DxfEllipse *ellipse)
 Get the visibility from a DXF ELLIPSE entity.
DxfEllipsedxf_ellipse_set_visibility (DxfEllipse *ellipse, int16_t visibility)
 Set the visibility for a DXF ELLIPSE entity.
int dxf_ellipse_get_color (DxfEllipse *ellipse)
 Get the color from a DXF ELLIPSE entity.
DxfEllipsedxf_ellipse_set_color (DxfEllipse *ellipse, int color)
 Set the color for a DXF ELLIPSE entity.
int dxf_ellipse_get_paperspace (DxfEllipse *ellipse)
 Get the paperspace flag value from a DXF ELLIPSE entity.
DxfEllipsedxf_ellipse_set_paperspace (DxfEllipse *ellipse, int paperspace)
 Set the paperspace flag for a DXF ELLIPSE entity.
int dxf_ellipse_get_graphics_data_size (DxfEllipse *ellipse)
 Get the graphics_data_size value from a DXF ELLIPSE entity.
DxfEllipsedxf_ellipse_set_graphics_data_size (DxfEllipse *ellipse, int graphics_data_size)
 Set the graphics_data_size value for a DXF ELLIPSE entity.
int16_t dxf_ellipse_get_shadow_mode (DxfEllipse *ellipse)
 Get the shadow_mode from a DXF ELLIPSE entity.
DxfEllipsedxf_ellipse_set_shadow_mode (DxfEllipse *ellipse, int16_t shadow_mode)
 Set the shadow_mode for a DXF ELLIPSE entity.
DxfBinaryGraphicsDatadxf_ellipse_get_binary_graphics_data (DxfEllipse *ellipse)
 Get the pointer to the binary_graphics_data from a DXF ELLIPSE entity.
DxfEllipsedxf_ellipse_set_binary_graphics_data (DxfEllipse *ellipse, DxfBinaryGraphicsData *data)
 Set the pointer to the binary_graphics_data for a DXF ELLIPSE entity.
char * dxf_ellipse_get_dictionary_owner_soft (DxfEllipse *ellipse)
 Get the soft pointer to the dictionary owner from a DXF ELLIPSE entity.
DxfEllipsedxf_ellipse_set_dictionary_owner_soft (DxfEllipse *ellipse, char *dictionary_owner_soft)
 Set the pointer to the dictionary_owner_soft for a DXF ELLIPSE entity.
char * dxf_ellipse_get_material (DxfEllipse *ellipse)
 Get the pointer to the material from a DXF ELLIPSE entity.
DxfEllipsedxf_ellipse_set_material (DxfEllipse *ellipse, char *material)
 Set the pointer to the material for a DXF ELLIPSE entity.
char * dxf_ellipse_get_dictionary_owner_hard (DxfEllipse *ellipse)
 Get the hard pointer to the dictionary owner from a DXF ELLIPSE entity.
DxfEllipsedxf_ellipse_set_dictionary_owner_hard (DxfEllipse *ellipse, char *dictionary_owner_hard)
 Set the pointer to the dictionary_owner_hard for a DXF ELLIPSE entity.
int16_t dxf_ellipse_get_lineweight (DxfEllipse *ellipse)
 Get the lineweight from a DXF ELLIPSE entity.
DxfEllipsedxf_ellipse_set_lineweight (DxfEllipse *ellipse, int16_t lineweight)
 Set the lineweight for a DXF ELLIPSE entity.
char * dxf_ellipse_get_plot_style_name (DxfEllipse *ellipse)
 Get the plot_style_name from a DXF ELLIPSE entity.
DxfEllipsedxf_ellipse_set_plot_style_name (DxfEllipse *ellipse, char *plot_style_name)
 Set the plot_style_name for a DXF ELLIPSE entity.
long dxf_ellipse_get_color_value (DxfEllipse *ellipse)
 Get the color_value from a DXF ELLIPSE entity.
DxfEllipsedxf_ellipse_set_color_value (DxfEllipse *ellipse, long color_value)
 Set the color_value for a DXF ELLIPSE entity.
char * dxf_ellipse_get_color_name (DxfEllipse *ellipse)
 Get the color_name from a DXF ELLIPSE entity.
DxfEllipsedxf_ellipse_set_color_name (DxfEllipse *ellipse, char *color_name)
 Set the color_name for a DXF ELLIPSE entity.
long dxf_ellipse_get_transparency (DxfEllipse *ellipse)
 Get the transparency from a DXF ELLIPSE entity.
DxfEllipsedxf_ellipse_set_transparency (DxfEllipse *ellipse, long transparency)
 Set the transparency for a DXF ELLIPSE entity.
DxfPointdxf_ellipse_get_p0 (DxfEllipse *ellipse)
 Get the center point p0 of a DXF ELLIPSE entity.
DxfEllipsedxf_ellipse_set_p0 (DxfEllipse *ellipse, DxfPoint *p0)
 Set the center point p0 of a DXF ELLIPSE entity.
double dxf_ellipse_get_x0 (DxfEllipse *ellipse)
 Get the X-value of the center point x0 of a DXF ELLIPSE entity.
DxfEllipsedxf_ellipse_set_x0 (DxfEllipse *ellipse, double x0)
 Set the X-value of the center point x0 of a DXF ELLIPSE entity.
double dxf_ellipse_get_y0 (DxfEllipse *ellipse)
 Get the Y-value of the center point y0 of a DXF ELLIPSE entity.
DxfEllipsedxf_ellipse_set_y0 (DxfEllipse *ellipse, double y0)
 Set the Y-value of the center point y0 of a DXF ELLIPSE entity.
double dxf_ellipse_get_z0 (DxfEllipse *ellipse)
 Get the Z-value of the center point z0 of a DXF ELLIPSE entity.
DxfEllipsedxf_ellipse_set_z0 (DxfEllipse *ellipse, double z0)
 Set the Z-value of the center point z0 of a DXF ELLIPSE entity.
DxfPointdxf_ellipse_get_p1 (DxfEllipse *ellipse)
 Get the end point of the major axis p1 (relative to the center) of a DXF ELLIPSE entity.
DxfEllipsedxf_ellipse_set_p1 (DxfEllipse *ellipse, DxfPoint *p1)
 Set the endpoint of the major axis p1 (relative to the center) of a DXF ELLIPSE entity.
double dxf_ellipse_get_x1 (DxfEllipse *ellipse)
 Get the X-value x1 of the endpoint of the major axis (relative to the center) of a DXF ELLIPSE entity.
DxfEllipsedxf_ellipse_set_x1 (DxfEllipse *ellipse, double x1)
 Set the X-value x1 of the endpoint of the major axis (relative to the center) of a DXF ELLIPSE entity.
double dxf_ellipse_get_y1 (DxfEllipse *ellipse)
 Get the Y-value y1 of the endpoint of the major axis (relative to the center) of a DXF ELLIPSE entity.
DxfEllipsedxf_ellipse_set_y1 (DxfEllipse *ellipse, double y1)
 Set the Y-value y1 of the endpoint of the major axis (relative to the center) of a DXF ELLIPSE entity.
double dxf_ellipse_get_z1 (DxfEllipse *ellipse)
 Get the Z-value z1 of the endpoint of the major axis (relative to the center) of a DXF ELLIPSE entity.
DxfEllipsedxf_ellipse_set_z1 (DxfEllipse *ellipse, double z1)
 Set the Z-value z1 of the endpoint of the major axis (relative to the center) of a DXF ELLIPSE entity.
double dxf_ellipse_get_ratio (DxfEllipse *ellipse)
 Get the ratio of minor axis to major axis from a DXF ELLIPSE entity.
DxfEllipsedxf_ellipse_set_ratio (DxfEllipse *ellipse, double ratio)
 Set the ratio of a DXF ELLIPSE entity.
double dxf_ellipse_get_start_angle (DxfEllipse *ellipse)
 Get the start angle from a DXF ELLIPSE entity.
DxfEllipsedxf_ellipse_set_start_angle (DxfEllipse *ellipse, double start_angle)
 Set the start angle for a DXF ELLIPSE entity.
double dxf_ellipse_get_end_angle (DxfEllipse *ellipse)
 Get the end angle from a DXF ELLIPSE entity.
DxfEllipsedxf_ellipse_set_end_angle (DxfEllipse *ellipse, double end_angle)
 Set the end angle for a DXF ELLIPSE entity.
double dxf_ellipse_get_extr_x0 (DxfEllipse *ellipse)
 Get the X-value of the extrusion vector of a DXF ELLIPSE entity.
DxfEllipsedxf_ellipse_set_extr_x0 (DxfEllipse *ellipse, double extr_x0)
 Set the X-value of the extrusion vector of a DXF ELLIPSE entity.
double dxf_ellipse_get_extr_y0 (DxfEllipse *ellipse)
 Get the Y-value of the extrusion vector of a DXF ELLIPSE entity.
DxfEllipsedxf_ellipse_set_extr_y0 (DxfEllipse *ellipse, double extr_y0)
 Set the Y-value of the extrusion vector of a DXF ELLIPSE entity.
double dxf_ellipse_get_extr_z0 (DxfEllipse *ellipse)
 Get the Z-value of the extrusion vector of a DXF ELLIPSE entity.
DxfEllipsedxf_ellipse_set_extr_z0 (DxfEllipse *ellipse, double extr_z0)
 Set the Z-value of the extrusion vector of a DXF ELLIPSE entity.
DxfPointdxf_ellipse_get_extrusion_vector_as_point (DxfEllipse *ellipse)
 Get the extrusion vector as a DXF POINT entity from a DXF ELLIPSE entity.
DxfEllipsedxf_ellipse_set_extrusion_vector_from_point (DxfEllipse *ellipse, DxfPoint *point)
 Set the extrusion vector from a DXF POINT for a DXF ELLIPSE entity.
DxfEllipsedxf_ellipse_set_extrusion_vector (DxfEllipse *ellipse, double extr_x0, double extr_y0, double extr_z0)
 Set the extrusion vector for a DXF ELLIPSE entity.
DxfEllipsedxf_ellipse_get_next (DxfEllipse *ellipse)
 Get the pointer to the next ELLIPSE entity from a DXF ELLIPSE entity.
DxfEllipsedxf_ellipse_set_next (DxfEllipse *ellipse, DxfEllipse *next)
 Set the pointer to the next ELLIPSE for a DXF ELLIPSE entity.
DxfEllipsedxf_ellipse_get_last (DxfEllipse *ellipse)
 Get the pointer to the last ELLIPSE entity from a linked list of DXF ELLIPSE entities.

Detailed Description

Header file for a DXF ellipse entity (ELLIPSE).

Author:
Copyright (C) 2008, 2010, 2011, 2012, 2014, 2015, 2016, 2017 by Bert Timmerman <bert.timmerman@xs4all.nl>.
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 ellipse.h.


Typedef Documentation

Definition of an AutoCAD ellipse entity (ELLIPSE).

This entity requires AutoCAD version R14 or higher.


Function Documentation

DxfEllipse* dxf_ellipse_new ( )

Allocate memory for a DXF ELLIPSE.

Fill the memory contents with zeros.

Returns:
NULL when no memory was allocated, a pointer to the allocated memory when succesful.

Definition at line 54 of file ellipse.c.

References _, DXF_DEBUG_BEGIN, and DXF_DEBUG_END.

Referenced by dxf_ellipse_init(), and dxf_ellipse_read().

DxfEllipse* dxf_ellipse_init ( DxfEllipse ellipse)

Allocate memory and initialize data fields in a DXF ELLIPSE entity.

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

Definition at line 92 of file ellipse.c.

References _, 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_ellipse_get_p0(), dxf_ellipse_get_p1(), dxf_ellipse_new(), dxf_ellipse_set_binary_graphics_data(), dxf_ellipse_set_color(), dxf_ellipse_set_color_name(), dxf_ellipse_set_color_value(), dxf_ellipse_set_dictionary_owner_hard(), dxf_ellipse_set_dictionary_owner_soft(), dxf_ellipse_set_elevation(), dxf_ellipse_set_end_angle(), dxf_ellipse_set_extr_x0(), dxf_ellipse_set_extr_y0(), dxf_ellipse_set_extr_z0(), dxf_ellipse_set_graphics_data_size(), dxf_ellipse_set_id_code(), dxf_ellipse_set_layer(), dxf_ellipse_set_linetype(), dxf_ellipse_set_linetype_scale(), dxf_ellipse_set_lineweight(), dxf_ellipse_set_material(), dxf_ellipse_set_next(), dxf_ellipse_set_p0(), dxf_ellipse_set_p1(), dxf_ellipse_set_paperspace(), dxf_ellipse_set_plot_style_name(), dxf_ellipse_set_ratio(), dxf_ellipse_set_shadow_mode(), dxf_ellipse_set_start_angle(), dxf_ellipse_set_thickness(), dxf_ellipse_set_transparency(), dxf_ellipse_set_visibility(), dxf_ellipse_set_x0(), dxf_ellipse_set_x1(), dxf_ellipse_set_y0(), dxf_ellipse_set_y1(), dxf_ellipse_set_z0(), dxf_ellipse_set_z1(), DXF_MODELSPACE, dxf_point_init(), and dxf_point_new().

Referenced by dxf_ellipse_read().

Here is the call graph for this function:

DxfEllipse* dxf_ellipse_read ( DxfFile fp,
DxfEllipse ellipse 
)

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

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

Returns:
a pointer to ellipse.
Parameters:
fpDXF file pointer to an input file (or device).
ellipsePointer to a DXF ELLIPSE entity.

Definition at line 172 of file ellipse.c.

References _, dxf_file_struct::acad_version_number, AutoCAD_11, AutoCAD_12, dxf_ellipse_struct::color, dxf_ellipse_struct::dictionary_owner_hard, dxf_ellipse_struct::dictionary_owner_soft, DXF_DEBUG_BEGIN, DXF_DEBUG_END, DXF_DEFAULT_LAYER, DXF_DEFAULT_LINETYPE, dxf_ellipse_init(), dxf_ellipse_new(), dxf_ellipse_struct::elevation, dxf_ellipse_struct::end_angle, dxf_ellipse_struct::extr_x0, dxf_ellipse_struct::extr_y0, dxf_ellipse_struct::extr_z0, dxf_file_struct::filename, dxf_file_struct::fp, dxf_ellipse_struct::id_code, dxf_ellipse_struct::layer, dxf_file_struct::line_number, dxf_ellipse_struct::linetype, dxf_ellipse_struct::linetype_scale, dxf_ellipse_struct::paperspace, dxf_ellipse_struct::ratio, dxf_ellipse_struct::start_angle, dxf_ellipse_struct::thickness, dxf_ellipse_struct::visibility, dxf_ellipse_struct::x0, dxf_ellipse_struct::x1, dxf_ellipse_struct::y0, dxf_ellipse_struct::y1, dxf_ellipse_struct::z0, and dxf_ellipse_struct::z1.

Here is the call graph for this function:

int dxf_ellipse_write ( DxfFile fp,
DxfEllipse ellipse 
)

Write DXF output to a file for a DXF ELLIPSE entity.

The ellipse entity (elliptic arc) requires AutoCAD version R14 or higher.

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:
fpDXF file pointer to an output file (or device).
ellipsePointer to a DXF ELLIPSE entity

Definition at line 442 of file ellipse.c.

References _, dxf_file_struct::acad_version_number, AutoCAD_11, AutoCAD_13, AutoCAD_14, dxf_ellipse_struct::color, dxf_ellipse_struct::dictionary_owner_hard, dxf_ellipse_struct::dictionary_owner_soft, DXF_COLOR_BYLAYER, DXF_DEBUG_BEGIN, DXF_DEBUG_END, DXF_DEFAULT_LAYER, DXF_DEFAULT_LINETYPE, DXF_FLATLAND, DXF_PAPERSPACE, dxf_ellipse_struct::elevation, dxf_ellipse_struct::end_angle, dxf_ellipse_struct::extr_x0, dxf_ellipse_struct::extr_y0, dxf_ellipse_struct::extr_z0, dxf_file_struct::fp, dxf_ellipse_struct::id_code, dxf_ellipse_struct::layer, dxf_ellipse_struct::linetype, dxf_ellipse_struct::linetype_scale, dxf_ellipse_struct::paperspace, dxf_ellipse_struct::ratio, dxf_ellipse_struct::start_angle, dxf_ellipse_struct::thickness, dxf_ellipse_struct::visibility, dxf_ellipse_struct::x0, dxf_ellipse_struct::x1, dxf_ellipse_struct::y0, dxf_ellipse_struct::y1, dxf_ellipse_struct::z0, and dxf_ellipse_struct::z1.

int dxf_ellipse_free ( DxfEllipse ellipse)

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

Returns:
EXIT_SUCCESS when done, or EXIT_FAILURE when an error occurred.
Parameters:
ellipsePointer to the memory occupied by the DXF ELLIPSE entity.

Definition at line 611 of file ellipse.c.

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

Referenced by dxf_ellipse_free_chain().

void dxf_ellipse_free_chain ( DxfEllipse ellipses)

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

Parameters:
ellipsespointer to the chain of DXF ELLIPSE entities.

Definition at line 654 of file ellipse.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, dxf_ellipse_free(), and dxf_ellipse_struct::next.

Here is the call graph for this function:

int dxf_ellipse_get_id_code ( DxfEllipse ellipse)

Get the id_code from a DXF ELLIPSE entity.

Returns:
id_code.
Parameters:
ellipsea pointer to a DXF ELLIPSE entity.

Definition at line 687 of file ellipse.c.

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

DxfEllipse* dxf_ellipse_set_id_code ( DxfEllipse ellipse,
int  id_code 
)

Set the ID code for a DXF ELLIPSE entity.

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

Definition at line 722 of file ellipse.c.

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

Referenced by dxf_ellipse_init().

char* dxf_ellipse_get_linetype ( DxfEllipse ellipse)

Get the linetype from a DXF ELLIPSE entity.

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

Definition at line 764 of file ellipse.c.

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

DxfEllipse* dxf_ellipse_set_linetype ( DxfEllipse ellipse,
char *  linetype 
)

Set the linetype for a DXF ELLIPSE entity.

Parameters:
ellipsea pointer to a DXF ELLIPSE entity.
linetypea string containing the linetype for the entity.

Definition at line 799 of file ellipse.c.

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

Referenced by dxf_ellipse_init().

char* dxf_ellipse_get_layer ( DxfEllipse ellipse)

Get the layer from a DXF ELLIPSE entity.

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

Definition at line 839 of file ellipse.c.

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

DxfEllipse* dxf_ellipse_set_layer ( DxfEllipse ellipse,
char *  layer 
)

Set the layer for a DXF ELLIPSE entity.

Parameters:
ellipsea pointer to a DXF ELLIPSE entity.
layera string containing the layer for the entity.

Definition at line 874 of file ellipse.c.

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

Referenced by dxf_ellipse_init().

double dxf_ellipse_get_elevation ( DxfEllipse ellipse)

Get the elevation from a DXF ELLIPSE entity.

Returns:
elevation.
Parameters:
ellipsea pointer to a DXF ELLIPSE entity.

Definition at line 914 of file ellipse.c.

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

DxfEllipse* dxf_ellipse_set_elevation ( DxfEllipse ellipse,
double  elevation 
)

Set the elevation for a DXF ELLIPSE entity.

Parameters:
ellipsea pointer to a DXF ELLIPSE entity.
elevationthe elevation to be set for the entity.

Definition at line 942 of file ellipse.c.

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

Referenced by dxf_ellipse_init().

double dxf_ellipse_get_thickness ( DxfEllipse ellipse)

Get the thickness from a DXF ELLIPSE entity.

Returns:
thickness.
Parameters:
ellipsea pointer to a DXF ELLIPSE entity.

Definition at line 975 of file ellipse.c.

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

DxfEllipse* dxf_ellipse_set_thickness ( DxfEllipse ellipse,
double  thickness 
)

Set the thickness for a DXF ELLIPSE entity.

Parameters:
ellipsea pointer to a DXF ELLIPSE entity.
thicknessthe thickness to be set for the entity.

Definition at line 1010 of file ellipse.c.

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

Referenced by dxf_ellipse_init().

double dxf_ellipse_get_linetype_scale ( DxfEllipse ellipse)

Get the linetype scale from a DXF ELLIPSE entity.

Returns:
linetype scale.
Parameters:
ellipsea pointer to a DXF ARC entity.

Definition at line 1050 of file ellipse.c.

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

DxfEllipse* dxf_ellipse_set_linetype_scale ( DxfEllipse ellipse,
double  linetype_scale 
)

Set the linetype scale for a DXF ELLIPSE entity.

Parameters:
ellipsea pointer to a DXF ELLIPSE entity.
linetype_scalethe linetype scale to be set for the entity.

Definition at line 1085 of file ellipse.c.

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

Referenced by dxf_ellipse_init().

int16_t dxf_ellipse_get_visibility ( DxfEllipse ellipse)

Get the visibility from a DXF ELLIPSE entity.

Returns:
visibility.
Parameters:
ellipsea pointer to a DXF ELLIPSE entity.

Definition at line 1125 of file ellipse.c.

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

DxfEllipse* dxf_ellipse_set_visibility ( DxfEllipse ellipse,
int16_t  visibility 
)

Set the visibility for a DXF ELLIPSE entity.

Parameters:
ellipsea pointer to a DXF ELLIPSE entity.
visibilitythe visibility to be set for the entity.

Definition at line 1167 of file ellipse.c.

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

Referenced by dxf_ellipse_init().

int dxf_ellipse_get_color ( DxfEllipse ellipse)

Get the color from a DXF ELLIPSE entity.

Returns:
color.
Parameters:
ellipsea pointer to a DXF ELLIPSE entity.

Definition at line 1214 of file ellipse.c.

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

DxfEllipse* dxf_ellipse_set_color ( DxfEllipse ellipse,
int  color 
)

Set the color for a DXF ELLIPSE entity.

Parameters:
ellipsea pointer to a DXF ELLIPSE entity.
colorthe color to be set for the entity.

Definition at line 1248 of file ellipse.c.

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

Referenced by dxf_ellipse_init().

int dxf_ellipse_get_paperspace ( DxfEllipse ellipse)

Get the paperspace flag value from a DXF ELLIPSE entity.

Returns:
paperspace flag value.
Parameters:
ellipsea pointer to a DXF ELLIPSE entity.

Definition at line 1289 of file ellipse.c.

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

DxfEllipse* dxf_ellipse_set_paperspace ( DxfEllipse ellipse,
int  paperspace 
)

Set the paperspace flag for a DXF ELLIPSE entity.

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

Definition at line 1329 of file ellipse.c.

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

Referenced by dxf_ellipse_init().

int dxf_ellipse_get_graphics_data_size ( DxfEllipse ellipse)

Get the graphics_data_size value from a DXF ELLIPSE entity.

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

Definition at line 1378 of file ellipse.c.

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

DxfEllipse* dxf_ellipse_set_graphics_data_size ( DxfEllipse ellipse,
int  graphics_data_size 
)

Set the graphics_data_size value for a DXF ELLIPSE entity.

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

Definition at line 1422 of file ellipse.c.

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

Referenced by dxf_ellipse_init().

int16_t dxf_ellipse_get_shadow_mode ( DxfEllipse ellipse)

Get the shadow_mode from a DXF ELLIPSE entity.

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

Definition at line 1470 of file ellipse.c.

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

DxfEllipse* dxf_ellipse_set_shadow_mode ( DxfEllipse ellipse,
int16_t  shadow_mode 
)

Set the shadow_mode for a DXF ELLIPSE entity.

Returns:
a pointer to ellipse when successful, or NULL when an error occurred.
Parameters:
ellipsea pointer to a DXF ELLIPSE entity.
shadow_modethe shadow mode to be set for the entity.

Definition at line 1515 of file ellipse.c.

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

Referenced by dxf_ellipse_init().

DxfBinaryGraphicsData* dxf_ellipse_get_binary_graphics_data ( DxfEllipse ellipse)

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

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

Definition at line 1565 of file ellipse.c.

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

DxfEllipse* dxf_ellipse_set_binary_graphics_data ( DxfEllipse ellipse,
DxfBinaryGraphicsData data 
)

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

Parameters:
ellipsea pointer to a DXF ELLIPSE entity.
dataa string containing the pointer to the binary_graphics_data for the entity.

Definition at line 1601 of file ellipse.c.

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

Referenced by dxf_ellipse_init().

char* dxf_ellipse_get_dictionary_owner_soft ( DxfEllipse ellipse)

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

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

Definition at line 1645 of file ellipse.c.

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

DxfEllipse* dxf_ellipse_set_dictionary_owner_soft ( DxfEllipse ellipse,
char *  dictionary_owner_soft 
)

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

Parameters:
ellipsea pointer to a DXF ELLIPSE entity.
dictionary_owner_softa string containing the pointer to the dictionary_owner_soft for the entity.

Definition at line 1681 of file ellipse.c.

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

Referenced by dxf_ellipse_init().

char* dxf_ellipse_get_material ( DxfEllipse ellipse)

Get the pointer to the material from a DXF ELLIPSE entity.

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

Definition at line 1725 of file ellipse.c.

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

DxfEllipse* dxf_ellipse_set_material ( DxfEllipse ellipse,
char *  material 
)

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

Returns:
a pointer to ellipse when successful, or NULL when an error occurred.
Parameters:
ellipsea pointer to a DXF ELLIPSE entity.
materiala string containing the pointer to the material for the entity.

Definition at line 1763 of file ellipse.c.

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

Referenced by dxf_ellipse_init().

char* dxf_ellipse_get_dictionary_owner_hard ( DxfEllipse ellipse)

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

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

Definition at line 1807 of file ellipse.c.

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

DxfEllipse* dxf_ellipse_set_dictionary_owner_hard ( DxfEllipse ellipse,
char *  dictionary_owner_hard 
)

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

Parameters:
ellipsea pointer to a DXF ELLIPSE entity.
dictionary_owner_harda string containing the pointer to the dictionary_owner_hard for the entity.

Definition at line 1843 of file ellipse.c.

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

Referenced by dxf_ellipse_init().

int16_t dxf_ellipse_get_lineweight ( DxfEllipse ellipse)

Get the lineweight from a DXF ELLIPSE entity.

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

Definition at line 1885 of file ellipse.c.

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

DxfEllipse* dxf_ellipse_set_lineweight ( DxfEllipse ellipse,
int16_t  lineweight 
)

Set the lineweight for a DXF ELLIPSE entity.

Returns:
a pointer to ellipse when successful, or NULL when an error occurred.
Parameters:
ellipsea pointer to a DXF ELLIPSE entity.
lineweightthe lineweight to be set for the entity.

Definition at line 1916 of file ellipse.c.

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

Referenced by dxf_ellipse_init().

char* dxf_ellipse_get_plot_style_name ( DxfEllipse ellipse)

Get the plot_style_name from a DXF ELLIPSE entity.

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

Definition at line 1950 of file ellipse.c.

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

DxfEllipse* dxf_ellipse_set_plot_style_name ( DxfEllipse ellipse,
char *  plot_style_name 
)

Set the plot_style_name for a DXF ELLIPSE entity.

Returns:
a pointer to ellipse when successful, or NULL when an error occurred.
Parameters:
ellipsea pointer to a DXF ELLIPSE entity.
plot_style_namea string containing the plot_style_name for the entity.

Definition at line 1988 of file ellipse.c.

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

Referenced by dxf_ellipse_init().

long dxf_ellipse_get_color_value ( DxfEllipse ellipse)

Get the color_value from a DXF ELLIPSE entity.

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

Definition at line 2030 of file ellipse.c.

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

DxfEllipse* dxf_ellipse_set_color_value ( DxfEllipse ellipse,
long  color_value 
)

Set the color_value for a DXF ELLIPSE entity.

Returns:
a pointer to ellipse when successful, or NULL when an error occurred.
Parameters:
ellipsea pointer to a DXF ELLIPSE entity.
color_valuethe color_value to be set for the entity.

Definition at line 2061 of file ellipse.c.

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

Referenced by dxf_ellipse_init().

char* dxf_ellipse_get_color_name ( DxfEllipse ellipse)

Get the color_name from a DXF ELLIPSE entity.

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

Definition at line 2095 of file ellipse.c.

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

DxfEllipse* dxf_ellipse_set_color_name ( DxfEllipse ellipse,
char *  color_name 
)

Set the color_name for a DXF ELLIPSE entity.

Returns:
a pointer to ellipse when successful, or NULL when an error occurred.
Parameters:
ellipsea pointer to a DXF ELLIPSE entity.
color_namea string containing the color_name for the entity.

Definition at line 2133 of file ellipse.c.

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

Referenced by dxf_ellipse_init().

long dxf_ellipse_get_transparency ( DxfEllipse ellipse)

Get the transparency from a DXF ELLIPSE entity.

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

Definition at line 2175 of file ellipse.c.

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

DxfEllipse* dxf_ellipse_set_transparency ( DxfEllipse ellipse,
long  transparency 
)

Set the transparency for a DXF ELLIPSE entity.

Returns:
a pointer to ellipse when successful, or NULL when an error occurred.
Parameters:
ellipsea pointer to a DXF ELLIPSE entity.
transparencythe transparency to be set for the entity.

Definition at line 2206 of file ellipse.c.

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

Referenced by dxf_ellipse_init().

DxfPoint* dxf_ellipse_get_p0 ( DxfEllipse ellipse)

Get the center point p0 of a DXF ELLIPSE entity.

Returns:
the center point p0.
Parameters:
ellipsea pointer to a DXF ELLIPSE entity.

Definition at line 2239 of file ellipse.c.

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

Referenced by dxf_ellipse_init().

DxfEllipse* dxf_ellipse_set_p0 ( DxfEllipse ellipse,
DxfPoint p0 
)

Set the center point p0 of a DXF ELLIPSE entity.

Returns:
a pointer to a DXF ELLIPSE entity.
Parameters:
ellipsea pointer to a DXF ELLIPSE entity.
p0a pointer to a DXF POINT entity.

Definition at line 2276 of file ellipse.c.

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

Referenced by dxf_ellipse_init().

double dxf_ellipse_get_x0 ( DxfEllipse ellipse)

Get the X-value of the center point x0 of a DXF ELLIPSE entity.

Returns:
the X-value of the center point x0.
Parameters:
ellipsea pointer to a DXF ELLIPSE entity.

Definition at line 2317 of file ellipse.c.

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

DxfEllipse* dxf_ellipse_set_x0 ( DxfEllipse ellipse,
double  x0 
)

Set the X-value of the center point x0 of a DXF ELLIPSE entity.

Returns:
a pointer to ellipse when successful, or NULL when an error occurred.
Parameters:
ellipsea pointer to a DXF ELLIPSE entity.
x0the X-value of the center point x0 of a DXF ELLIPSE entity.

Definition at line 2357 of file ellipse.c.

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

Referenced by dxf_ellipse_init().

double dxf_ellipse_get_y0 ( DxfEllipse ellipse)

Get the Y-value of the center point y0 of a DXF ELLIPSE entity.

Returns:
the Y-value of the center point y0.
Parameters:
ellipsea pointer to a DXF ELLIPSE entity.

Definition at line 2399 of file ellipse.c.

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

DxfEllipse* dxf_ellipse_set_y0 ( DxfEllipse ellipse,
double  y0 
)

Set the Y-value of the center point y0 of a DXF ELLIPSE entity.

Returns:
a pointer to ellipse when successful, or NULL when an error occurred.
Parameters:
ellipsea pointer to a DXF ELLIPSE entity.
y0the Y-value of the center point y0 of a DXF ELLIPSE entity.

Definition at line 2439 of file ellipse.c.

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

Referenced by dxf_ellipse_init().

double dxf_ellipse_get_z0 ( DxfEllipse ellipse)

Get the Z-value of the center point z0 of a DXF ELLIPSE entity.

Returns:
the Z-value of the center point z0.
Parameters:
ellipsea pointer to a DXF ELLIPSE entity.

Definition at line 2481 of file ellipse.c.

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

DxfEllipse* dxf_ellipse_set_z0 ( DxfEllipse ellipse,
double  z0 
)

Set the Z-value of the center point z0 of a DXF ELLIPSE entity.

Returns:
a pointer to ellipse when successful, or NULL when an error occurred.
Parameters:
ellipsea pointer to a DXF ELLIPSE entity.
z0the Z-value of the center point z0 of a DXF ELLIPSE entity.

Definition at line 2521 of file ellipse.c.

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

Referenced by dxf_ellipse_init().

DxfPoint* dxf_ellipse_get_p1 ( DxfEllipse ellipse)

Get the end point of the major axis p1 (relative to the center) of a DXF ELLIPSE entity.

Returns:
the end point p1.
Parameters:
ellipsea pointer to a DXF ELLIPSE entity.

Definition at line 2563 of file ellipse.c.

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

Referenced by dxf_ellipse_init().

DxfEllipse* dxf_ellipse_set_p1 ( DxfEllipse ellipse,
DxfPoint p1 
)

Set the endpoint of the major axis p1 (relative to the center) of a DXF ELLIPSE entity.

Returns:
a pointer to a DXF ELLIPSE entity.
Parameters:
ellipsea pointer to a DXF ELLIPSE entity.
p1a pointer to a DXF POINT entity.

Definition at line 2594 of file ellipse.c.

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

Referenced by dxf_ellipse_init().

double dxf_ellipse_get_x1 ( DxfEllipse ellipse)

Get the X-value x1 of the endpoint of the major axis (relative to the center) of a DXF ELLIPSE entity.

Returns:
the X-value of the point x1.
Parameters:
ellipsea pointer to a DXF ELLIPSE entity.

Definition at line 2635 of file ellipse.c.

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

DxfEllipse* dxf_ellipse_set_x1 ( DxfEllipse ellipse,
double  x1 
)

Set the X-value x1 of the endpoint of the major axis (relative to the center) of a DXF ELLIPSE entity.

Returns:
a pointer to ellipse when successful, or NULL when an error occurred.
Parameters:
ellipsea pointer to a DXF ELLIPSE entity.
x1the X-value x1 of a DXF ELLIPSE entity.

Definition at line 2675 of file ellipse.c.

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

Referenced by dxf_ellipse_init().

double dxf_ellipse_get_y1 ( DxfEllipse ellipse)

Get the Y-value y1 of the endpoint of the major axis (relative to the center) of a DXF ELLIPSE entity.

Returns:
the Y-value of the point y1.
Parameters:
ellipsea pointer to a DXF ELLIPSE entity.

Definition at line 2716 of file ellipse.c.

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

DxfEllipse* dxf_ellipse_set_y1 ( DxfEllipse ellipse,
double  y1 
)

Set the Y-value y1 of the endpoint of the major axis (relative to the center) of a DXF ELLIPSE entity.

Returns:
a pointer to ellipse when successful, or NULL when an error occurred.
Parameters:
ellipsea pointer to a DXF ELLIPSE entity.
y1the Y-value y1 of a DXF ELLIPSE entity.

Definition at line 2756 of file ellipse.c.

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

Referenced by dxf_ellipse_init().

double dxf_ellipse_get_z1 ( DxfEllipse ellipse)

Get the Z-value z1 of the endpoint of the major axis (relative to the center) of a DXF ELLIPSE entity.

Returns:
the Y-value of the point z1.
Parameters:
ellipsea pointer to a DXF ELLIPSE entity.

Definition at line 2797 of file ellipse.c.

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

DxfEllipse* dxf_ellipse_set_z1 ( DxfEllipse ellipse,
double  z1 
)

Set the Z-value z1 of the endpoint of the major axis (relative to the center) of a DXF ELLIPSE entity.

Returns:
a pointer to ellipse when successful, or NULL when an error occurred.
Parameters:
ellipsea pointer to a DXF ELLIPSE entity.
z1the Z-value z1 of a DXF ELLIPSE entity.

Definition at line 2837 of file ellipse.c.

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

Referenced by dxf_ellipse_init().

double dxf_ellipse_get_ratio ( DxfEllipse ellipse)

Get the ratio of minor axis to major axis from a DXF ELLIPSE entity.

Returns:
ratio.
Parameters:
ellipsea pointer to a DXF ELLIPSE entity.

Definition at line 2878 of file ellipse.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_ellipse_struct::ratio.

DxfEllipse* dxf_ellipse_set_ratio ( DxfEllipse ellipse,
double  ratio 
)

Set the ratio of a DXF ELLIPSE entity.

Returns:
a pointer to ellipse when successful, or NULL when an error occurred.
Parameters:
ellipsea pointer to a DXF ELLIPSE entity.
ratiothe ratio of a DXF ELLIPSE entity.

Definition at line 2923 of file ellipse.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_ellipse_struct::ratio.

Referenced by dxf_ellipse_init().

double dxf_ellipse_get_start_angle ( DxfEllipse ellipse)

Get the start angle from a DXF ELLIPSE entity.

Returns:
start angle.
Parameters:
ellipsea pointer to a DXF ELLIPSE entity.

Definition at line 2956 of file ellipse.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_ellipse_struct::start_angle.

DxfEllipse* dxf_ellipse_set_start_angle ( DxfEllipse ellipse,
double  start_angle 
)

Set the start angle for a DXF ELLIPSE entity.

Parameters:
ellipsea pointer to a DXF ELLIPSE entity.
start_anglethe start angle to be set for the entity.

Definition at line 2984 of file ellipse.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_ellipse_struct::start_angle.

Referenced by dxf_ellipse_init().

double dxf_ellipse_get_end_angle ( DxfEllipse ellipse)

Get the end angle from a DXF ELLIPSE entity.

Returns:
end angle.
Parameters:
ellipsea pointer to a DXF ELLIPSE entity.

Definition at line 3017 of file ellipse.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_ellipse_struct::end_angle.

DxfEllipse* dxf_ellipse_set_end_angle ( DxfEllipse ellipse,
double  end_angle 
)

Set the end angle for a DXF ELLIPSE entity.

Parameters:
ellipsea pointer to a DXF ELLIPSE entity.
end_anglethe end angle to be set for the entity.

Definition at line 3045 of file ellipse.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_ellipse_struct::end_angle.

Referenced by dxf_ellipse_init().

double dxf_ellipse_get_extr_x0 ( DxfEllipse ellipse)

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

Returns:
the X-value of the extrusion vector.
Parameters:
ellipsea pointer to a DXF ELLIPSE entity.

Definition at line 3079 of file ellipse.c.

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

DxfEllipse* dxf_ellipse_set_extr_x0 ( DxfEllipse ellipse,
double  extr_x0 
)

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

Returns:
a pointer to a DXF ELLIPSE entity when successful, NULL when an error occurred.
Parameters:
ellipsea pointer to a DXF ELLIPSE entity.
extr_x0the X-value of the extrusion vector of a DXF ELLIPSE entity.

Definition at line 3112 of file ellipse.c.

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

Referenced by dxf_ellipse_init().

double dxf_ellipse_get_extr_y0 ( DxfEllipse ellipse)

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

Returns:
the Y-value of the extrusion vector.
Parameters:
ellipsea pointer to a DXF ELLIPSE entity.

Definition at line 3147 of file ellipse.c.

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

DxfEllipse* dxf_ellipse_set_extr_y0 ( DxfEllipse ellipse,
double  extr_y0 
)

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

Returns:
a pointer to a DXF ELLIPSE entity when successful, NULL when an error occurred.
Parameters:
ellipsea pointer to a DXF ELLIPSE entity.
extr_y0the Y-value of the extrusion vector of a DXF ELLIPSE entity.

Definition at line 3180 of file ellipse.c.

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

Referenced by dxf_ellipse_init().

double dxf_ellipse_get_extr_z0 ( DxfEllipse ellipse)

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

Returns:
the Z-value of the extrusion vector.
Parameters:
ellipsea pointer to a DXF ELLIPSE entity.

Definition at line 3215 of file ellipse.c.

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

DxfEllipse* dxf_ellipse_set_extr_z0 ( DxfEllipse ellipse,
double  extr_z0 
)

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

Returns:
a pointer to a DXF ELLIPSE entity when successful, NULL when an error occurred.
Parameters:
ellipsea pointer to a DXF ELLIPSE entity.
extr_z0the Z-value of the extrusion vector of a DXF ELLIPSE entity.

Definition at line 3248 of file ellipse.c.

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

Referenced by dxf_ellipse_init().

DxfPoint* dxf_ellipse_get_extrusion_vector_as_point ( DxfEllipse ellipse)

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

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

Definition at line 3285 of file ellipse.c.

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

Here is the call graph for this function:

DxfEllipse* dxf_ellipse_set_extrusion_vector_from_point ( DxfEllipse ellipse,
DxfPoint point 
)

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

Parameters:
ellipsea pointer to a DXF ELLIPSE entity.
pointa pointer to a DXF POINT entity.

Definition at line 3327 of file ellipse.c.

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

DxfEllipse* dxf_ellipse_set_extrusion_vector ( DxfEllipse ellipse,
double  extr_x0,
double  extr_y0,
double  extr_z0 
)

Set the extrusion vector for a DXF ELLIPSE entity.

Parameters:
ellipsea pointer to a DXF ELLIPSE 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 3367 of file ellipse.c.

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

DxfEllipse* dxf_ellipse_get_next ( DxfEllipse ellipse)

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

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

Definition at line 3409 of file ellipse.c.

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

DxfEllipse* dxf_ellipse_set_next ( DxfEllipse ellipse,
DxfEllipse next 
)

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

Parameters:
ellipsea pointer to a DXF ELLIPSE entity.
nexta pointer to the next ELLIPSE for the entity.

Definition at line 3445 of file ellipse.c.

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

Referenced by dxf_ellipse_init().

DxfEllipse* dxf_ellipse_get_last ( DxfEllipse ellipse)

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

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

Definition at line 3488 of file ellipse.c.

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