Defines |
| #define | PLMAXSTR 300 |
| #define | STLEN 250 |
Functions |
| int | hershey2unicode (int in) |
| static void | pldeco (short int **sym, PLINT *length, const char *text) |
| static void | plchar (signed char *xygrid, PLFLT *xform, PLINT base, PLINT oline, PLINT uline, PLINT refx, PLINT refy, PLFLT scale, PLFLT xpmm, PLFLT ypmm, PLFLT *p_xorg, PLFLT *p_yorg, PLFLT *p_width) |
| static PLINT | plcvec (PLINT ch, signed char **xygr) |
| static void | plhrsh (PLINT ch, PLINT x, PLINT y) |
| static void | plhrsh2 (PLINT ch, PLINT x, PLINT y) |
| void | c_plstring (PLINT n, const PLFLT *x, const PLFLT *y, const char *string) |
| void | c_plsym (PLINT n, const PLFLT *x, const PLFLT *y, PLINT code) |
| void | c_plpoin (PLINT n, const PLFLT *x, const PLFLT *y, PLINT code) |
| void | c_plpoin3 (PLINT n, const PLFLT *x, const PLFLT *y, const PLFLT *z, PLINT code) |
| void | c_plstring3 (PLINT n, const PLFLT *x, const PLFLT *y, const PLFLT *z, const char *string) |
| void | c_pllab (const char *xlabel, const char *ylabel, const char *tlabel) |
| void | c_plmtex (const char *side, PLFLT disp, PLFLT pos, PLFLT just, const char *text) |
| void | c_plptex (PLFLT wx, PLFLT wy, PLFLT dx, PLFLT dy, PLFLT just, const char *text) |
| void | plstr (PLINT base, PLFLT *xform, PLINT refx, PLINT refy, const char *string) |
| PLFLT | plstrl (const char *string) |
| PLINT | plP_strpos (const char *str, int chr) |
| PLINT | plP_stindex (const char *str1, const char *str2) |
| PLBOOL | plP_stsearch (const char *str, int chr) |
| void | plP_script_scale (PLBOOL ifupper, PLINT *level, PLFLT *old_scale, PLFLT *scale, PLFLT *old_offset, PLFLT *offset) |
| void | c_plfont (PLINT ifont) |
| void | plfntld (PLINT fnt) |
| void | plfontrel (void) |
| int | plhershey2unicode (int in) |
| char * | plP_FCI2FontName (PLUNICODE fci, const FCI_to_FontName_Table lookup[], const int nlookup) |
| void | c_plmtex3 (const char *side, PLFLT disp, PLFLT pos, PLFLT just, const char *text) |
| void | c_plptex3 (PLFLT wx, PLFLT wy, PLFLT wz, PLFLT dx, PLFLT dy, PLFLT dz, PLFLT sx, PLFLT sy, PLFLT sz, PLFLT just, const char *text) |
| void | c_plsfont (PLINT family, PLINT style, PLINT weight) |
| void | c_plgfont (PLINT *p_family, PLINT *p_style, PLINT *p_weight) |
Variables |
| static short int * | fntlkup |
| static short int * | fntindx |
| static signed char * | fntbffr |
| static short int | numberfonts |
| static short int | numberchars |
| static short int | indxleng |
| static short | fontloaded = 0 |
| static const char | font_types [] = "nris" |
| static short | symbol_buffer [PLMAXSTR] |
| static signed char | xygrid [STLEN] |
Point-, symbol-, and string-plotting routines.
Plot a glyph at the specified points. (This function is largely superseded by plstring which gives access to many[!] more glyphs.) code=-1 means try to just draw a point. Right now it's just a move and a draw at the same place. Not ideal, since a sufficiently intelligent output device may optimize it away, or there may be faster ways of doing it. This is OK for now, though, and offers a 4X speedup over drawing a Hershey font "point" (which is actually diamond shaped and and therefore takes 4 strokes to draw). If 0 < code < 32, then a useful (but small subset) of Hershey symbols is plotted. If 32 <= code <= 127 the corresponding printable ASCII character is plotted.
- Parameters:
-
| n | Number of points in x and y arrays. |
| x | Pointer to an array with X coordinates of points. |
| y | Pointer to an array with Y coordinates of points. |
| code | Hershey symbol code (in "ascii-indexed" form with -1 <= code <= 127) corresponding to a glyph to be plotted at each of the n points. |
Definition at line 167 of file plsym.c.
Plot a glyph at the specified 3D points. (This function is largely superseded by plstring3 which gives access to many[!] more glyphs.) Set up the call to this function similar to what is done for plline3. code=-1 means try to just draw a point. Right now it's just a move and a draw at the same place. Not ideal, since a sufficiently intelligent output device may optimize it away, or there may be faster ways of doing it. This is OK for now, though, and offers a 4X speedup over drawing a Hershey font "point" (which is actually diamond shaped and therefore takes 4 strokes to draw). If 0 < code < 32, then a useful (but small subset) of Hershey symbols is plotted. If 32 <= code <= 127 the corresponding printable ASCII character is plotted.
- Parameters:
-
| n | Number of points in x, y, and z arrays. |
| x | Pointer to an array with X coordinates of points. |
| y | Pointer to an array with Y coordinates of points. |
| z | Pointer to an array with Z coordinates of points. |
| code | Hershey symbol code (in "ascii-indexed" form with -1 <= code <= 127) corresponding to a glyph to be plotted at each of the n points. |
Definition at line 230 of file plsym.c.