home *** CD-ROM | disk | FTP | other *** search
/ Club Amiga de Montreal - CAM / CAM_CD_1.iso / files / 344b.lha / plplot_v2.6 / unix / dispatch.c < prev    next >
Encoding:
C/C++ Source or Header  |  1990-01-27  |  6.3 KB  |  248 lines

  1. #include "plplot.h"
  2. #include "dispatch.h"
  3.  
  4. void xtesetup PLARGS((PLFLT xdpi, PLFLT ydpi, PLINT xsize, PLINT ysize));
  5. void xteselect PLARGS((PLINT or, char *file));
  6. void xteinit PLARGS((void));
  7. void xteline PLARGS((PLINT x1, PLINT y1, PLINT x2, PLINT y2));
  8. void xteclear PLARGS((void));
  9. void xtepage PLARGS((void));
  10. void xtetidy PLARGS((void));
  11. void xtecolor PLARGS((PLINT color));
  12. void xtetext PLARGS((void));
  13. void xtegraph PLARGS((void));
  14. void xtewidth PLARGS((PLINT width));
  15.  
  16. void tektsetup PLARGS((PLFLT xdpi, PLFLT ydpi, PLINT xsize, PLINT ysize));
  17. void tekfsetup PLARGS((PLFLT xdpi, PLFLT ydpi, PLINT xsize, PLINT ysize));
  18. void tektselect PLARGS((PLINT or, char *file));
  19. void tekfselect PLARGS((PLINT or, char *file));
  20. void tektinit PLARGS((void));
  21. void tekfinit PLARGS((void));
  22. void tekline PLARGS((PLINT x1, PLINT y1, PLINT x2, PLINT y2));
  23. void tektclear PLARGS((void));
  24. void tekfclear PLARGS((void));
  25. void tekpage PLARGS((void));
  26. void tekttidy PLARGS((void));
  27. void tekftidy PLARGS((void));
  28. void tekcolor PLARGS((PLINT color));
  29. void tektext PLARGS((void));
  30. void tekgraph PLARGS((void));
  31. void tekwidth PLARGS((PLINT width));
  32.  
  33. void dgsetup PLARGS((PLFLT xdpi, PLFLT ydpi, PLINT xsize, PLINT ysize));
  34. void dgselect PLARGS((PLINT or, char *file));
  35. void dginit PLARGS((void));
  36. void dgline PLARGS((PLINT x1, PLINT y1, PLINT x2, PLINT y2));
  37. void dgclear PLARGS((void));
  38. void dgpage PLARGS((void));
  39. void dgtidy PLARGS((void));
  40. void dgcolor PLARGS((PLINT color));
  41. void dgtext PLARGS((void));
  42. void dggraph PLARGS((void));
  43. void dgwidth PLARGS((PLINT width));
  44.  
  45. void hp7470setup PLARGS((PLFLT xdpi, PLFLT ydpi, PLINT xsize, PLINT ysize));
  46. void hp7470select PLARGS((PLINT or, char *file));
  47. void hp7470init PLARGS((void));
  48. void hp7470line PLARGS((PLINT x1, PLINT y1, PLINT x2, PLINT y2));
  49. void hp7470clear PLARGS((void));
  50. void hp7470page PLARGS((void));
  51. void hp7470tidy PLARGS((void));
  52. void hp7470color PLARGS((PLINT color));
  53. void hp7470text PLARGS((void));
  54. void hp7470graph PLARGS((void));
  55. void hp7470width PLARGS((PLINT width));
  56.  
  57. void hp7580setup PLARGS((PLFLT xdpi, PLFLT ydpi, PLINT xsize, PLINT ysize));
  58. void hp7580select PLARGS((PLINT or, char *file));
  59. void hp7580init PLARGS((void));
  60. void hp7580line PLARGS((PLINT x1, PLINT y1, PLINT x2, PLINT y2));
  61. void hp7580clear PLARGS((void));
  62. void hp7580page PLARGS((void));
  63. void hp7580tidy PLARGS((void));
  64. void hp7580color PLARGS((PLINT color));
  65. void hp7580text PLARGS((void));
  66. void hp7580graph PLARGS((void));
  67. void hp7580width PLARGS((PLINT width));
  68.  
  69. void impsetup PLARGS((PLFLT xdpi, PLFLT ydpi, PLINT xsize, PLINT ysize));
  70. void impselect PLARGS((PLINT or, char *file));
  71. void impinit PLARGS((void));
  72. void impline PLARGS((PLINT x1, PLINT y1, PLINT x2, PLINT y2));
  73. void impclear PLARGS((void));
  74. void imppage PLARGS((void));
  75. void imptidy PLARGS((void));
  76. void impcolor PLARGS((PLINT color));
  77. void imptext PLARGS((void));
  78. void impgraph PLARGS((void));
  79. void impwidth PLARGS((PLINT width));
  80.  
  81. void jetsetup PLARGS((PLFLT xdpi, PLFLT ydpi, PLINT xsize, PLINT ysize));
  82. void jetselect PLARGS((PLINT or, char *file));
  83. void jetinit PLARGS((void));
  84. void jetline PLARGS((PLINT x1, PLINT y1, PLINT x2, PLINT y2));
  85. void jetclear PLARGS((void));
  86. void jetpage PLARGS((void));
  87. void jettidy PLARGS((void));
  88. void jetcolor PLARGS((PLINT color));
  89. void jettext PLARGS((void));
  90. void jetgraph PLARGS((void));
  91. void jetwidth PLARGS((PLINT width));
  92.  
  93. void pssetup PLARGS((PLFLT xdpi, PLFLT ydpi, PLINT xsize, PLINT ysize));
  94. void psselect PLARGS((PLINT or, char *file));
  95. void psinit PLARGS((void));
  96. void psline PLARGS((PLINT x1, PLINT y1, PLINT x2, PLINT y2));
  97. void psclear PLARGS((void));
  98. void pspage PLARGS((void));
  99. void pstidy PLARGS((void));
  100. void pscolor PLARGS((PLINT color));
  101. void pstext PLARGS((void));
  102. void psgraph PLARGS((void));
  103. void pswidth PLARGS((PLINT width));
  104.  
  105. DISPATCH_TABLE plDispatchTable[] = {
  106.    /* Xterm routines */
  107.    {
  108.       /* This string appears in the device menu list. */
  109.       "Xterm Window",
  110.       /* Page Setup routine */
  111.       xtesetup,
  112.       /* Orientation and file name selection */
  113.       xteselect,
  114.       /* Device initialization function pointer. */
  115.       xteinit,
  116.       /* Function to draw line between two points */
  117.       xteline,
  118.       /* Clear screen (or eject page) function. */
  119.       xteclear,
  120.       /* New page set up. */
  121.       xtepage,
  122.       /* Tidy up device (flush buffers, close file, etc.) */
  123.       xtetidy,
  124.       /* Function to change pen color. */
  125.       xtecolor,
  126.       /* Switch to text mode. */
  127.       xtetext,
  128.       /* Switch to graphics mode. */
  129.       xtegraph,
  130.       /* Set pen width */
  131.       xtewidth
  132.    },
  133.    {
  134.       "Tektronix Terminal",
  135.       tektsetup,
  136.       tektselect,
  137.       tektinit,
  138.       tekline,
  139.       tektclear,
  140.       tekpage,
  141.       tekttidy,
  142.       tekcolor,
  143.       tektext,
  144.       tekgraph,
  145.       tekwidth
  146.    },
  147.    {
  148.       "DG300 Terminal",
  149.       dgsetup,
  150.       dgselect,
  151.       dginit,
  152.       dgline,
  153.       dgclear,
  154.       dgpage,
  155.       dgtidy,
  156.       dgcolor,
  157.       dgtext,
  158.       dggraph,
  159.       dgwidth
  160.    },
  161.    {
  162.       "HP 7470 Plotter File (HPGL Cartridge, Small Plotter)",
  163.       hp7470setup,
  164.       hp7470select,
  165.       hp7470init,
  166.       hp7470line,
  167.       hp7470clear,
  168.       hp7470page,
  169.       hp7470tidy,
  170.       hp7470color,
  171.       hp7470text,
  172.       hp7470graph,
  173.       hp7470width
  174.    },
  175.    {
  176.       "HP 7580 Plotter File (Large Plotter)",
  177.       hp7580setup,
  178.       hp7580select,
  179.       hp7580init,
  180.       hp7580line,
  181.       hp7580clear,
  182.       hp7580page,
  183.       hp7580tidy,
  184.       hp7580color,
  185.       hp7580text,
  186.       hp7580graph,
  187.       hp7580width
  188.    },
  189.    {
  190.       "Impress File",
  191.       impsetup,
  192.       impselect,
  193.       impinit,
  194.       impline,
  195.       impclear,
  196.       imppage,
  197.       imptidy,
  198.       impcolor,
  199.       imptext,
  200.       impgraph,
  201.       impwidth
  202.    },
  203.    {
  204.       "Tektronix File",
  205.       tekfsetup,
  206.       tekfselect,
  207.       tekfinit,
  208.       tekline,
  209.       tekfclear,
  210.       tekpage,
  211.       tekftidy,
  212.       tekcolor,
  213.       tektext,
  214.       tekgraph,
  215.       tekwidth
  216.    },
  217.    {
  218.       "LaserJet II Bitmap File (150 dpi)",
  219.       jetsetup,
  220.       jetselect,
  221.       jetinit,
  222.       jetline,
  223.       jetclear,
  224.       jetpage,
  225.       jettidy,
  226.       jetcolor,
  227.       jettext,
  228.       jetgraph,
  229.       jetwidth
  230.    },
  231.    {
  232.       "PostScript File",
  233.       pssetup,
  234.       psselect,
  235.       psinit,
  236.       psline,
  237.       psclear,
  238.       pspage,
  239.       pstidy,
  240.       pscolor,
  241.       pstext,
  242.       psgraph,
  243.       pswidth
  244.    }
  245. };
  246.  
  247. int npldrivers = (sizeof(plDispatchTable)/sizeof(struct dispatch_table));
  248.