libDXF 0.0.1
A library with DXF related functions written in C.
|
Header file for a DXF point entity (POINT
).
More...
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 | |
DxfPoint * | dxf_point_new () |
Allocate memory for a DxfPoint . | |
DxfPoint * | dxf_point_init (DxfPoint *point) |
Allocate memory and initialize data fields in a POINT entity. | |
DxfPoint * | dxf_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. | |
DxfPoint * | dxf_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. | |
DxfPoint * | dxf_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. | |
DxfPoint * | dxf_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. | |
DxfPoint * | dxf_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. | |
DxfPoint * | dxf_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. | |
DxfPoint * | dxf_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. | |
DxfPoint * | dxf_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. | |
DxfPoint * | dxf_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. | |
DxfPoint * | dxf_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. | |
DxfPoint * | dxf_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. | |
DxfPoint * | dxf_point_set_shadow_mode (DxfPoint *point, int16_t shadow_mode) |
Set the shadow_mode for a DXF POINT entity. | |
DxfBinaryGraphicsData * | dxf_point_get_binary_graphics_data (DxfPoint *point) |
Get the pointer to the binary_graphics_data from a DXF POINT entity. | |
DxfPoint * | dxf_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. | |
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. | |
char * | dxf_point_get_material (DxfPoint *point) |
Get the pointer to the material from a DXF POINT entity. | |
DxfPoint * | dxf_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. | |
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. | |
int16_t | dxf_point_get_lineweight (DxfPoint *point) |
Get the lineweight from a DXF POINT entity. | |
DxfPoint * | dxf_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. | |
DxfPoint * | dxf_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. | |
DxfPoint * | dxf_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. | |
DxfPoint * | dxf_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. | |
DxfPoint * | dxf_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. | |
DxfPoint * | dxf_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. | |
DxfPoint * | dxf_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. | |
DxfPoint * | dxf_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. | |
DxfPoint * | dxf_point_set_angle_to_X (DxfPoint *point, double angle_to_X) |
Set the angle_to_X for a DXF POINT entity. | |
DxfPoint * | dxf_point_get_extrusion_vector_as_point (DxfPoint *point) |
Get the extrusion vector as a DXF POINT entity from a DXF POINT entity. | |
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. | |
DxfPoint * | dxf_point_get_next (DxfPoint *point) |
Get the pointer to the next POINT entity from a DXF POINT entity. | |
DxfPoint * | dxf_point_set_next (DxfPoint *point, DxfPoint *next) |
Set the pointer to the next POINT for a DXF POINT entity. | |
DxfPoint * | dxf_point_get_last (DxfPoint *point) |
Get the pointer to the last POINT entity from a linked list of DXF POINT entities. |
Header file for a DXF point entity (POINT
).
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 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.
DxfPoint* dxf_point_new | ( | ) |
Allocate memory for a DxfPoint
.
Fill the memory contents with zeros.
Definition at line 68 of file point.c.
References _, DXF_DEBUG_BEGIN, and DXF_DEBUG_END.
Referenced by dxf_3dface_init(), dxf_3dline_init(), dxf_arc_init(), dxf_attdef_init(), dxf_attrib_init(), dxf_block_init(), dxf_circle_init(), dxf_ellipse_init(), dxf_image_init(), dxf_image_read(), dxf_insert_init(), dxf_leader_init(), dxf_line_init(), dxf_mline_init(), dxf_ole2frame_init(), dxf_point_init(), dxf_point_read(), dxf_polyline_init(), dxf_ray_init(), dxf_solid_init(), dxf_solid_read(), dxf_spatial_filter_init(), and dxf_spline_init().
Allocate memory and initialize data fields in a POINT
entity.
NULL
when no memory was allocated, a pointer to the allocated memory when succesful. point | a 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().
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
.
EXIT_SUCCESS
when done, or EXIT_FAILURE
when an error occurred. fp | DXF file pointer to an input file (or device). |
point | a 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.
Write DXF output to fp for a point entity.
EXIT_SUCCESS
when done, or EXIT_FAILURE
when an error occurred. fp | DXF file pointer to an output file (or device). |
point | a 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.
EXIT_SUCCESS
when done, or EXIT_FAILURE
when an error occurred. point | a 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.
points | a 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().
int dxf_point_get_id_code | ( | DxfPoint * | point | ) |
Get the id_code
from this DXF POINT
entity.
id_code
. point | a 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.
Set the id_code
for this DXF POINT
entity.
point
when successful, or NULL
when an error occurred. point | a pointer to a DXF POINT entity. |
id_code | Identification 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.
linetype
when sucessful, NULL
when an error occurred. point | a 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.
Set the linetype
for a DXF POINT
entity.
point
when successful, or NULL
when an error occurred. point | a pointer to a DXF POINT entity. |
linetype | a 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.
layer
when sucessful, NULL
when an error occurred. point | a 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.
Set the layer
for a DXF POINT
entity.
point
when successful, or NULL
when an error occurred. point | a pointer to a DXF POINT entity. |
layer | a 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.
elevation
. point | a 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.
Set the elevation
for a DXF POINT
entity.
point
when successful, or NULL
when an error occurred. point | a pointer to a DXF POINT entity. |
elevation | the 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.
thickness
. point | a 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.
Set the thickness
for a DXF POINT
entity.
point
when successful, or NULL
when an error occurred. point | a pointer to a DXF POINT entity. |
thickness | the 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.
linetype_scale
. point | a 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.
Set the linetype_scale
for a DXF POINT
entity.
point
when successful, or NULL
when an error occurred. point | a pointer to a DXF POINT entity. |
linetype_scale | the 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.
visibility
. point | a 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.
Set the visibility
for a DXF POINT
entity.
point
when successful, or NULL
when an error occurred. point | a pointer to a DXF POINT entity. |
visibility | the 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.
color
. point | a 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.
Set the color
for a DXF POINT
entity.
point
when successful, or NULL
when an error occurred. point | a pointer to a DXF POINT entity. |
color | the 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.
paperspace
flag value. point | a 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.
Set the paperspace
flag for this DXF POINT
entity.
point
when successful, or NULL
when an error occurred. point | a pointer to a DXF POINT entity. |
paperspace | the 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.
graphics_data_size
flag value when successful, or EXIT_FAILURE
when an error occurred. point | a 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.
Set the graphics_data_size
value for a DXF POINT
entity.
point
when successful, or NULL
when an error occurred. point | a pointer to a DXF POINT entity. |
graphics_data_size | the 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.
shadow_mode
when successful, or EXIT_FAILURE
when an error occurred. point | a 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.
Set the shadow_mode
for a DXF POINT
entity.
point
when successful, or NULL
when an error occurred. point | a pointer to a DXF POINT entity. |
shadow_mode | the 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.
binary_graphics_data
when successful, or NULL
when an error occurred.point | a 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.
point
when successful, or NULL
when an error occurred. point | a pointer to a DXF POINT entity. |
data | a 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.
dictionary_owner_soft
.point | a 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.
Set the pointer to the dictionary_owner_soft
for a DXF POINT
entity.
point
when successful, or NULL
when an error occurred. point | a pointer to a DXF POINT entity. |
dictionary_owner_soft | a 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.
material
when successful, or NULL
when an error occurred.point | a 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.
Set the pointer to the material
for a DXF POINT
entity.
point
when successful, or NULL
when an error occurred. point | a pointer to a DXF POINT entity. |
material | a 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.
dictionary_owner_hard
.point | a 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.
Set the pointer to the dictionary_owner_hard
for a DXF POINT
entity.
point
when successful, or NULL
when an error occurred. point | a pointer to a DXF POINT entity. |
dictionary_owner_hard | a 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.
lineweight
when successful, or EXIT_FAILURE
when an error occurred. point | a 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.
Set the lineweight
for a DXF POINT
entity.
point
successful, or NULL
when an error occurred. point | a pointer to a DXF POINT entity. |
lineweight | the 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.
plot_style_name
when sucessful, or NULL
when an error occurred. point | a 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.
Set the plot_style_name
for a DXF POINT
entity.
point
when successful, or NULL
when an error occurred. point | a pointer to a DXF POINT entity. |
plot_style_name | a 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.
color_value
when successful, or EXIT_FAILURE
when an error occurred. point | a 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.
Set the color_value
for a DXF POINT
entity.
point
when successful, or NULL
when an error occurred. point | a pointer to a DXF POINT entity. |
color_value | the 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.
color_name
when sucessful, or NULL
when an error occurred. point | a 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.
Set the color_name
for a DXF POINT
entity.
point
when successful, or NULL
when an error occurred. point | a pointer to a DXF POINT entity. |
color_name | a 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.
transparency
when successful, or EXIT_FAILURE
when an error occurred. point | a 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.
Set the transparency
for a DXF POINT
entity.
point
when successful, or NULL
when an error occurred. point | a pointer to a DXF POINT entity. |
transparency | the 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.
x0
. point | a 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.
Set the X coordinate value x0
for a DXF POINT
entity.
point
when successful, or NULL
when an error occurred. point | a pointer to a DXF POINT entity. |
x0 | the 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.
y0
. point | a 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.
Set the Y coordinate value y0
for a DXF POINT
entity.
point
when successful, or NULL
when an error occurred. point | a pointer to a DXF POINT entity. |
y0 | the 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.
z0
. point | a 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.
Set the Z coordinate value z0
for a DXF POINT
entity.
point
when successful, or NULL
when an error occurred. point | a pointer to a DXF POINT entity. |
z0 | the 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.
angle_to_X
. point | a 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.
Set the angle_to_X
for a DXF POINT
entity.
point
when successful, or NULL
when an error occurred. point | a pointer to a DXF POINT entity. |
angle_to_X | the 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.
Get the extrusion vector as a DXF POINT
entity from a DXF POINT
entity.
POINT
containing the extrusion coordinates.POINT
. point | a 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.
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.
point
when successful, or NULL
when an error occurred. point | a pointer to a DXF POINT 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 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.
Get the pointer to the next POINT
entity from a DXF POINT
entity.
POINT
entity.point | a 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().
Set the pointer to the next POINT
for a DXF POINT
entity.
point
when successful, or NULL
when an error occurred. point | a pointer to a DXF POINT entity. |
next | a 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.
Get the pointer to the last POINT
entity from a linked list of DXF POINT
entities.
POINT
entity.point | a 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.