15 int main(
int argc,
char *argv[] )
24 printf(
"need a output file name\n");
49 x[2] = 1000; y[2] = 500;
50 x[3] = 1000; y[3] = 0;
59 std::vector<int> vx(4);
60 std::vector<int> vy(4);
62 vx[1] = 0; vy[1] = 500;
63 vx[2] = 1000; vy[2] = 500;
64 vx[3] = 1000; vy[3] = 0;
72 for (
int i = 0; i < 1; ++i)
105 x[0] = 2000; y[0] = 3000;
106 x[1] = 2000; y[1] = 4000;
107 x[2] = 2500; y[2] = 3500;
118 x[0] = 3000; y[0] = 0;
119 x[1] = 3000; y[1] = 500;
120 x[2] = 4000; y[2] = 500;
121 x[3] = 4000; y[3] = 0;
122 x[4] = 3000; y[4] = 0;
156 x[0] = 5000; y[0] = 5000;
158 x[1] = 85000; y[1] = 5000;
160 x[2] = 5000; y[2] = 205000;
171 printf(
"\nDone. Look at %s\n\n", argv[1] );
void gds_write_presentation(int font, int vp, int hp)
write PRESENTATION
void gds_write_endlib()
write ENDLIB
void gds_write_endstr()
write ENDSTR
void gds_write_boxtype(short int dt)
write BOXTYPE
void gds_write_mag(double mag)
write MAG
void gds_write_endel()
write ENDEL
void gds_write_box()
write BOX
void gds_write_bgnstr()
write BGNSTR
void write_box(int layer, int datatype, int xl, int yl, int xh, int yh)
write a box object
void gds_write_datatype(short int dt)
write DATATYPE
void gds_write_sname(const char *s)
write SNAME
void create_lib(const char *libname, double dbu_uu, double dbu_m)
create GDSII library
void write_boundary(int layer, int datatype, std::vector< int > const &vx, std::vector< int > const &vy, bool has_last=true)
write a boundary object
void gds_write_path()
write PATH
void gds_write_pathtype(short int pt)
write PATHTYPE
void gds_write_width(int width)
write WIDTH
void gds_write_texttype(short int dt)
write TEXTTYPE
void gds_write_xy(const int *x, const int *y, int n, bool has_last=true)
write XY
int main(int argc, char *argv[])
main function
void gds_write_text()
write TEXT
void gds_write_aref()
write AREF
void gds_write_string(const char *s)
write STRING
void gds_write_layer(short int layer)
write LAYER
void gds_create_text(const char *str, int x, int y, int layer, int size)
wrapper to create text
void gds_write_boundary()
write BOUNDARY
void gds_write_strname(const char *name)
write STRNAME
void gds_write_colrow(int ncols, int nrows)
write COLROW
void gds_write_strans(BOOL reflect, BOOL abs_angle, BOOL abs_mag)
write STRANS
void gds_write_sref()
write SREF
void gds_write_angle(double angle)
write ANGLE