line(x0,y0,x1,y1){ putc('l',stdout); putsi(x0); putsi(y0); putsi(x1); putsi(y1); }
void cont(int xi, int yi) { putc('n',stdout); putsi(xi); putsi(yi); }
space(x0,y0,x1,y1){ putc('s',stdout); putsi(x0); putsi(y0); putsi(x1); putsi(y1); }
void space(int x0, int y0, int x1, int y1) { putc('s',stdout); putsi(x0); putsi(y0); putsi(x1); putsi(y1); }
/** * @brief * plot a point */ void pl_point(register FILE *plotfp, int x, int y) { if (pl_outputMode == PL_OUTPUT_MODE_BINARY) { putc( 'p', plotfp ); putsi( x ); putsi( y ); } else { fprintf(plotfp, "p %d %d\n", x, y); } }
void pl_3cont(register FILE *plotfp, int x, int y, int z) { if (pl_outputMode == PL_OUTPUT_MODE_BINARY) { putc( 'N', plotfp ); putsi( x ); putsi( y ); putsi( z ); } else { fprintf(plotfp, "N %d %d %d\n", x, y, z); } }
void pl_circle(register FILE *plotfp, int x, int y, int r) { if (pl_outputMode == PL_OUTPUT_MODE_BINARY) { putc( 'c', plotfp ); putsi( x ); putsi( y ); putsi( r ); } else { fprintf(plotfp, "c %d %d %d\n", x, y, r); } }
void pl_line(register FILE *plotfp, int x1, int y1, int x2, int y2) { if (pl_outputMode == PL_OUTPUT_MODE_BINARY) { putc( 'l', plotfp ); putsi( x1 ); putsi( y1 ); putsi( x2 ); putsi( y2 ); } else { fprintf(plotfp, "l %d %d %d %d\n", x1, y1, x2, y2); } }
void three_coord_out(FILE *fp, fastf_t *m) { point_t p1; short p2[3]; p1[0] = getshort(fp); /* get X */ p1[1] = getshort(fp); /* and Y */ p1[2] = getshort(fp); /* and Z */ MAT4X3PNT( p2, m, p1 ); putsi(p2[0]); /* put X */ putsi(p2[1]); /* and Y */ putsi(p2[2]); /* and Z */ }
void printAll(int argc, char **argv){ int iline; for(iline = 0; iline != SYMBOL_HEIGHT; ++iline) { printWord(iline ,argc , argv); putsi("\n"); } }
arc(xi,yi,x0,y0,x1,y1) { putc('a',stdout); putsi(xi); putsi(yi); putsi(x0); putsi(y0); putsi(x1); putsi(y1); }
void pl_3space(register FILE *plotfp, int x1, int y1, int z1, int x2, int y2, int z2) { if (pl_outputMode == PL_OUTPUT_MODE_BINARY) { putc( 'S', plotfp ); putsi( x1 ); putsi( y1 ); putsi( z1 ); putsi( x2 ); putsi( y2 ); putsi( z2 ); } else { fprintf(plotfp, "S %d %d %d %d %d %d\n", x1, y1, z1, x2, y2, z2); } }
void pl_arc(register FILE *plotfp, int xc, int yc, int x1, int y1, int x2, int y2) { if (pl_outputMode == PL_OUTPUT_MODE_BINARY) { putc( 'a', plotfp ); putsi( xc ); putsi( yc ); putsi( x1 ); putsi( y1 ); putsi( x2 ); putsi( y2 ); } else { fprintf(plotfp, "a %d %d %d %d %d %d\n", xc, yc, x1, y1, x2, y2); } }
circle(x,y,r){ putc('c',stdout); putsi(x); putsi(y); putsi(r); }
point(xi,yi){ putc('p',stdout); putsi(xi); putsi(yi); }
void printSpace(int iarg , int iline , int argc){ if(iarg!=argc-1){ putsi(alphabet[asc2idx(' ')][iline]); } }
cont(xi,yi) { putc('n',stdout); putsi(xi); putsi(yi); }
move(xi,yi){ putc('m',stdout); putsi(xi); putsi(yi); }
void printChar(char * c , int iline){ while(*c) { putsi(alphabet[asc2idx(*c)][iline]); ++c; } }