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

point.h File Reference

Header file for a DXF point entity (POINT). More...

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

Go to the source code of this file.

Data Structures

struct  dxf_point_struct
 DXF definition of an AutoCAD point entity. More...

Typedefs

typedef struct dxf_point_struct DxfPoint
 DXF definition of an AutoCAD point entity.

Functions

DxfPointdxf_point_new ()
 Allocate memory for a DxfPoint.
DxfPointdxf_point_init (DxfPoint *point)
 Allocate memory and initialize data fields in a POINT entity.
DxfPointdxf_point_read (DxfFile *fp, DxfPoint *point)
 Read data from a DXF file into a POINT entity.
int dxf_point_write (DxfFile *fp, DxfPoint *point)
 Write DXF output to fp for a point entity.
int dxf_point_free (DxfPoint *point)
 Free the allocated memory for a DXF POINT and all it's data fields.
void dxf_point_free_chain (DxfPoint *points)
 Free the allocated memory for a chain of DXF POINT entities and all their data fields.
int dxf_point_get_id_code (DxfPoint *point)
 Get the id_code from this DXF POINT entity.
DxfPointdxf_point_set_id_code (DxfPoint *point, int id_code)
 Set the id_code for this DXF POINT entity.
char * dxf_point_get_linetype (DxfPoint *point)
 Get the linetype from this DXF POINT entity.
DxfPointdxf_point_set_linetype (DxfPoint *point, char *linetype)
 Set the linetype for a DXF POINT entity.
char * dxf_point_get_layer (DxfPoint *point)
 Get the layer from this DXF POINT entity.
DxfPointdxf_point_set_layer (DxfPoint *point, char *layer)
 Set the layer for a DXF POINT entity.
double dxf_point_get_elevation (DxfPoint *point)
 Get the elevation from a DXF POINT entity.
DxfPointdxf_point_set_elevation (DxfPoint *point, double elevation)
 Set the elevation for a DXF POINT entity.
double dxf_point_get_thickness (DxfPoint *point)
 Get the thickness from a DXF POINT entity.
DxfPointdxf_point_set_thickness (DxfPoint *point, double thickness)
 Set the thickness for a DXF POINT entity.
double dxf_point_get_linetype_scale (DxfPoint *point)
 Get the linetype_scale from this DXF POINT entity.
DxfPointdxf_point_set_linetype_scale (DxfPoint *point, double linetype_scale)
 Set the linetype_scale for a DXF POINT entity.
int16_t dxf_point_get_visibility (DxfPoint *point)
 Get the visibility from a DXF POINT entity.
DxfPointdxf_point_set_visibility (DxfPoint *point, int16_t visibility)
 Set the visibility for a DXF POINT entity.
int dxf_point_get_color (DxfPoint *point)
 Get the color from a DXF POINT entity.
DxfPointdxf_point_set_color (DxfPoint *point, int color)
 Set the color for a DXF POINT entity.
int dxf_point_get_paperspace (DxfPoint *point)
 Get the paperspace flag value from a DXF POINT entity.
DxfPointdxf_point_set_paperspace (DxfPoint *point, int paperspace)
 Set the paperspace flag for this DXF POINT entity.
int dxf_point_get_graphics_data_size (DxfPoint *point)
 Get the graphics_data_size value from a DXF POINT entity.
DxfPointdxf_point_set_graphics_data_size (DxfPoint *point, int graphics_data_size)
 Set the graphics_data_size value for a DXF POINT entity.
int16_t dxf_point_get_shadow_mode (DxfPoint *point)
 Get the shadow_mode from a DXF POINT entity.
DxfPointdxf_point_set_shadow_mode (DxfPoint *point, int16_t shadow_mode)
 Set the shadow_mode for a DXF POINT entity.
DxfBinaryGraphicsDatadxf_point_get_binary_graphics_data (DxfPoint *point)
 Get the pointer to the binary_graphics_data from a DXF POINT entity.
DxfPointdxf_point_set_binary_graphics_data (DxfPoint *point, DxfBinaryGraphicsData *data)
 Set the pointer to the binary_graphics_data for a DXF POINT entity.
char * dxf_point_get_dictionary_owner_soft (DxfPoint *point)
 Get the pointer to the dictionary_owner_soft from a DXF POINT entity.
DxfPointdxf_point_set_dictionary_owner_soft (DxfPoint *point, char *dictionary_owner_soft)
 Set the pointer to the dictionary_owner_soft for a DXF POINT entity.
char * dxf_point_get_material (DxfPoint *point)
 Get the pointer to the material from a DXF POINT entity.
DxfPointdxf_point_set_material (DxfPoint *point, char *material)
 Set the pointer to the material for a DXF POINT entity.
char * dxf_point_get_dictionary_owner_hard (DxfPoint *point)
 Get the pointer to the dictionary_owner_hard from a DXF POINT entity.
DxfPointdxf_point_set_dictionary_owner_hard (DxfPoint *point, char *dictionary_owner_hard)
 Set the pointer to the dictionary_owner_hard for a DXF POINT entity.
int16_t dxf_point_get_lineweight (DxfPoint *point)
 Get the lineweight from a DXF POINT entity.
DxfPointdxf_point_set_lineweight (DxfPoint *point, int16_t lineweight)
 Set the lineweight for a DXF POINT entity.
char * dxf_point_get_plot_style_name (DxfPoint *point)
 Get the plot_style_name from a DXF POINT entity.
DxfPointdxf_point_set_plot_style_name (DxfPoint *point, char *plot_style_name)
 Set the plot_style_name for a DXF POINT entity.
long dxf_point_get_color_value (DxfPoint *point)
 Get the color_value from a DXF POINT entity.
DxfPointdxf_point_set_color_value (DxfPoint *point, long color_value)
 Set the color_value for a DXF POINT entity.
char * dxf_point_get_color_name (DxfPoint *point)
 Get the color_name from a DXF POINT entity.
DxfPointdxf_point_set_color_name (DxfPoint *point, char *color_name)
 Set the color_name for a DXF POINT entity.
long dxf_point_get_transparency (DxfPoint *point)
 Get the transparency from a DXF POINT entity.
DxfPointdxf_point_set_transparency (DxfPoint *point, long transparency)
 Set the transparency for a DXF POINT entity.
double dxf_point_get_x0 (DxfPoint *point)
 Get the X coordinate value x0 from a DXF POINT entity.
DxfPointdxf_point_set_x0 (DxfPoint *point, double x0)
 Set the X coordinate value x0 for a DXF POINT entity.
double dxf_point_get_y0 (DxfPoint *point)
 Get the Y coordinate value y0 from a DXF POINT entity.
DxfPointdxf_point_set_y0 (DxfPoint *point, double y0)
 Set the Y coordinate value y0 for a DXF POINT entity.
double dxf_point_get_z0 (DxfPoint *point)
 Get the Z coordinate value z0 from a DXF POINT entity.
DxfPointdxf_point_set_z0 (DxfPoint *point, double z0)
 Set the Z coordinate value z0 for a DXF POINT entity.
double dxf_point_get_angle_to_X (DxfPoint *point)
 Get the angle_to_X from a DXF POINT entity.
DxfPointdxf_point_set_angle_to_X (DxfPoint *point, double angle_to_X)
 Set the angle_to_X for a DXF POINT entity.
DxfPointdxf_point_get_extrusion_vector_as_point (DxfPoint *point)
 Get the extrusion vector as a DXF POINT entity from a DXF POINT entity.
DxfPointdxf_point_set_extrusion_vector (DxfPoint *point, double extr_x0, double extr_y0, double extr_z0)
 Set the extrusion vector for a DXF POINT entity.
DxfPointdxf_point_get_next (DxfPoint *point)
 Get the pointer to the next POINT entity from a DXF POINT entity.
DxfPointdxf_point_set_next (DxfPoint *point, DxfPoint *next)
 Set the pointer to the next POINT for a DXF POINT entity.
DxfPointdxf_point_get_last (DxfPoint *point)
 Get the pointer to the last POINT entity from a linked list of DXF POINT entities.

Detailed Description

Header file for a DXF point entity (POINT).

Author:
Copyright (C) 2008, 2009, 2010, 2012, 2014, 2015, 2016, 2017 by Bert Timmerman <bert.timmerman@xs4all.nl>.
Copyright (C) 2010 by Luis Matos <gass@otiliamatos.ath.cx>.

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 point.h.


Typedef Documentation

typedef struct dxf_point_struct DxfPoint

DXF definition of an AutoCAD point entity.

POINT entities have an optional 50 group that determines the orientation of PDMODE images.
The group value is the negative of the Entity Coordinate Systems (ECS) angle of the UCS X axis in effect when the point was drawn.
The X axis of the UCS in effect when the point was drawn is always parallel to the XY plane for the point's ECS, and the angle between the UCS X axis and the ECS X axis is a single 2D angle.
The value in group 50 is the angle from horizontal (the effective X axis) to the ECS X axis.
Entity Coordinate Systems (ECS) are described in the UCS section.

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

Function Documentation

DxfPoint* dxf_point_new ( )
DxfPoint* dxf_point_init ( DxfPoint point)

Allocate memory and initialize data fields in a POINT entity.

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

Definition at line 105 of file point.c.

References _, dxf_point_struct::angle_to_X, dxf_point_struct::color, dxf_point_struct::dictionary_owner_hard, dxf_point_struct::dictionary_owner_soft, 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_new(), dxf_point_struct::elevation, dxf_point_struct::extr_x0, dxf_point_struct::extr_y0, dxf_point_struct::extr_z0, dxf_point_struct::id_code, dxf_point_struct::layer, dxf_point_struct::linetype, dxf_point_struct::linetype_scale, dxf_point_struct::next, dxf_point_struct::paperspace, dxf_point_struct::thickness, dxf_point_struct::visibility, dxf_point_struct::x0, dxf_point_struct::y0, and dxf_point_struct::z0.

Referenced by dxf_3dface_init(), dxf_3dline_get_extrusion_vector_as_point(), dxf_3dline_get_mid_point(), dxf_3dline_init(), dxf_arc_get_extrusion_vector_as_point(), dxf_arc_init(), dxf_attdef_get_extrusion_vector_as_point(), dxf_attdef_init(), dxf_attrib_get_extrusion_vector_as_point(), dxf_attrib_init(), dxf_block_get_extrusion_vector_as_point(), dxf_block_init(), dxf_circle_get_extrusion_vector_as_point(), dxf_circle_init(), dxf_dimension_get_extrusion_vector_as_point(), dxf_ellipse_get_extrusion_vector_as_point(), dxf_ellipse_init(), dxf_hatch_boundary_path_edge_arc_get_center_point(), dxf_hatch_boundary_path_edge_ellipse_get_center_point(), dxf_hatch_boundary_path_edge_ellipse_get_end_point(), dxf_hatch_boundary_path_edge_line_get_end_point(), dxf_hatch_boundary_path_edge_line_get_start_point(), dxf_hatch_boundary_path_edge_spline_cp_get_point(), dxf_helix_init(), dxf_image_init(), dxf_image_read(), dxf_insert_init(), dxf_leader_read(), dxf_line_calculate_mid_point(), dxf_line_get_extrusion_vector_as_point(), dxf_line_init(), dxf_mline_get_extrusion_vector_as_point(), dxf_mline_init(), dxf_mline_read(), dxf_ole2frame_init(), dxf_point_get_extrusion_vector_as_point(), dxf_point_read(), dxf_polyline_init(), dxf_ray_init(), dxf_solid_get_extrusion_vector_as_point(), dxf_solid_init(), dxf_solid_read(), dxf_spatial_filter_get_extrusion_vector_as_point(), dxf_spatial_filter_init(), dxf_spatial_filter_read(), dxf_spline_init(), and dxf_spline_read().

Here is the call graph for this function:

DxfPoint* dxf_point_read ( DxfFile fp,
DxfPoint point 
)

Read data from a DXF file into a POINT entity.

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

Returns:
EXIT_SUCCESS when done, or EXIT_FAILURE when an error occurred.
Parameters:
fpDXF file pointer to an input file (or device).
pointa pointer to the DXF POINT entity.

Definition at line 168 of file point.c.

References _, dxf_file_struct::acad_version_number, dxf_point_struct::angle_to_X, AutoCAD_11, AutoCAD_13, dxf_point_struct::color, dxf_point_struct::dictionary_owner_hard, dxf_point_struct::dictionary_owner_soft, DXF_DEBUG_BEGIN, DXF_DEBUG_END, DXF_DEFAULT_LAYER, DXF_DEFAULT_LINETYPE, dxf_point_init(), dxf_point_new(), dxf_point_struct::elevation, dxf_point_struct::extr_x0, dxf_point_struct::extr_y0, dxf_point_struct::extr_z0, dxf_file_struct::filename, dxf_file_struct::fp, dxf_point_struct::id_code, dxf_point_struct::layer, dxf_file_struct::line_number, dxf_point_struct::linetype, dxf_point_struct::linetype_scale, dxf_point_struct::paperspace, dxf_point_struct::thickness, dxf_point_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_point_write ( DxfFile fp,
DxfPoint point 
)

Write DXF output to fp for a point entity.

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

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

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

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

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

Definition at line 394 of file point.c.

References _, dxf_file_struct::acad_version_number, dxf_point_struct::angle_to_X, AutoCAD_11, AutoCAD_12, AutoCAD_13, AutoCAD_14, dxf_point_struct::color, dxf_point_struct::dictionary_owner_hard, dxf_point_struct::dictionary_owner_soft, DXF_COLOR_BYLAYER, DXF_DEBUG_BEGIN, DXF_DEBUG_END, DXF_DEFAULT_LAYER, DXF_DEFAULT_LINETYPE, DXF_FLATLAND, DXF_PAPERSPACE, dxf_point_struct::elevation, dxf_point_struct::extr_x0, dxf_point_struct::extr_y0, dxf_point_struct::extr_z0, dxf_file_struct::fp, dxf_point_struct::id_code, dxf_point_struct::layer, dxf_point_struct::linetype, dxf_point_struct::linetype_scale, dxf_point_struct::paperspace, dxf_point_struct::thickness, dxf_point_struct::visibility, dxf_point_struct::x0, dxf_point_struct::y0, and dxf_point_struct::z0.

int dxf_point_free ( DxfPoint point)

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

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

Definition at line 546 of file point.c.

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

Referenced by dxf_3dface_free(), dxf_3dline_free(), dxf_arc_free(), dxf_attrib_free(), dxf_helix_free(), dxf_image_free(), dxf_line_free(), dxf_mline_free(), dxf_point_free_chain(), dxf_polyline_free(), dxf_ray_free(), dxf_shape_free(), and dxf_spline_free().

void dxf_point_free_chain ( DxfPoint points)

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

Parameters:
pointsa pointer to the chain of DXF POINT entities.

Definition at line 589 of file point.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, dxf_point_free(), and dxf_point_struct::next.

Referenced by dxf_image_free(), dxf_mline_free(), and dxf_spline_free().

Here is the call graph for this function:

int dxf_point_get_id_code ( DxfPoint point)

Get the id_code from this DXF POINT entity.

Returns:
id_code.
Parameters:
pointa pointer to a DXF POINT entity.

Definition at line 622 of file point.c.

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

DxfPoint* dxf_point_set_id_code ( DxfPoint point,
int  id_code 
)

Set the id_code for this DXF POINT entity.

Returns:
a pointer to point when successful, or NULL when an error occurred.
Parameters:
pointa pointer to a DXF POINT entity.
id_codeIdentification number for the entity.
This is to be an unique (sequential) number in the DXF file.

Definition at line 663 of file point.c.

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

char* dxf_point_get_linetype ( DxfPoint point)

Get the linetype from this DXF POINT entity.

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

Definition at line 705 of file point.c.

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

DxfPoint* dxf_point_set_linetype ( DxfPoint point,
char *  linetype 
)

Set the linetype for a DXF POINT entity.

Returns:
a pointer to point when successful, or NULL when an error occurred.
Parameters:
pointa pointer to a DXF POINT entity.
linetypea string containing the linetype for the entity.

Definition at line 746 of file point.c.

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

char* dxf_point_get_layer ( DxfPoint point)

Get the layer from this DXF POINT entity.

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

Definition at line 786 of file point.c.

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

DxfPoint* dxf_point_set_layer ( DxfPoint point,
char *  layer 
)

Set the layer for a DXF POINT entity.

Returns:
a pointer to point when successful, or NULL when an error occurred.
Parameters:
pointa pointer to a DXF POINT entity.
layera string containing the layer for the entity.

Definition at line 827 of file point.c.

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

double dxf_point_get_elevation ( DxfPoint point)

Get the elevation from a DXF POINT entity.

Returns:
elevation.
Parameters:
pointa pointer to a DXF POINT entity.

Definition at line 867 of file point.c.

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

DxfPoint* dxf_point_set_elevation ( DxfPoint point,
double  elevation 
)

Set the elevation for a DXF POINT entity.

Returns:
a pointer to point when successful, or NULL when an error occurred.
Parameters:
pointa pointer to a DXF POINT entity.
elevationthe elevation to be set for the entity.

Definition at line 901 of file point.c.

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

double dxf_point_get_thickness ( DxfPoint point)

Get the thickness from a DXF POINT entity.

Returns:
thickness.
Parameters:
pointa pointer to a DXF POINT entity.

Definition at line 934 of file point.c.

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

DxfPoint* dxf_point_set_thickness ( DxfPoint point,
double  thickness 
)

Set the thickness for a DXF POINT entity.

Returns:
a pointer to point when successful, or NULL when an error occurred.
Parameters:
pointa pointer to a DXF POINT entity.
thicknessthe thickness to be set for the entity.

Definition at line 975 of file point.c.

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

double dxf_point_get_linetype_scale ( DxfPoint point)

Get the linetype_scale from this DXF POINT entity.

Returns:
linetype_scale.
Parameters:
pointa pointer to a DXF POINT entity.

Definition at line 1015 of file point.c.

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

DxfPoint* dxf_point_set_linetype_scale ( DxfPoint point,
double  linetype_scale 
)

Set the linetype_scale for a DXF POINT entity.

Returns:
a pointer to point when successful, or NULL when an error occurred.
Parameters:
pointa pointer to a DXF POINT entity.
linetype_scalethe linetype_scale to be set for the entity.

Definition at line 1056 of file point.c.

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

int16_t dxf_point_get_visibility ( DxfPoint point)

Get the visibility from a DXF POINT entity.

Returns:
visibility.
Parameters:
pointa pointer to a DXF POINT entity.

Definition at line 1096 of file point.c.

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

DxfPoint* dxf_point_set_visibility ( DxfPoint point,
int16_t  visibility 
)

Set the visibility for a DXF POINT entity.

Returns:
a pointer to point when successful, or NULL when an error occurred.
Parameters:
pointa pointer to a DXF POINT entity.
visibilitythe visibility to be set for the entity.

Definition at line 1144 of file point.c.

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

int dxf_point_get_color ( DxfPoint point)

Get the color from a DXF POINT entity.

Returns:
color.
Parameters:
pointa pointer to a DXF POINT entity.

Definition at line 1191 of file point.c.

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

DxfPoint* dxf_point_set_color ( DxfPoint point,
int  color 
)

Set the color for a DXF POINT entity.

Returns:
a pointer to point when successful, or NULL when an error occurred.
Parameters:
pointa pointer to a DXF POINT entity.
colorthe color to be set for the entity.

Definition at line 1231 of file point.c.

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

int dxf_point_get_paperspace ( DxfPoint point)

Get the paperspace flag value from a DXF POINT entity.

Returns:
paperspace flag value.
Parameters:
pointa pointer to a DXF POINT entity.

Definition at line 1272 of file point.c.

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

DxfPoint* dxf_point_set_paperspace ( DxfPoint point,
int  paperspace 
)

Set the paperspace flag for this DXF POINT entity.

Returns:
a pointer to point when successful, or NULL when an error occurred.
Parameters:
pointa pointer to a DXF POINT entity.
paperspacethe paperspace flag value to be set for the entity.

Definition at line 1318 of file point.c.

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

int dxf_point_get_graphics_data_size ( DxfPoint point)

Get the graphics_data_size value from a DXF POINT entity.

Returns:
graphics_data_size flag value when successful, or EXIT_FAILURE when an error occurred.
Parameters:
pointa pointer to a DXF POINT entity.

Definition at line 1366 of file point.c.

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

DxfPoint* dxf_point_set_graphics_data_size ( DxfPoint point,
int  graphics_data_size 
)

Set the graphics_data_size value for a DXF POINT entity.

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

Definition at line 1412 of file point.c.

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

int16_t dxf_point_get_shadow_mode ( DxfPoint point)

Get the shadow_mode from a DXF POINT entity.

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

Definition at line 1461 of file point.c.

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

DxfPoint* dxf_point_set_shadow_mode ( DxfPoint point,
int16_t  shadow_mode 
)

Set the shadow_mode for a DXF POINT entity.

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

Definition at line 1509 of file point.c.

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

DxfBinaryGraphicsData* dxf_point_get_binary_graphics_data ( DxfPoint point)

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

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

Definition at line 1560 of file point.c.

References _, dxf_point_struct::binary_graphics_data, DEBUG, DXF_DEBUG_BEGIN, and DXF_DEBUG_END.

DxfPoint* dxf_point_set_binary_graphics_data ( DxfPoint point,
DxfBinaryGraphicsData data 
)

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

Returns:
a pointer to point when successful, or NULL when an error occurred.
Parameters:
pointa pointer to a DXF POINT entity.
dataa string containing the pointer to the binary_graphics_data for the entity.

Definition at line 1602 of file point.c.

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

char* dxf_point_get_dictionary_owner_soft ( DxfPoint point)

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

Returns:
pointer to the dictionary_owner_soft.
Warning:
No checks are performed on the returned pointer.
Parameters:
pointa pointer to a DXF POINT entity.

Definition at line 1646 of file point.c.

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

DxfPoint* dxf_point_set_dictionary_owner_soft ( DxfPoint point,
char *  dictionary_owner_soft 
)

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

Returns:
a pointer to point when successful, or NULL when an error occurred.
Parameters:
pointa pointer to a DXF POINT entity.
dictionary_owner_softa string containing the pointer to the dictionary_owner_soft for the entity.

Definition at line 1688 of file point.c.

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

char* dxf_point_get_material ( DxfPoint point)

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

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

Definition at line 1732 of file point.c.

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

DxfPoint* dxf_point_set_material ( DxfPoint point,
char *  material 
)

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

Returns:
a pointer to point when successful, or NULL when an error occurred.
Parameters:
pointa pointer to a DXF POINT entity.
materiala string containing the pointer to the material for the entity.

Definition at line 1773 of file point.c.

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

char* dxf_point_get_dictionary_owner_hard ( DxfPoint point)

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

Returns:
pointer to the dictionary_owner_hard.
Warning:
No checks are performed on the returned pointer.
Parameters:
pointa pointer to a DXF POINT entity.

Definition at line 1817 of file point.c.

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

DxfPoint* dxf_point_set_dictionary_owner_hard ( DxfPoint point,
char *  dictionary_owner_hard 
)

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

Returns:
a pointer to point when successful, or NULL when an error occurred.
Parameters:
pointa pointer to a DXF POINT entity.
dictionary_owner_harda string containing the pointer to the dictionary_owner_hard for the entity.

Definition at line 1859 of file point.c.

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

int16_t dxf_point_get_lineweight ( DxfPoint point)

Get the lineweight from a DXF POINT entity.

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

Definition at line 1901 of file point.c.

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

DxfPoint* dxf_point_set_lineweight ( DxfPoint point,
int16_t  lineweight 
)

Set the lineweight for a DXF POINT entity.

Returns:
a pointer to point successful, or NULL when an error occurred.
Parameters:
pointa pointer to a DXF POINT entity.
lineweightthe lineweight to be set for the entity.

Definition at line 1935 of file point.c.

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

char* dxf_point_get_plot_style_name ( DxfPoint point)

Get the plot_style_name from a DXF POINT entity.

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

Definition at line 1969 of file point.c.

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

DxfPoint* dxf_point_set_plot_style_name ( DxfPoint point,
char *  plot_style_name 
)

Set the plot_style_name for a DXF POINT entity.

Returns:
a pointer to point when successful, or NULL when an error occurred.
Parameters:
pointa pointer to a DXF POINT entity.
plot_style_namea string containing the plot_style_name for the entity.

Definition at line 2010 of file point.c.

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

long dxf_point_get_color_value ( DxfPoint point)

Get the color_value from a DXF POINT entity.

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

Definition at line 2052 of file point.c.

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

DxfPoint* dxf_point_set_color_value ( DxfPoint point,
long  color_value 
)

Set the color_value for a DXF POINT entity.

Returns:
a pointer to point when successful, or NULL when an error occurred.
Parameters:
pointa pointer to a DXF POINT entity.
color_valuethe color_value to be set for the entity.

Definition at line 2086 of file point.c.

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

char* dxf_point_get_color_name ( DxfPoint point)

Get the color_name from a DXF POINT entity.

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

Definition at line 2120 of file point.c.

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

DxfPoint* dxf_point_set_color_name ( DxfPoint point,
char *  color_name 
)

Set the color_name for a DXF POINT entity.

Returns:
a pointer to point when successful, or NULL when an error occurred.
Parameters:
pointa pointer to a DXF POINT entity.
color_namea string containing the color_name for the entity.

Definition at line 2161 of file point.c.

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

long dxf_point_get_transparency ( DxfPoint point)

Get the transparency from a DXF POINT entity.

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

Definition at line 2203 of file point.c.

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

DxfPoint* dxf_point_set_transparency ( DxfPoint point,
long  transparency 
)

Set the transparency for a DXF POINT entity.

Returns:
a pointer to point when successful, or NULL when an error occurred.
Parameters:
pointa pointer to a DXF POINT entity.
transparencythe transparency to be set for the entity.

Definition at line 2237 of file point.c.

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

double dxf_point_get_x0 ( DxfPoint point)

Get the X coordinate value x0 from a DXF POINT entity.

Returns:
x0.
Parameters:
pointa pointer to a DXF POINT entity.

Definition at line 2270 of file point.c.

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

DxfPoint* dxf_point_set_x0 ( DxfPoint point,
double  x0 
)

Set the X coordinate value x0 for a DXF POINT entity.

Returns:
a pointer to point when successful, or NULL when an error occurred.
Parameters:
pointa pointer to a DXF POINT entity.
x0the X coordinate value x0 to be set for the entity.

Definition at line 2304 of file point.c.

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

double dxf_point_get_y0 ( DxfPoint point)

Get the Y coordinate value y0 from a DXF POINT entity.

Returns:
y0.
Parameters:
pointa pointer to a DXF POINT entity.

Definition at line 2338 of file point.c.

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

DxfPoint* dxf_point_set_y0 ( DxfPoint point,
double  y0 
)

Set the Y coordinate value y0 for a DXF POINT entity.

Returns:
a pointer to point when successful, or NULL when an error occurred.
Parameters:
pointa pointer to a DXF POINT entity.
y0the Y coordinate value y0 to be set for the entity.

Definition at line 2372 of file point.c.

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

double dxf_point_get_z0 ( DxfPoint point)

Get the Z coordinate value z0 from a DXF POINT entity.

Returns:
z0.
Parameters:
pointa pointer to a DXF POINT entity.

Definition at line 2406 of file point.c.

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

DxfPoint* dxf_point_set_z0 ( DxfPoint point,
double  z0 
)

Set the Z coordinate value z0 for a DXF POINT entity.

Returns:
a pointer to point when successful, or NULL when an error occurred.
Parameters:
pointa pointer to a DXF POINT entity.
z0the Z coordinate value z0 to be set for the entity.

Definition at line 2440 of file point.c.

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

double dxf_point_get_angle_to_X ( DxfPoint point)

Get the angle_to_X from a DXF POINT entity.

Returns:
angle_to_X.
Parameters:
pointa pointer to a DXF POINT entity.

Definition at line 2474 of file point.c.

References _, dxf_point_struct::angle_to_X, DXF_DEBUG_BEGIN, and DXF_DEBUG_END.

DxfPoint* dxf_point_set_angle_to_X ( DxfPoint point,
double  angle_to_X 
)

Set the angle_to_X for a DXF POINT entity.

Returns:
a pointer to point when successful, or NULL when an error occurred.
Parameters:
pointa pointer to a DXF POINT entity.
angle_to_Xthe angle_to_X to be set for the entity.

Definition at line 2508 of file point.c.

References _, dxf_point_struct::angle_to_X, DXF_DEBUG_BEGIN, and DXF_DEBUG_END.

DxfPoint* dxf_point_get_extrusion_vector_as_point ( DxfPoint point)

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

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

Definition at line 2544 of file point.c.

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

Here is the call graph for this function:

DxfPoint* dxf_point_set_extrusion_vector ( DxfPoint point,
double  extr_x0,
double  extr_y0,
double  extr_z0 
)

Set the extrusion vector for a DXF POINT entity.

Returns:
a pointer to point when successful, or NULL when an error occurred.
Parameters:
pointa pointer to a DXF POINT 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 2588 of file point.c.

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

DxfPoint* dxf_point_get_next ( DxfPoint point)

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

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

Definition at line 2630 of file point.c.

References _, DEBUG, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_point_struct::next.

Referenced by dxf_spline_write().

DxfPoint* dxf_point_set_next ( DxfPoint point,
DxfPoint next 
)

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

Returns:
a pointer to point when successful, or NULL when an error occurred.
Parameters:
pointa pointer to a DXF POINT entity.
nexta pointer to the next POINT for the entity.

Definition at line 2672 of file point.c.

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

DxfPoint* dxf_point_get_last ( DxfPoint point)

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

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

Definition at line 2715 of file point.c.

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