home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: Science / Science.zip / gmt_os2.zip / src / pslib.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-11-08  |  2.5 KB  |  85 lines

  1. /*--------------------------------------------------------------------
  2.  *    The GMT-system:  @(#)pslib.h  2.12  2/4/95
  3.  *
  4.  *    Copyright (c) 1991-1995 by P. Wessel and W. H. F. Smith
  5.  *    See README file for copying and redistribution conditions.
  6.  *--------------------------------------------------------------------*/
  7. /*
  8.  *
  9.  * This include file must be included by all programs using pslib.a
  10.  *
  11.  * Author:  Paul Wessel
  12.  * Date:  9-JAN-1991-1995
  13.  *  
  14.  *   Modifed by Allen Cogbill (11/8/96) to include "gmt.os2.h"     
  15.  *
  16.  */
  17. #include "gmt_os2.h"
  18. int ps_line();
  19. int ps_plotinit();
  20. int ps_shorten_path();
  21. void ps_arc();
  22. void ps_axis();
  23. void ps_circle();
  24. void ps_clipoff();
  25. void ps_clipon();
  26. void ps_colorimage();
  27. void ps_colortiles();
  28. void ps_command();
  29. void ps_comment();
  30. void ps_cross();
  31. void ps_def_euro_font();
  32. void ps_diamond();
  33. void ps_ellipse();
  34. void ps_hexagon();
  35. void ps_image();
  36. void ps_imagec();
  37. void ps_imagefill();
  38. void ps_imagefill_init();
  39. void ps_imagergb();
  40. void ps_itriangle();
  41. void ps_pie();
  42. void ps_plot();
  43. void ps_plotend();
  44. void ps_plotr();
  45. void ps_polygon();
  46. void ps_rect();
  47. void ps_patch();
  48. void ps_rotatetrans();
  49. void ps_setdash();
  50. void ps_setfont();
  51. void ps_setformat();
  52. void ps_setline();
  53. void ps_setpaint();
  54. void ps_square();
  55. void ps_star();
  56. void ps_text();
  57. void ps_textbox();
  58. void ps_transrotate();
  59. void ps_triangle();
  60. void ps_vector();
  61.  
  62. /* For Encapsulated PostScript Headers:
  63.  
  64.    You will need to supply a pointer to an EPS structure in order to
  65.    get correct information in the EPS header.  If you pass a NULL pointer
  66.    instead you will get default values for the BoundingBox plus no
  67.    info is provided about the users name, document title, and fonts used.
  68.    To fill in the structure you must:
  69.    
  70.    - Determine the extreme dimensions of your plot in points (1/72 inch).
  71.    - Supply the user's name (or NULL)
  72.    - Supply the document's title (or NULL)
  73.    - Set the font pointers to point to character arrays that has the full
  74.      font name (e.g. Helvetica-Bold).  First unused pointed must be set
  75.      to NULL.  E.g., if 4 fonts are used, font[0], font[1], font[2], and
  76.      font[3] must point to strings with the correct name; font[4] = NULL.
  77. */
  78.  
  79. struct EPS {                /* Holds info for eps files */
  80.   int x0, x1, y0, y1;  /* Bounding box values in points */
  81.   char *font[N_FONTS]; /* Pointers to font names used */
  82.   char *name;          /* User name */
  83.   char *title;         /* Plot title */
  84. };
  85.