gCAD3D 2.35
svg_w.c File Reference

write SVG file More...

#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 "../ut/ut_txTab.h"
#include "../ut/ut_os.h"
#include "../ut/ut_elli.h"
#include "../gr/ut_DL.h"
#include "../gr/ut_GL.h"
#include "../gr/ut_gr.h"
#include "../ut/func_types.h"
#include "../db/ut_DB.h"
#include "../xa/xa_mem.h"

Functions

char * SVG_w_fmt1 (char *outBuf, char *tx1, double d1)
 
char * SVG_w_fmt2 (char *outBuf, char *tx1, double d1, double d2)
 
char * SVG_w_fmti2 (char *outBuf, char *tx1, int i1, int i2)
 
int SVG_w__ (char *fnam)
 
int SVG_w_obj (ObjGX *ox1)
 
int SVG_w_pt (Point *pt1)
 
int SVG_w_ln3 (Line *ln1)
 
int SVG_w_ln2 (Point2 *pt1, Point2 *pt2)
 
int SVG_w_cir_f (Circ *ci1)
 
int SVG_w_cir_2r (Circ2 *ci21)
 
int SVG_w_cir_r (Circ *ci1)
 
int SVG_w_crv (ObjGX *ox1)
 
int SVG_w_bez (int pNr, Point *pTab)
 
int SVG_w_ell_360 (CurvElli *el1)
 
int SVG_w_ell_r (CurvElli *el1)
 
int SVG_w_ell_wr (double *x1, double *y1, double *rx, double *ry, double *ax, int *i1, int *i2, double *x2, double *y2)
 
int SVG_w_plg (int ptNr, Point *pTab)
 
int SVG_w_txt_copy (char *txt)
 
int SVG_w_gtxt__ (GText *tx1)
 
int SVG_w_gtxt_c (double *x1, double *y1, double *a1)
 
int SVG_w_sym (char *symNam, int symNr, Point2 *pt1, double *a1)
 
int SVG_w_dim__ (Dimen *dim1)
 
int SVG_w_trPt (double *x1, double *y1, double *dx, double *dy)
 
int SVG_w_tra (int *ix, int *iy, double *dx, double *dy)
 
int SVG_w_box ()
 
int SVG_w_setLtyp ()
 

Variables

static FILE * SVG_fp1
 
static double SVG_siz_x
 
static double SVG_siz_y
 
static double SVG_lu_x
 
static double SVG_lu_y
 
static double SVG_rl_x
 
static double SVG_rl_y
 
static char * SVG_sBuf
 
static int SVG_sSiz
 
static char * SVG_tBuf
 
static int SVG_tSiz
 
static int SVG_tlNr
 
static double SVG_lTypScl
 
static double SVG_txsiz
 
static double SVG_txdimsiz
 
static double SVG_ardx
 
static double SVG_ardy
 
static double SVG_txScaleFakt = 1.75
 
static double SVG_tActSiz
 
static unsigned long SVG_iAtt
 
static char SVG_sAtt [256]
 
double AP_txsiz
 Notes-Defaultsize. More...
 
double AP_txdimsiz
 Dimensions-Text-Defaultsize. More...
 
int APT_dispPT
 

Detailed Description

write SVG file

=====================================================
List_functions_start:
SVG_w__ mainEntry
SVG_w_pt export point
List_functions_end:
=====================================================

Function Documentation

char * SVG_w_fmt1 ( char *  outBuf,
char *  tx1,
double  d1 
)
char * SVG_w_fmt2 ( char *  outBuf,
char *  tx1,
double  d1,
double  d2 
)
char * SVG_w_fmti2 ( char *  outBuf,
char *  tx1,
int  i1,
int  i2 
)
int SVG_w__ ( char *  fnam)

export as SVG

int SVG_w_obj ( ObjGX ox1)
int SVG_w_pt ( Point pt1)
int SVG_w_ln3 ( Line ln1)
int SVG_w_ln2 ( Point2 pt1,
Point2 pt2 
)
int SVG_w_cir_f ( Circ ci1)
int SVG_w_cir_2r ( Circ2 ci21)
int SVG_w_cir_r ( Circ ci1)
int SVG_w_crv ( ObjGX ox1)
int SVG_w_bez ( int  pNr,
Point pTab 
)
int SVG_w_ell_360 ( CurvElli el1)
int SVG_w_ell_r ( CurvElli el1)
int SVG_w_ell_wr ( double *  x1,
double *  y1,
double *  rx,
double *  ry,
double *  ax,
int *  i1,
int *  i2,
double *  x2,
double *  y2 
)
int SVG_w_plg ( int  ptNr,
Point pTab 
)
int SVG_w_txt_copy ( char *  txt)
int SVG_w_gtxt__ ( GText tx1)
int SVG_w_gtxt_c ( double *  x1,
double *  y1,
double *  a1 
)
int SVG_w_sym ( char *  symNam,
int  symNr,
Point2 pt1,
double *  a1 
)
int SVG_w_dim__ ( Dimen dim1)
int SVG_w_trPt ( double *  x1,
double *  y1,
double *  dx,
double *  dy 
)
int SVG_w_tra ( int *  ix,
int *  iy,
double *  dx,
double *  dy 
)
int SVG_w_box ( )
int SVG_w_setLtyp ( )

Variable Documentation

FILE* SVG_fp1
static
double SVG_siz_x
static
double SVG_siz_y
static
double SVG_lu_x
static
double SVG_lu_y
static
double SVG_rl_x
static
double SVG_rl_y
static
char* SVG_sBuf
static
int SVG_sSiz
static
char* SVG_tBuf
static
int SVG_tSiz
static
int SVG_tlNr
static
double SVG_lTypScl
static
double SVG_txsiz
static
double SVG_txdimsiz
static
double SVG_ardx
static
double SVG_ardy
static
double SVG_txScaleFakt = 1.75
static
double SVG_tActSiz
static
unsigned long SVG_iAtt
static
char SVG_sAtt[256]
static
double AP_txsiz

Notes-Defaultsize.

double AP_txdimsiz

Dimensions-Text-Defaultsize.

Dimensions-Text-size.

int APT_dispPT