libDXF 0.0.1
A library with DXF related functions written in C.
Functions

insert.c File Reference

Functions for a DXF insert entity (INSERT). More...

#include "insert.h"
Include dependency graph for insert.c:

Go to the source code of this file.

Functions

DxfInsertdxf_insert_new ()
 Allocate memory for a DxfInsert.
DxfInsertdxf_insert_init (DxfInsert *insert)
 Allocate memory and initialize data fields in a INSERT entity.
DxfInsertdxf_insert_read (DxfFile *fp, DxfInsert *insert)
 Read data from a DXF file into an INSERT entity.
int dxf_insert_write (DxfFile *fp, DxfInsert *insert)
 Write DXF output for a DXF INSERT entity.
int dxf_insert_free (DxfInsert *insert)
 Free the allocated memory for a DXF INSERT and all it's data fields.
void dxf_insert_free_chain (DxfInsert *inserts)
 Free the allocated memory for a chain of DXF INSERT entities and all their data fields.
int dxf_insert_get_id_code (DxfInsert *insert)
 Get the ID code from a DXF INSERT entity.
DxfInsertdxf_insert_set_id_code (DxfInsert *insert, int id_code)
 Set the ID code for a DXF INSERT entity.
char * dxf_insert_get_linetype (DxfInsert *insert)
 Get the linetype from a DXF INSERT entity.
DxfInsertdxf_insert_set_linetype (DxfInsert *insert, char *linetype)
 Set the linetype for a DXF INSERT entity.
char * dxf_insert_get_layer (DxfInsert *insert)
 Get the layer from a DXF INSERT entity.
DxfInsertdxf_insert_set_layer (DxfInsert *insert, char *layer)
 Set the layer for a DXF INSERT entity.
double dxf_insert_get_elevation (DxfInsert *insert)
 Get the elevation from a DXF INSERT entity.
DxfInsertdxf_insert_set_elevation (DxfInsert *insert, double elevation)
 Set the elevation for a DXF INSERT entity.
double dxf_insert_get_thickness (DxfInsert *insert)
 Get the thickness from a DXF INSERT entity.
DxfInsertdxf_insert_set_thickness (DxfInsert *insert, double thickness)
 Set the thickness for a DXF INSERT entity.
double dxf_insert_get_linetype_scale (DxfInsert *insert)
 Get the linetype scale from a DXF INSERT entity.
DxfInsertdxf_insert_set_linetype_scale (DxfInsert *insert, double linetype_scale)
 Set the linetype scale for a DXF INSERT entity.
int16_t dxf_insert_get_visibility (DxfInsert *insert)
 Get the visibility from a DXF INSERT entity.
DxfInsertdxf_insert_set_visibility (DxfInsert *insert, int16_t visibility)
 Set the visibility for a DXF INSERT entity.
int dxf_insert_get_color (DxfInsert *insert)
 Get the color from a DXF INSERT entity.
DxfInsertdxf_insert_set_color (DxfInsert *insert, int color)
 Set the color for a DXF INSERT entity.
int dxf_insert_get_paperspace (DxfInsert *insert)
 Get the paperspace flag value from a DXF INSERT entity.
DxfInsertdxf_insert_set_paperspace (DxfInsert *insert, int paperspace)
 Set the paperspace flag for a DXF INSERT entity.
int dxf_insert_get_graphics_data_size (DxfInsert *insert)
 Get the graphics_data_size value from a DXF INSERT entity.
DxfInsertdxf_insert_set_graphics_data_size (DxfInsert *insert, int graphics_data_size)
 Set the graphics_data_size value for a DXF INSERT entity.
int16_t dxf_insert_get_shadow_mode (DxfInsert *insert)
 Get the shadow_mode from a DXF INSERT entity.
DxfInsertdxf_insert_set_shadow_mode (DxfInsert *insert, int16_t shadow_mode)
 Set the shadow_mode for a DXF INSERT entity.
DxfBinaryGraphicsDatadxf_insert_get_binary_graphics_data (DxfInsert *insert)
 Get the pointer to the binary_graphics_data from a DXF INSERT entity.
DxfInsertdxf_insert_set_binary_graphics_data (DxfInsert *insert, DxfBinaryGraphicsData *data)
 Set the pointer to the binary_graphics_data for a DXF INSERT entity.
char * dxf_insert_get_dictionary_owner_soft (DxfInsert *insert)
 Get the soft pointer to the dictionary owner from a DXF INSERT entity.
DxfInsertdxf_insert_set_dictionary_owner_soft (DxfInsert *insert, char *dictionary_owner_soft)
 Set the pointer to the dictionary_owner_soft for a DXF INSERT entity.
char * dxf_insert_get_material (DxfInsert *insert)
 Get the pointer to the material from a DXF INSERT entity.
DxfInsertdxf_insert_set_material (DxfInsert *insert, char *material)
 Set the pointer to the material for a DXF INSERT entity.
char * dxf_insert_get_dictionary_owner_hard (DxfInsert *insert)
 Get the hard pointer to the dictionary owner from a DXF INSERT entity.
DxfInsertdxf_insert_set_dictionary_owner_hard (DxfInsert *insert, char *dictionary_owner_hard)
 Set the pointer to the dictionary_owner_hard for a DXF INSERT entity.
int16_t dxf_insert_get_lineweight (DxfInsert *insert)
 Get the lineweight from a DXF INSERT entity.
DxfInsertdxf_insert_set_lineweight (DxfInsert *insert, int16_t lineweight)
 Set the lineweight for a DXF INSERT entity.
char * dxf_insert_get_plot_style_name (DxfInsert *insert)
 Get the plot_style_name from a DXF INSERT entity.
DxfInsertdxf_insert_set_plot_style_name (DxfInsert *insert, char *plot_style_name)
 Set the plot_style_name for a DXF INSERT entity.
long dxf_insert_get_color_value (DxfInsert *insert)
 Get the color_value from a DXF INSERT entity.
DxfInsertdxf_insert_set_color_value (DxfInsert *insert, long color_value)
 Set the color_value for a DXF INSERT entity.
char * dxf_insert_get_color_name (DxfInsert *insert)
 Get the color_name from a DXF INSERT entity.
DxfInsertdxf_insert_set_color_name (DxfInsert *insert, char *color_name)
 Set the color_name for a DXF INSERT entity.
long dxf_insert_get_transparency (DxfInsert *insert)
 Get the transparency from a DXF INSERT entity.
DxfInsertdxf_insert_set_transparency (DxfInsert *insert, long transparency)
 Set the transparency for a DXF INSERT entity.
char * dxf_insert_get_block_name (DxfInsert *insert)
 Get the block_name from a DXF INSERT entity.
DxfInsertdxf_insert_set_block_name (DxfInsert *insert, char *block_name)
 Set the block_name for a DXF INSERT entity.
DxfPointdxf_insert_get_p0 (DxfInsert *insert)
 Get the base point p0 of a DXF INSERT entity.
DxfInsertdxf_insert_set_p0 (DxfInsert *insert, DxfPoint *p0)
 Set the base point p0 of a DXF INSERT entity.
double dxf_insert_get_x0 (DxfInsert *insert)
 Get the X-value of the base point x0 of a DXF INSERT entity.
DxfInsertdxf_insert_set_x0 (DxfInsert *insert, double x0)
 Set the X-value of the base point x0 of a DXF INSERT entity.
double dxf_insert_get_y0 (DxfInsert *insert)
 Get the Y-value of the base point y0 of a DXF INSERT entity.
DxfInsertdxf_insert_set_y0 (DxfInsert *insert, double y0)
 Set the Y-value of the base point y0 of a DXF INSERT entity.
double dxf_insert_get_z0 (DxfInsert *insert)
 Get the Z-value of the base point z0 of a DXF INSERT entity.
DxfInsertdxf_insert_set_z0 (DxfInsert *insert, double z0)
 Set the Z-value of the base point z0 of a DXF INSERT entity.
double dxf_insert_get_rel_x_scale (DxfInsert *insert)
 Get the releative X scale factor rel_x_scale of a DXF INSERT entity.
DxfInsertdxf_insert_set_rel_x_scale (DxfInsert *insert, double rel_x_scale)
 Set the relative X scale factor rel_x_scale of a DXF INSERT entity.
double dxf_insert_get_rel_y_scale (DxfInsert *insert)
 Get the releative Y scale factor rel_y_scale of a DXF INSERT entity.
DxfInsertdxf_insert_set_rel_y_scale (DxfInsert *insert, double rel_y_scale)
 Set the relative Y scale factor rel_y_scale of a DXF INSERT entity.
double dxf_insert_get_rel_z_scale (DxfInsert *insert)
 Get the releative Z scale factor rel_z_scale of a DXF INSERT entity.
DxfInsertdxf_insert_set_rel_z_scale (DxfInsert *insert, double rel_z_scale)
 Set the relative Z scale factor rel_z_scale of a DXF INSERT entity.
double dxf_insert_get_column_spacing (DxfInsert *insert)
 Get the column spacing value column_spacing of a DXF INSERT entity.
DxfInsertdxf_insert_set_column_spacing (DxfInsert *insert, double column_spacing)
 Set the column spacing value column_spacing of a DXF INSERT entity.
double dxf_insert_get_row_spacing (DxfInsert *insert)
 Get the row spacing value row_spacing of a DXF INSERT entity.
DxfInsertdxf_insert_set_row_spacing (DxfInsert *insert, double row_spacing)
 Set the row spacing value row_spacing of a DXF INSERT entity.
double dxf_insert_get_rot_angle (DxfInsert *insert)
 Get the rotation angle value rot_angle of a DXF INSERT entity.
DxfInsertdxf_insert_set_rot_angle (DxfInsert *insert, double rot_angle)
 Set the rotation angle value rot_angle of a DXF INSERT entity.
int dxf_insert_get_attributes_follow (DxfInsert *insert)
 Get the attributes follow attributes_follow from a DXF INSERT entity.
DxfInsertdxf_insert_set_attributes_follow (DxfInsert *insert, int attributes_follow)
 Set the attributes follow attributes_follow for a DXF INSERT entity.
int dxf_insert_get_columns (DxfInsert *insert)
 Get the number of columns columns from a DXF INSERT entity.
DxfInsertdxf_insert_set_columns (DxfInsert *insert, int columns)
 Set the number of columns columns for a DXF INSERT entity.
int dxf_insert_get_rows (DxfInsert *insert)
 Get the number of rows rows from a DXF INSERT entity.
DxfInsertdxf_insert_set_rows (DxfInsert *insert, int rows)
 Set the number of rows rows for a DXF INSERT entity.
double dxf_insert_get_extr_x0 (DxfInsert *insert)
 Get the X-value of the extrusion vector extr_x0 of a DXF INSERT entity.
DxfInsertdxf_insert_set_extr_x0 (DxfInsert *insert, double extr_x0)
 Set the X-value of the extrusion vector extr_x0 of a DXF INSERT entity.
double dxf_insert_get_extr_y0 (DxfInsert *insert)
 Get the Y-value of the extrusion vector extr_y0 of a DXF INSERT entity.
DxfInsertdxf_insert_set_extr_y0 (DxfInsert *insert, double extr_y0)
 Set the Y-value of the extrusion vector extr_y0 of a DXF INSERT entity.
double dxf_insert_get_extr_z0 (DxfInsert *insert)
 Get the Z-value of the extrusion vector extr_z0 of a DXF INSERT entity.
DxfInsertdxf_insert_set_extr_z0 (DxfInsert *insert, double extr_z0)
 Set the Z-value of the extrusion vector extr_z0 of a DXF INSERT entity.
DxfInsertdxf_insert_set_extrusion_vector_from_point (DxfInsert *insert, DxfPoint *point)
 Set the extrusion vector from a DXF POINT for a DXF INSERT entity.
DxfInsertdxf_insert_set_extrusion_vector (DxfInsert *insert, double extr_x0, double extr_y0, double extr_z0)
 Set the extrusion vector for a DXF INSERT entity.
DxfInsertdxf_insert_get_next (DxfInsert *insert)
 Get the pointer to the next INSERT entity from a DXF INSERT entity.
DxfInsertdxf_insert_set_next (DxfInsert *insert, DxfInsert *next)
 Set the pointer to the next INSERT for a DXF INSERT entity.
DxfInsertdxf_insert_get_last (DxfInsert *insert)
 Get the pointer to the last INSERT entity from a linked list of DXF INSERT entities.

Detailed Description

Functions for a DXF insert entity (INSERT).

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

A DXF INSERT entity is an insertion for a (external) BLOCK entity.
Whilst a BLOCK only resides in the block table only once as a definition, an INSERT entity can insert blocks as singlular entities and also as [rectanglar, polar] arrays in the drawing.

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

Copyright Notices.


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

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

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

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


Definition in file insert.c.


Function Documentation

DxfInsert* dxf_insert_new ( )

Allocate memory for a DxfInsert.

Fill the memory contents with zeros.

Definition at line 56 of file insert.c.

References _, DXF_DEBUG_BEGIN, and DXF_DEBUG_END.

Referenced by dxf_insert_init(), and dxf_insert_read().

DxfInsert* dxf_insert_init ( DxfInsert insert)

Allocate memory and initialize data fields in a INSERT entity.

Returns:
NULL when no memory was allocated, a pointer to the allocated memory when succesful.
Parameters:
insertDXF insert entity.

Definition at line 93 of file insert.c.

References _, dxf_binary_graphics_data_init(), dxf_binary_graphics_data_new(), DXF_COLOR_BYLAYER, DXF_DEBUG_BEGIN, DXF_DEBUG_END, DXF_DEFAULT_LAYER, DXF_DEFAULT_LINETYPE, DXF_DEFAULT_LINETYPE_SCALE, DXF_DEFAULT_VISIBILITY, dxf_insert_get_binary_graphics_data(), dxf_insert_get_p0(), dxf_insert_new(), dxf_insert_set_attributes_follow(), dxf_insert_set_binary_graphics_data(), dxf_insert_set_block_name(), dxf_insert_set_color(), dxf_insert_set_color_name(), dxf_insert_set_color_value(), dxf_insert_set_column_spacing(), dxf_insert_set_columns(), dxf_insert_set_dictionary_owner_hard(), dxf_insert_set_dictionary_owner_soft(), dxf_insert_set_elevation(), dxf_insert_set_extr_x0(), dxf_insert_set_extr_y0(), dxf_insert_set_extr_z0(), dxf_insert_set_graphics_data_size(), dxf_insert_set_id_code(), dxf_insert_set_layer(), dxf_insert_set_linetype(), dxf_insert_set_linetype_scale(), dxf_insert_set_lineweight(), dxf_insert_set_material(), dxf_insert_set_next(), dxf_insert_set_p0(), dxf_insert_set_paperspace(), dxf_insert_set_plot_style_name(), dxf_insert_set_rel_x_scale(), dxf_insert_set_rel_y_scale(), dxf_insert_set_rel_z_scale(), dxf_insert_set_rot_angle(), dxf_insert_set_row_spacing(), dxf_insert_set_rows(), dxf_insert_set_shadow_mode(), dxf_insert_set_thickness(), dxf_insert_set_transparency(), dxf_insert_set_visibility(), dxf_insert_set_x0(), dxf_insert_set_y0(), dxf_insert_set_z0(), DXF_MODELSPACE, dxf_point_init(), and dxf_point_new().

Referenced by dxf_insert_read().

Here is the call graph for this function:

DxfInsert* dxf_insert_read ( DxfFile fp,
DxfInsert insert 
)

Read data from a DXF file into an INSERT entity.

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

Returns:
a pointer to insert.

Todo:
After a set attributes_follow flag is detected, parsing of following entities should be implemented until the end of sequence marker (SEQEND) is encountered.

Parameters:
fpDXF file pointer to an input file (or device).
insertDXF insert entity.

Definition at line 176 of file insert.c.

References _, dxf_file_struct::acad_version_number, dxf_insert_struct::attributes_follow, AutoCAD_11, AutoCAD_13, dxf_insert_struct::block_name, dxf_insert_struct::color, dxf_insert_struct::column_spacing, dxf_insert_struct::columns, dxf_insert_struct::dictionary_owner_hard, dxf_insert_struct::dictionary_owner_soft, DXF_DEBUG_BEGIN, DXF_DEBUG_END, DXF_DEFAULT_LAYER, DXF_DEFAULT_LINETYPE, dxf_insert_get_layer(), dxf_insert_get_linetype(), dxf_insert_init(), dxf_insert_new(), dxf_insert_set_layer(), dxf_insert_set_linetype(), dxf_insert_struct::elevation, dxf_insert_struct::extr_x0, dxf_insert_struct::extr_y0, dxf_insert_struct::extr_z0, dxf_file_struct::filename, dxf_file_struct::fp, dxf_insert_struct::id_code, dxf_insert_struct::layer, dxf_file_struct::line_number, dxf_insert_struct::linetype, dxf_insert_struct::linetype_scale, dxf_insert_struct::p0, dxf_insert_struct::paperspace, dxf_insert_struct::rel_x_scale, dxf_insert_struct::rel_y_scale, dxf_insert_struct::rel_z_scale, dxf_insert_struct::rot_angle, dxf_insert_struct::row_spacing, dxf_insert_struct::rows, dxf_insert_struct::thickness, dxf_insert_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_insert_write ( DxfFile fp,
DxfInsert insert 
)

Write DXF output for a DXF INSERT 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.
Todo:
After a set attributes_follow flag is detected, the writing of following entities should be implemented and an end of sequence marker (SEQEND) written.

Parameters:
fpDXF file pointer to an output file (or device).
insertDXF insert entity.

Definition at line 470 of file insert.c.

References _, dxf_file_struct::acad_version_number, AutoCAD_11, AutoCAD_12, AutoCAD_13, AutoCAD_14, DXF_COLOR_BYLAYER, DXF_DEBUG_BEGIN, DXF_DEBUG_END, DXF_DEFAULT_LAYER, DXF_DEFAULT_LINETYPE, DXF_FLATLAND, dxf_insert_get_attributes_follow(), dxf_insert_get_block_name(), dxf_insert_get_color(), dxf_insert_get_column_spacing(), dxf_insert_get_columns(), dxf_insert_get_dictionary_owner_hard(), dxf_insert_get_dictionary_owner_soft(), dxf_insert_get_elevation(), dxf_insert_get_extr_x0(), dxf_insert_get_extr_y0(), dxf_insert_get_extr_z0(), dxf_insert_get_id_code(), dxf_insert_get_layer(), dxf_insert_get_linetype(), dxf_insert_get_linetype_scale(), dxf_insert_get_paperspace(), dxf_insert_get_rel_x_scale(), dxf_insert_get_rel_y_scale(), dxf_insert_get_rel_z_scale(), dxf_insert_get_rot_angle(), dxf_insert_get_row_spacing(), dxf_insert_get_rows(), dxf_insert_get_thickness(), dxf_insert_get_visibility(), dxf_insert_get_x0(), dxf_insert_get_y0(), dxf_insert_get_z0(), dxf_insert_set_columns(), dxf_insert_set_layer(), dxf_insert_set_linetype(), dxf_insert_set_rel_x_scale(), dxf_insert_set_rel_y_scale(), dxf_insert_set_rel_z_scale(), dxf_insert_set_rows(), DXF_PAPERSPACE, and dxf_file_struct::fp.

Here is the call graph for this function:

int dxf_insert_free ( DxfInsert insert)

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

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

Definition at line 713 of file insert.c.

References _, dxf_binary_graphics_data_free_chain(), DXF_DEBUG_BEGIN, DXF_DEBUG_END, dxf_insert_get_binary_graphics_data(), dxf_insert_get_block_name(), dxf_insert_get_color_name(), dxf_insert_get_dictionary_owner_hard(), dxf_insert_get_dictionary_owner_soft(), dxf_insert_get_layer(), dxf_insert_get_linetype(), dxf_insert_get_material(), dxf_insert_get_plot_style_name(), and dxf_insert_struct::next.

Referenced by dxf_insert_free_chain().

Here is the call graph for this function:

void dxf_insert_free_chain ( DxfInsert inserts)

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

Parameters:
insertspointer to the chain of DXF INSERT entities.

Definition at line 761 of file insert.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, dxf_insert_free(), and dxf_insert_struct::next.

Here is the call graph for this function:

int dxf_insert_get_id_code ( DxfInsert insert)

Get the ID code from a DXF INSERT entity.

Returns:
ID code.
Parameters:
inserta pointer to a DXF INSERT entity.

Definition at line 794 of file insert.c.

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

Referenced by dxf_insert_write().

DxfInsert* dxf_insert_set_id_code ( DxfInsert insert,
int  id_code 
)

Set the ID code for a DXF INSERT entity.

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

Definition at line 829 of file insert.c.

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

Referenced by dxf_insert_init().

char* dxf_insert_get_linetype ( DxfInsert insert)

Get the linetype from a DXF INSERT entity.

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

Definition at line 871 of file insert.c.

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

Referenced by dxf_insert_free(), dxf_insert_read(), and dxf_insert_write().

DxfInsert* dxf_insert_set_linetype ( DxfInsert insert,
char *  linetype 
)

Set the linetype for a DXF INSERT entity.

Parameters:
inserta pointer to a DXF INSERT entity.
linetypea string containing the linetype for the entity.

Definition at line 906 of file insert.c.

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

Referenced by dxf_insert_init(), dxf_insert_read(), and dxf_insert_write().

char* dxf_insert_get_layer ( DxfInsert insert)

Get the layer from a DXF INSERT entity.

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

Definition at line 946 of file insert.c.

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

Referenced by dxf_insert_free(), dxf_insert_read(), and dxf_insert_write().

DxfInsert* dxf_insert_set_layer ( DxfInsert insert,
char *  layer 
)

Set the layer for a DXF INSERT entity.

Parameters:
inserta pointer to a DXF INSERT entity.
layera string containing the layer for the entity.

Definition at line 981 of file insert.c.

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

Referenced by dxf_insert_init(), dxf_insert_read(), and dxf_insert_write().

double dxf_insert_get_elevation ( DxfInsert insert)

Get the elevation from a DXF INSERT entity.

Returns:
elevation.
Parameters:
inserta pointer to a DXF INSERT entity.

Definition at line 1021 of file insert.c.

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

Referenced by dxf_insert_write().

DxfInsert* dxf_insert_set_elevation ( DxfInsert insert,
double  elevation 
)

Set the elevation for a DXF INSERT entity.

Parameters:
inserta pointer to a DXF INSERT entity.
elevationthe elevation to be set for the entity.

Definition at line 1049 of file insert.c.

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

Referenced by dxf_insert_init().

double dxf_insert_get_thickness ( DxfInsert insert)

Get the thickness from a DXF INSERT entity.

Returns:
thickness.
Parameters:
inserta pointer to a DXF INSERT entity.

Definition at line 1082 of file insert.c.

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

Referenced by dxf_insert_write().

DxfInsert* dxf_insert_set_thickness ( DxfInsert insert,
double  thickness 
)

Set the thickness for a DXF INSERT entity.

Parameters:
inserta pointer to a DXF INSERT entity.
thicknessthe thickness to be set for the entity.

Definition at line 1117 of file insert.c.

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

Referenced by dxf_insert_init().

double dxf_insert_get_linetype_scale ( DxfInsert insert)

Get the linetype scale from a DXF INSERT entity.

Returns:
linetype scale.
Parameters:
inserta pointer to a DXF INSERT entity.

Definition at line 1157 of file insert.c.

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

Referenced by dxf_insert_write().

DxfInsert* dxf_insert_set_linetype_scale ( DxfInsert insert,
double  linetype_scale 
)

Set the linetype scale for a DXF INSERT entity.

Parameters:
inserta pointer to a DXF INSERT entity.
linetype_scalethe linetype scale to be set for the entity.

Definition at line 1192 of file insert.c.

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

Referenced by dxf_insert_init().

int16_t dxf_insert_get_visibility ( DxfInsert insert)

Get the visibility from a DXF INSERT entity.

Returns:
visibility.
Parameters:
inserta pointer to a DXF INSERT entity.

Definition at line 1232 of file insert.c.

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

Referenced by dxf_insert_write().

DxfInsert* dxf_insert_set_visibility ( DxfInsert insert,
int16_t  visibility 
)

Set the visibility for a DXF INSERT entity.

Parameters:
inserta pointer to a DXF INSERT entity.
visibilitythe visibility to be set for the entity.

Definition at line 1274 of file insert.c.

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

Referenced by dxf_insert_init().

int dxf_insert_get_color ( DxfInsert insert)

Get the color from a DXF INSERT entity.

Returns:
color.
Parameters:
inserta pointer to a DXF INSERT entity.

Definition at line 1321 of file insert.c.

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

Referenced by dxf_insert_write().

DxfInsert* dxf_insert_set_color ( DxfInsert insert,
int  color 
)

Set the color for a DXF INSERT entity.

Parameters:
inserta pointer to a DXF INSERT entity.
colorthe color to be set for the entity.

Definition at line 1355 of file insert.c.

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

Referenced by dxf_insert_init().

int dxf_insert_get_paperspace ( DxfInsert insert)

Get the paperspace flag value from a DXF INSERT entity.

Returns:
paperspace flag value.
Parameters:
inserta pointer to a DXF INSERT entity.

Definition at line 1396 of file insert.c.

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

Referenced by dxf_insert_write().

DxfInsert* dxf_insert_set_paperspace ( DxfInsert insert,
int  paperspace 
)

Set the paperspace flag for a DXF INSERT entity.

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

Definition at line 1436 of file insert.c.

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

Referenced by dxf_insert_init().

int dxf_insert_get_graphics_data_size ( DxfInsert insert)

Get the graphics_data_size value from a DXF INSERT entity.

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

Definition at line 1485 of file insert.c.

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

DxfInsert* dxf_insert_set_graphics_data_size ( DxfInsert insert,
int  graphics_data_size 
)

Set the graphics_data_size value for a DXF INSERT entity.

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

Definition at line 1529 of file insert.c.

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

Referenced by dxf_insert_init().

int16_t dxf_insert_get_shadow_mode ( DxfInsert insert)

Get the shadow_mode from a DXF INSERT entity.

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

Definition at line 1577 of file insert.c.

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

DxfInsert* dxf_insert_set_shadow_mode ( DxfInsert insert,
int16_t  shadow_mode 
)

Set the shadow_mode for a DXF INSERT entity.

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

Definition at line 1622 of file insert.c.

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

Referenced by dxf_insert_init().

DxfBinaryGraphicsData* dxf_insert_get_binary_graphics_data ( DxfInsert insert)

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

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

Definition at line 1672 of file insert.c.

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

Referenced by dxf_insert_free(), and dxf_insert_init().

DxfInsert* dxf_insert_set_binary_graphics_data ( DxfInsert insert,
DxfBinaryGraphicsData data 
)

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

Parameters:
inserta pointer to a DXF INSERT entity.
dataa string containing the pointer to the binary_graphics_data for the entity.

Definition at line 1708 of file insert.c.

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

Referenced by dxf_insert_init().

char* dxf_insert_get_dictionary_owner_soft ( DxfInsert insert)

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

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

Definition at line 1752 of file insert.c.

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

Referenced by dxf_insert_free(), and dxf_insert_write().

DxfInsert* dxf_insert_set_dictionary_owner_soft ( DxfInsert insert,
char *  dictionary_owner_soft 
)

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

Parameters:
inserta pointer to a DXF INSERT entity.
dictionary_owner_softa string containing the pointer to the dictionary_owner_soft for the entity.

Definition at line 1788 of file insert.c.

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

Referenced by dxf_insert_init().

char* dxf_insert_get_material ( DxfInsert insert)

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

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

Definition at line 1832 of file insert.c.

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

Referenced by dxf_insert_free().

DxfInsert* dxf_insert_set_material ( DxfInsert insert,
char *  material 
)

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

Returns:
a pointer to insert when successful, or NULL when an error occurred.
Parameters:
inserta pointer to a DXF INSERT entity.
materiala string containing the pointer to the material for the entity.

Definition at line 1870 of file insert.c.

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

Referenced by dxf_insert_init().

char* dxf_insert_get_dictionary_owner_hard ( DxfInsert insert)

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

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

Definition at line 1914 of file insert.c.

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

Referenced by dxf_insert_free(), and dxf_insert_write().

DxfInsert* dxf_insert_set_dictionary_owner_hard ( DxfInsert insert,
char *  dictionary_owner_hard 
)

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

Parameters:
inserta pointer to a DXF INSERT entity.
dictionary_owner_harda string containing the pointer to the dictionary_owner_hard for the entity.

Definition at line 1950 of file insert.c.

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

Referenced by dxf_insert_init().

int16_t dxf_insert_get_lineweight ( DxfInsert insert)

Get the lineweight from a DXF INSERT entity.

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

Definition at line 1992 of file insert.c.

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

DxfInsert* dxf_insert_set_lineweight ( DxfInsert insert,
int16_t  lineweight 
)

Set the lineweight for a DXF INSERT entity.

Returns:
a pointer to insert when successful, or NULL when an error occurred.
Parameters:
inserta pointer to a DXF INSERT entity.
lineweightthe lineweight to be set for the entity.

Definition at line 2023 of file insert.c.

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

Referenced by dxf_insert_init().

char* dxf_insert_get_plot_style_name ( DxfInsert insert)

Get the plot_style_name from a DXF INSERT entity.

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

Definition at line 2057 of file insert.c.

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

Referenced by dxf_insert_free().

DxfInsert* dxf_insert_set_plot_style_name ( DxfInsert insert,
char *  plot_style_name 
)

Set the plot_style_name for a DXF INSERT entity.

Returns:
a pointer to insert when successful, or NULL when an error occurred.
Parameters:
inserta pointer to a DXF INSERT entity.
plot_style_namea string containing the plot_style_name for the entity.

Definition at line 2095 of file insert.c.

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

Referenced by dxf_insert_init().

long dxf_insert_get_color_value ( DxfInsert insert)

Get the color_value from a DXF INSERT entity.

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

Definition at line 2137 of file insert.c.

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

DxfInsert* dxf_insert_set_color_value ( DxfInsert insert,
long  color_value 
)

Set the color_value for a DXF INSERT entity.

Returns:
a pointer to insert when successful, or NULL when an error occurred.
Parameters:
inserta pointer to a DXF INSERT entity.
color_valuethe color_value to be set for the entity.

Definition at line 2168 of file insert.c.

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

Referenced by dxf_insert_init().

char* dxf_insert_get_color_name ( DxfInsert insert)

Get the color_name from a DXF INSERT entity.

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

Definition at line 2202 of file insert.c.

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

Referenced by dxf_insert_free().

DxfInsert* dxf_insert_set_color_name ( DxfInsert insert,
char *  color_name 
)

Set the color_name for a DXF INSERT entity.

Returns:
a pointer to insert when successful, or NULL when an error occurred.
Parameters:
inserta pointer to a DXF INSERT entity.
color_namea string containing the color_name for the entity.

Definition at line 2240 of file insert.c.

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

Referenced by dxf_insert_init().

long dxf_insert_get_transparency ( DxfInsert insert)

Get the transparency from a DXF INSERT entity.

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

Definition at line 2282 of file insert.c.

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

DxfInsert* dxf_insert_set_transparency ( DxfInsert insert,
long  transparency 
)

Set the transparency for a DXF INSERT entity.

Returns:
a pointer to insert when successful, or NULL when an error occurred.
Parameters:
inserta pointer to a DXF INSERT entity.
transparencythe transparency to be set for the entity.

Definition at line 2313 of file insert.c.

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

Referenced by dxf_insert_init().

char* dxf_insert_get_block_name ( DxfInsert insert)

Get the block_name from a DXF INSERT entity.

Returns:
block_name when sucessful, or NULL when an error occurred.
Parameters:
inserta pointer to a DXF INSERT entity.

Definition at line 2347 of file insert.c.

References _, dxf_insert_struct::block_name, DXF_DEBUG_BEGIN, and DXF_DEBUG_END.

Referenced by dxf_insert_free(), and dxf_insert_write().

DxfInsert* dxf_insert_set_block_name ( DxfInsert insert,
char *  block_name 
)

Set the block_name for a DXF INSERT entity.

Returns:
a pointer to insert when successful, or NULL when an error occurred.
Parameters:
inserta pointer to a DXF INSERT entity.
block_namea string containing the block_name for the entity.

Definition at line 2385 of file insert.c.

References _, dxf_insert_struct::block_name, DXF_DEBUG_BEGIN, and DXF_DEBUG_END.

Referenced by dxf_insert_init().

DxfPoint* dxf_insert_get_p0 ( DxfInsert insert)

Get the base point p0 of a DXF INSERT entity.

Returns:
the base point p0.
Parameters:
inserta pointer to a DXF INSERT entity.

Definition at line 2426 of file insert.c.

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

Referenced by dxf_insert_init().

DxfInsert* dxf_insert_set_p0 ( DxfInsert insert,
DxfPoint p0 
)

Set the base point p0 of a DXF INSERT entity.

Returns:
a pointer to a DXF INSERT entity.
Parameters:
inserta pointer to a DXF INSERT entity.
p0a pointer to a DXF POINT entity.

Definition at line 2463 of file insert.c.

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

Referenced by dxf_insert_init().

double dxf_insert_get_x0 ( DxfInsert insert)

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

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

Definition at line 2504 of file insert.c.

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

Referenced by dxf_insert_write().

DxfInsert* dxf_insert_set_x0 ( DxfInsert insert,
double  x0 
)

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

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

Definition at line 2544 of file insert.c.

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

Referenced by dxf_insert_init().

double dxf_insert_get_y0 ( DxfInsert insert)

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

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

Definition at line 2586 of file insert.c.

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

Referenced by dxf_insert_write().

DxfInsert* dxf_insert_set_y0 ( DxfInsert insert,
double  y0 
)

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

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

Definition at line 2626 of file insert.c.

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

Referenced by dxf_insert_init().

double dxf_insert_get_z0 ( DxfInsert insert)

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

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

Definition at line 2668 of file insert.c.

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

Referenced by dxf_insert_write().

DxfInsert* dxf_insert_set_z0 ( DxfInsert insert,
double  z0 
)

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

Returns:
a pointer to insert when successful, or NULL when an error occurred.
Parameters:
inserta pointer to a DXF INSERT entity.
z0the Z-value of the base point z0 of a DXF INSERT entity.

Definition at line 2708 of file insert.c.

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

Referenced by dxf_insert_init().

double dxf_insert_get_rel_x_scale ( DxfInsert insert)

Get the releative X scale factor rel_x_scale of a DXF INSERT entity.

Returns:
the relative X scale factor rel_x_scale.
Parameters:
inserta pointer to a DXF INSERT entity.

Definition at line 2750 of file insert.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_insert_struct::rel_x_scale.

Referenced by dxf_insert_write().

DxfInsert* dxf_insert_set_rel_x_scale ( DxfInsert insert,
double  rel_x_scale 
)

Set the relative X scale factor rel_x_scale of a DXF INSERT entity.

Returns:
a pointer to insert when successful, or NULL when an error occurred.
Parameters:
inserta pointer to a DXF INSERT entity.
rel_x_scalethe relative X scale factor rel_x_scale of a DXF INSERT entity.

Definition at line 2789 of file insert.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_insert_struct::rel_x_scale.

Referenced by dxf_insert_init(), and dxf_insert_write().

double dxf_insert_get_rel_y_scale ( DxfInsert insert)

Get the releative Y scale factor rel_y_scale of a DXF INSERT entity.

Returns:
the relative Y scale factor rel_y_scale.
Parameters:
inserta pointer to a DXF INSERT entity.

Definition at line 2830 of file insert.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_insert_struct::rel_y_scale.

Referenced by dxf_insert_write().

DxfInsert* dxf_insert_set_rel_y_scale ( DxfInsert insert,
double  rel_y_scale 
)

Set the relative Y scale factor rel_y_scale of a DXF INSERT entity.

Returns:
a pointer to insert when successful, or NULL when an error occurred.
Parameters:
inserta pointer to a DXF INSERT entity.
rel_y_scalethe relative Y scale factor rel_y_scale of a DXF INSERT entity.

Definition at line 2869 of file insert.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_insert_struct::rel_y_scale.

Referenced by dxf_insert_init(), and dxf_insert_write().

double dxf_insert_get_rel_z_scale ( DxfInsert insert)

Get the releative Z scale factor rel_z_scale of a DXF INSERT entity.

Returns:
the relative Z scale factor rel_z_scale.
Parameters:
inserta pointer to a DXF INSERT entity.

Definition at line 2910 of file insert.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_insert_struct::rel_z_scale.

Referenced by dxf_insert_write().

DxfInsert* dxf_insert_set_rel_z_scale ( DxfInsert insert,
double  rel_z_scale 
)

Set the relative Z scale factor rel_z_scale of a DXF INSERT entity.

Returns:
a pointer to insert when successful, or NULL when an error occurred.
Parameters:
inserta pointer to a DXF INSERT entity.
rel_z_scalethe relative Z scale factor rel_z_scale of a DXF INSERT entity.

Definition at line 2949 of file insert.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_insert_struct::rel_z_scale.

Referenced by dxf_insert_init(), and dxf_insert_write().

double dxf_insert_get_column_spacing ( DxfInsert insert)

Get the column spacing value column_spacing of a DXF INSERT entity.

Returns:
the column spacing value column_spacing.
Parameters:
inserta pointer to a DXF INSERT entity.

Definition at line 2990 of file insert.c.

References _, dxf_insert_struct::column_spacing, DXF_DEBUG_BEGIN, and DXF_DEBUG_END.

Referenced by dxf_insert_write().

DxfInsert* dxf_insert_set_column_spacing ( DxfInsert insert,
double  column_spacing 
)

Set the column spacing value column_spacing of a DXF INSERT entity.

Returns:
a pointer to insert when successful, or NULL when an error occurred.
Parameters:
inserta pointer to a DXF INSERT entity.
column_spacingthe column spacing value column_spacing of a DXF INSERT entity.

Definition at line 3029 of file insert.c.

References _, dxf_insert_struct::column_spacing, DXF_DEBUG_BEGIN, and DXF_DEBUG_END.

Referenced by dxf_insert_init().

double dxf_insert_get_row_spacing ( DxfInsert insert)

Get the row spacing value row_spacing of a DXF INSERT entity.

Returns:
the row spacing value row_spacing.
Parameters:
inserta pointer to a DXF INSERT entity.

Definition at line 3070 of file insert.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_insert_struct::row_spacing.

Referenced by dxf_insert_write().

DxfInsert* dxf_insert_set_row_spacing ( DxfInsert insert,
double  row_spacing 
)

Set the row spacing value row_spacing of a DXF INSERT entity.

Returns:
a pointer to insert when successful, or NULL when an error occurred.
Parameters:
inserta pointer to a DXF INSERT entity.
row_spacingthe row spacing value row_spacing for a DXF INSERT entity.

Definition at line 3108 of file insert.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_insert_struct::row_spacing.

Referenced by dxf_insert_init().

double dxf_insert_get_rot_angle ( DxfInsert insert)

Get the rotation angle value rot_angle of a DXF INSERT entity.

Returns:
the rotation angle value rot_angle.

Todo:
We need to normalize the return value in the range 0.0 ... 360.0.

Parameters:
inserta pointer to a DXF INSERT entity.

Definition at line 3149 of file insert.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_insert_struct::rot_angle.

Referenced by dxf_insert_write().

DxfInsert* dxf_insert_set_rot_angle ( DxfInsert insert,
double  rot_angle 
)

Set the rotation angle value rot_angle of a DXF INSERT entity.

Returns:
a pointer to insert when successful, or NULL when an error occurred.

Todo:
We need to normalize the value in the range 0.0 ... 360.0 before returning.

Parameters:
inserta pointer to a DXF INSERT entity.
rot_anglethe rotation angle value rot_angle for a DXF INSERT entity.

Definition at line 3189 of file insert.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_insert_struct::rot_angle.

Referenced by dxf_insert_init().

int dxf_insert_get_attributes_follow ( DxfInsert insert)

Get the attributes follow attributes_follow from a DXF INSERT entity.

Returns:
attributes follow attributes_follow value.
Parameters:
inserta pointer to a DXF INSERT entity.

Definition at line 3238 of file insert.c.

References _, dxf_insert_struct::attributes_follow, DXF_DEBUG_BEGIN, and DXF_DEBUG_END.

Referenced by dxf_insert_write().

DxfInsert* dxf_insert_set_attributes_follow ( DxfInsert insert,
int  attributes_follow 
)

Set the attributes follow attributes_follow for a DXF INSERT entity.

Parameters:
inserta pointer to a DXF INSERT entity.
attributes_followAttributes follow value to be set for the entity.

Definition at line 3281 of file insert.c.

References _, dxf_insert_struct::attributes_follow, DXF_DEBUG_BEGIN, and DXF_DEBUG_END.

Referenced by dxf_insert_init().

int dxf_insert_get_columns ( DxfInsert insert)

Get the number of columns columns from a DXF INSERT entity.

Returns:
number of columns columns.
Parameters:
inserta pointer to a DXF INSERT entity.

Definition at line 3329 of file insert.c.

References _, dxf_insert_struct::columns, DXF_DEBUG_BEGIN, and DXF_DEBUG_END.

Referenced by dxf_insert_write().

DxfInsert* dxf_insert_set_columns ( DxfInsert insert,
int  columns 
)

Set the number of columns columns for a DXF INSERT entity.

Parameters:
inserta pointer to a DXF INSERT entity.
columnsNumber of columns value to be set for the entity.

Definition at line 3365 of file insert.c.

References _, dxf_insert_struct::columns, DXF_DEBUG_BEGIN, and DXF_DEBUG_END.

Referenced by dxf_insert_init(), and dxf_insert_write().

int dxf_insert_get_rows ( DxfInsert insert)

Get the number of rows rows from a DXF INSERT entity.

Returns:
number of rows rows.
Parameters:
inserta pointer to a DXF INSERT entity.

Definition at line 3406 of file insert.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_insert_struct::rows.

Referenced by dxf_insert_write().

DxfInsert* dxf_insert_set_rows ( DxfInsert insert,
int  rows 
)

Set the number of rows rows for a DXF INSERT entity.

Parameters:
inserta pointer to a DXF INSERT entity.
rowsNumber of rows value to be set for the entity.

Definition at line 3441 of file insert.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_insert_struct::rows.

Referenced by dxf_insert_init(), and dxf_insert_write().

double dxf_insert_get_extr_x0 ( DxfInsert insert)

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

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

Definition at line 3482 of file insert.c.

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

Referenced by dxf_insert_write().

DxfInsert* dxf_insert_set_extr_x0 ( DxfInsert insert,
double  extr_x0 
)

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

Returns:
a pointer to insert when successful, or NULL when an error occurred.
Parameters:
inserta pointer to a DXF INSERT entity.
extr_x0the X-value of the extrusion vector extr_x0 of a DXF ARC entity.

Definition at line 3515 of file insert.c.

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

Referenced by dxf_insert_init().

double dxf_insert_get_extr_y0 ( DxfInsert insert)

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

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

Definition at line 3550 of file insert.c.

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

Referenced by dxf_insert_write().

DxfInsert* dxf_insert_set_extr_y0 ( DxfInsert insert,
double  extr_y0 
)

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

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

Definition at line 3583 of file insert.c.

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

Referenced by dxf_insert_init().

double dxf_insert_get_extr_z0 ( DxfInsert insert)

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

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

Definition at line 3618 of file insert.c.

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

Referenced by dxf_insert_write().

DxfInsert* dxf_insert_set_extr_z0 ( DxfInsert insert,
double  extr_z0 
)

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

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

Definition at line 3651 of file insert.c.

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

Referenced by dxf_insert_init().

DxfInsert* dxf_insert_set_extrusion_vector_from_point ( DxfInsert insert,
DxfPoint point 
)

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

Parameters:
inserta pointer to a DXF INSERT entity.
pointa pointer to a DXF POINT entity.

Definition at line 3684 of file insert.c.

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

DxfInsert* dxf_insert_set_extrusion_vector ( DxfInsert insert,
double  extr_x0,
double  extr_y0,
double  extr_z0 
)

Set the extrusion vector for a DXF INSERT entity.

Parameters:
inserta pointer to a DXF INSERT 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 3724 of file insert.c.

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

DxfInsert* dxf_insert_get_next ( DxfInsert insert)

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

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

Definition at line 3766 of file insert.c.

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

DxfInsert* dxf_insert_set_next ( DxfInsert insert,
DxfInsert next 
)

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

Parameters:
inserta pointer to a DXF INSERT entity.
nexta pointer to the next INSERT for the entity.

Definition at line 3802 of file insert.c.

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

Referenced by dxf_insert_init().

DxfInsert* dxf_insert_get_last ( DxfInsert insert)

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

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

Definition at line 3845 of file insert.c.

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