===================================================== Liste_Funktionen_Beginn: - read DXF: dxf_ckFileFormat . dxfr_init open, skip until ENTITIES-section dxfr_head__ decode headersection dxfr_block_find find Block dxfr_section_skip skip unsupported sections dxfr_block_skip skip unsupported blocks dxfr_rec_read read next 2 lines dxfr_rec__ read next record dxfr_stru_2_obj . dxfr_tra_arc transform circle dxfr_load_mat TrMat from vec - write DXF: dxfw_init write DXF-Prolog dxfw_end write Endrecord dxfw_rec write obj dxfw_VERTEX 3D-pt dxfw_VERTEX2 2D-pt dxfw_hd_POLYLINE wr header of POLYLINE dxfw_POLYLINE . dxfw_fl_out wr int + double dxfw_point2 wr 2D-pt dxfw_point wr 3D-pt dxfw_vector wr vec dxfw_load_mat TrMat from vec Liste_Funktionen_Ende: =====================================================
#include "../xa/MS_Def0.h"
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "../ut/ut_geo.h"
#include "../ut/ut_txt.h"
#include "../ut/ut_TX.h"
#include "../gr/ut_UI.h"
#include "../xa/xa.h"
#include "../xa/xa_mem.h"
#include "../exp/dxf.h"
Defines | |
#define | DXF_FuncEnd 1234 |
#define | DXF_fakt_txtSiz 32.0 |
Functions | |
int | dxf_ckFileFormat (char *fnam) |
int | dxfr_init (double *dTab, FILE *fp_in, FILE *fp1) |
int | dxfr_head__ (double *dTab, FILE *fp_in, FILE *fp1) |
int | dxfr_block_find (FILE *fp_in, FILE *fp1, char *BlockNam) |
int | dxfr_section_skip (FILE *fp_in, FILE *fp1) |
int | dxfr_block_skip (FILE *fp_in, FILE *fp1) |
int | dxfr_rec_read (FILE *fp_in, FILE *fp1) |
int | dxfr_rec__ (ObjGX **el, FILE *fp_in, FILE *fp1, Memspc *wrkSpc) |
ObjGX * | dxfr_stru_2_obj (int typ, int form, int siz, void *data) |
void | dxfr_tra_arc (Circ *ci1, Mat_4x3 m1, Point *ptc, double wa, double we, double crd) |
void | dxfr_load_mat (Mat_4x3 m1, Vector *vz) |
int | dxfw_init (FILE *fp_in) |
void | dxfw_end (FILE *fp_in) |
int | dxfw_rec (ObjGX *ox1, FILE *fp_in) |
int | dxfw_VERTEX (int typ, Point *pti, FILE *fp_in) |
int | dxfw_VERTEX2 (int typ, Point2 *pti, FILE *fp_in) |
int | dxfw_hd_POLYLINE (FILE *fp_in) |
int | dxfw_POLYLINE (int pNr, int typ, Point *pTab, FILE *fp_in) |
int | dxfw_fl_out (int recID, double fVal, FILE *fp_in) |
int | dxfw_point2 (int pnum, Point2 *point, FILE *fp_in) |
int | dxfw_point (int pnum, Point *point, FILE *fp_in) |
int | dxfw_vector (Vector *vc1, FILE *fp_in) |
void | dxfw_load_mat (Mat_4x3 m1, Vector *vz) |
Variables | |
double | AP_txsiz |
Notes-Defaultsize. | |
double | AP_txdimsiz |
Dimensions-Text-Defaultsize. | |
static int | dxf_TypTab [] |
static char * | dxf_NamTab [] |
static char | dxf_linbuf [256] |
static char | dxf_numbuf [256] |
static char | BlockNam [80] |
static char | dxf_text [256] |
static int | dxf_rectyp |
static long | dxf_LineNr |
static int | dxf_ModePoly = OFF |
static int | dxF_VertAnz |
static Point * | dxf_pa |
static int | dxf_paSiz |
static ObjGX | dxf_ox1 |
static int | dxf_ModeIns |
static int | dxf_oldLineNr |
#define DXF_FuncEnd 1234 |
#define DXF_fakt_txtSiz 32.0 |
int dxf_ckFileFormat | ( | char * | fnam | ) |
int dxfr_init | ( | double * | dTab, | |
FILE * | fp_in, | |||
FILE * | fp1 | |||
) |
int dxfr_head__ | ( | double * | dTab, | |
FILE * | fp_in, | |||
FILE * | fp1 | |||
) |
int dxfr_block_find | ( | FILE * | fp_in, | |
FILE * | fp1, | |||
char * | BlockNam | |||
) |
int dxfr_section_skip | ( | FILE * | fp_in, | |
FILE * | fp1 | |||
) |
int dxfr_block_skip | ( | FILE * | fp_in, | |
FILE * | fp1 | |||
) |
int dxfr_rec_read | ( | FILE * | fp_in, | |
FILE * | fp1 | |||
) |
ObjGX* dxfr_stru_2_obj | ( | int | typ, | |
int | form, | |||
int | siz, | |||
void * | data | |||
) |
int dxfw_init | ( | FILE * | fp_in | ) |
void dxfw_end | ( | FILE * | fp_in | ) |
int dxfw_rec | ( | ObjGX * | ox1, | |
FILE * | fp_in | |||
) |
int dxfw_VERTEX | ( | int | typ, | |
Point * | pti, | |||
FILE * | fp_in | |||
) |
int dxfw_VERTEX2 | ( | int | typ, | |
Point2 * | pti, | |||
FILE * | fp_in | |||
) |
int dxfw_hd_POLYLINE | ( | FILE * | fp_in | ) |
int dxfw_POLYLINE | ( | int | pNr, | |
int | typ, | |||
Point * | pTab, | |||
FILE * | fp_in | |||
) |
int dxfw_fl_out | ( | int | recID, | |
double | fVal, | |||
FILE * | fp_in | |||
) |
int dxfw_point2 | ( | int | pnum, | |
Point2 * | point, | |||
FILE * | fp_in | |||
) |
int dxfw_point | ( | int | pnum, | |
Point * | point, | |||
FILE * | fp_in | |||
) |
int dxfw_vector | ( | Vector * | vc1, | |
FILE * | fp_in | |||
) |
double AP_txsiz |
Notes-Defaultsize.
double AP_txdimsiz |
Dimensions-Text-Defaultsize.
int dxf_TypTab[] [static] |
Initial value:
{Typ_PT, Typ_PT, Typ_LN, Typ_CI, Typ_AC, Typ_CVPOL, DXF_FuncEnd, Typ_LN, Typ_Txt, Typ_Group, Typ_GTXT, Typ_CVELL, Typ_Dimen,Typ_SURCIR,Typ_goGeo1, Typ_Txt, Typ_goGeo2, -99}
char* dxf_NamTab[] [static] |
Initial value:
{"POINT", "VERTEX", "LINE", "CIRCLE", "ARC", "POLYLINE", "SEQEND", "3DLINE", "TEXT", "INSERT", "TEXT", "ELLIPSE", "DIMENSION","3DFACE", "LEADER", "MTEXT", "LWPOLYLINE"}
char dxf_linbuf[256] [static] |
char dxf_numbuf[256] [static] |
char BlockNam[80] [static] |
char dxf_text[256] [static] |
int dxf_rectyp [static] |
long dxf_LineNr [static] |
int dxf_ModePoly = OFF [static] |
int dxF_VertAnz [static] |
int dxf_paSiz [static] |
int dxf_ModeIns [static] |
int dxf_oldLineNr [static] |