libDXF 0.0.1
A library with DXF related functions written in C.
|
Header file for a DXF User Coordinate System entity (UCS
).
More...
#include "global.h"
Go to the source code of this file.
Data Structures | |
struct | dxf_ucs |
DXF definition of an AutoCAD User Coordinate System entity (UCS ). More... | |
Typedefs | |
typedef struct dxf_ucs | DxfUcs |
DXF definition of an AutoCAD User Coordinate System entity (UCS ). | |
Functions | |
DxfUcs * | dxf_ucs_new () |
Allocate memory for a DXF UCS . | |
DxfUcs * | dxf_ucs_init (DxfUcs *ucs) |
Allocate memory and initialize data fields in a DXF UCS entity. | |
DxfUcs * | dxf_ucs_read (DxfFile *fp, DxfUcs *ucs) |
Read data from a DXF file into a DXF UCS entity. | |
int | dxf_ucs_write (DxfFile *fp, DxfUcs *ucs) |
Write DXF output to a file for a DXF UCS entity. | |
int | dxf_ucs_free (DxfUcs *ucs) |
Free the allocated memory for a DXF UCS and all it's data fields. | |
void | dxf_ucs_free_chain (DxfUcs *ucss) |
Free the allocated memory for a chain of DXF UCS symbol table and all their data fields. |
Header file for a DXF User Coordinate System entity (UCS
).
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 ucs.h.
DXF definition of an AutoCAD User Coordinate System entity (UCS
).
DxfUcs* dxf_ucs_new | ( | ) |
Allocate memory for a DXF UCS
.
Fill the memory contents with zeros.
NULL
when no memory was allocated, a pointer to the allocated memory when succesful.Definition at line 53 of file ucs.c.
References _, DXF_DEBUG_BEGIN, and DXF_DEBUG_END.
Referenced by dxf_ucs_init(), and dxf_ucs_read().
Allocate memory and initialize data fields in a DXF UCS
entity.
NULL
when no memory was allocated, a pointer to the allocated memory when succesful.ucs | a pointer to the DXF UCS symbol table entry. |
Definition at line 97 of file ucs.c.
References _, dxf_ucs::dictionary_owner_hard, dxf_ucs::dictionary_owner_soft, DXF_DEBUG_BEGIN, DXF_DEBUG_END, dxf_ucs_new(), dxf_ucs::flag, dxf_ucs::id_code, dxf_ucs::next, dxf_ucs::UCS_name, dxf_ucs::x_origin, dxf_ucs::x_X_dir, dxf_ucs::x_Y_dir, dxf_ucs::y_origin, dxf_ucs::y_X_dir, dxf_ucs::y_Y_dir, dxf_ucs::z_origin, dxf_ucs::z_X_dir, and dxf_ucs::z_Y_dir.
Referenced by dxf_ucs_read().
Read data from a DXF file into a DXF UCS
entity.
The last line read from file contained the string "UCS".
Now follows some data for the UCS
, to be terminated with a " 0" string announcing the following table record, or the end of the TABLE
section marker ENDTAB
.
While parsing the DXF file store data in ucs
.
ucs
.fp | DXF file pointer to an input file (or device). |
ucs | a pointer to the DXF UCS symbol table entry. |
Definition at line 161 of file ucs.c.
References _, dxf_file_struct::acad_version_number, AutoCAD_13, dxf_ucs::dictionary_owner_hard, dxf_ucs::dictionary_owner_soft, DXF_DEBUG_BEGIN, DXF_DEBUG_END, dxf_ucs_init(), dxf_ucs_new(), dxf_file_struct::filename, dxf_ucs::flag, dxf_file_struct::fp, dxf_ucs::id_code, dxf_file_struct::line_number, dxf_ucs::UCS_name, dxf_ucs::x_origin, dxf_ucs::x_X_dir, dxf_ucs::x_Y_dir, dxf_ucs::y_origin, dxf_ucs::y_X_dir, dxf_ucs::y_Y_dir, dxf_ucs::z_origin, dxf_ucs::z_X_dir, and dxf_ucs::z_Y_dir.
Write DXF output to a file for a DXF UCS
entity.
EXIT_SUCCESS
when done, or EXIT_FAILURE
when an error occurred.fp | DXF file pointer to an output file (or device). |
ucs | a pointer to the DXF UCS symbol table entry. |
Definition at line 361 of file ucs.c.
References _, dxf_file_struct::acad_version_number, AutoCAD_13, AutoCAD_14, dxf_ucs::dictionary_owner_hard, dxf_ucs::dictionary_owner_soft, DXF_DEBUG_BEGIN, DXF_DEBUG_END, dxf_ucs::flag, dxf_file_struct::fp, dxf_ucs::id_code, dxf_ucs::UCS_name, dxf_ucs::x_origin, dxf_ucs::x_X_dir, dxf_ucs::x_Y_dir, dxf_ucs::y_origin, dxf_ucs::y_X_dir, dxf_ucs::y_Y_dir, dxf_ucs::z_origin, dxf_ucs::z_X_dir, and dxf_ucs::z_Y_dir.
int dxf_ucs_free | ( | DxfUcs * | ucs | ) |
Free the allocated memory for a DXF UCS
and all it's data fields.
EXIT_SUCCESS
when done, or EXIT_FAILURE
when an error occurred.ucs | a pointer to the memory occupied by the DXF UCS symbol table entry. |
Definition at line 475 of file ucs.c.
References _, dxf_ucs::dictionary_owner_hard, dxf_ucs::dictionary_owner_soft, DXF_DEBUG_BEGIN, DXF_DEBUG_END, dxf_ucs::next, and dxf_ucs::UCS_name.
Referenced by dxf_ucs_free_chain().
void dxf_ucs_free_chain | ( | DxfUcs * | ucss | ) |
Free the allocated memory for a chain of DXF UCS
symbol table and all their data fields.
ucss | a pointer to the chain of DXF UCS symbol table entries. |
Definition at line 523 of file ucs.c.
References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, dxf_ucs_free(), and dxf_ucs::next.