home *** CD-ROM | disk | FTP | other *** search
/ The Pier Shareware 6 / The_Pier_Shareware_Number_6_(The_Pier_Exchange)_(1995).iso / 035 / splot122.zip / SPLOT.H < prev    next >
C/C++ Source or Header  |  1994-09-16  |  4KB  |  182 lines

  1. /* splot.h */
  2.  
  3. #ifndef SPLOT_H 
  4. #define SPLOT_H
  5.  
  6. #define VERSION 1.0.2
  7.  
  8. /* general defines */
  9. #define OFF 0
  10. #define ON 1
  11. #define TRUE 1
  12. #define FALSE 0
  13.  
  14. /* define line styles */
  15. #define SOLID 0
  16. #define DASHED 1.0,0.5
  17. #define DOTTED 0.2,0.2
  18. #define DOTDASH 1.0,0.5,0.2,0.5
  19.  
  20. /* page size in cm */
  21. #define XLENGTH 20.00
  22. #define YLENGTH 26.00
  23.  
  24. /* define graphics draw op */
  25. #define REP 0
  26. #define AND 0x08
  27. #define OR 0x10
  28. #define XOR 0x18
  29.  
  30. /* define colours */
  31. #define INVIS -1
  32. #define BLACK 0 
  33. #define BLUE 1
  34. #define GREEN 2
  35. #define CYAN 3
  36. #define RED 4
  37. #define MAGENTA 5
  38. #define BROWN 6
  39. #define WHITE 7
  40.  
  41. /* define the axes lables */
  42. #define LOWER 0
  43. #define BOTTOM 0
  44. #define UPPER 2
  45. #define TOP 2
  46. #define LEFT 1
  47. #define RIGHT 3
  48. #define XAXES 4
  49. #define YAXES 5
  50. #define XYAXES 6
  51.  
  52. #define CENTER 4
  53. #define XCENTER 1.7e308
  54. #define YCENTER 1.7e308
  55.  
  56. /* define axes types */
  57. #define LINEAR 0x11
  58. #define LOGX 0x12
  59. #define LOGY 0x21
  60. #define LOGLOG 0x22
  61. #define INVX 0x14
  62. #define INVY 0x41
  63. #define INVINV 0x44
  64. #define INVXLOGY 0x24
  65. #define LOGXINVY 0x42
  66.  
  67. /* define line cap styles */
  68. #define BUTTCAP 0
  69. #define ROUNDCAP 1
  70. #define PROJCAP 2
  71.  
  72. /* define line join styles */
  73. #define MITERJOIN 3
  74. #define MITREJOIN 3
  75. #define ROUNDJOIN 4
  76. #define BEVELJOIN 5
  77.  
  78. /* define fill rules */
  79. #define NONZWIND 0
  80. #define EVENODD 1
  81.  
  82. /* define devices */
  83. #define DISPLAY 0
  84. #define LASERJET 2
  85. #define PAINTJET 3
  86. #define PCXFILE 4 
  87. #define HP500 5
  88. #define HP500C 6
  89. #define OS2PMPRINT 7
  90. #define EPSFILE 8
  91.  
  92. /* define which vals for errorbars */
  93. #define XVALS 0
  94. #define YVALS 1
  95.  
  96. /* define default font info */
  97. #define CELL_WIDTH        0.7       /* default font width */
  98. #define CELL_ASPECT       2.0       /* default font height/width ratio */
  99. #define CELL_SPACING      2.0
  100.  
  101. #define NFONTS        7             /* number of available fonts */
  102. #define NORMALTEXT    0             /* for use with array of font pointers */
  103. #define ROMAN_S       1
  104. #define ROMAN_C       2
  105. #define GREEK_S       3
  106. #define GREEK_C       4
  107. #define ITALIC_C      5
  108. #define SYMBOL_S      6
  109. #define SIMPLEX       0
  110. #define COMPLEX       1
  111.  
  112. /* define symbol names */
  113. #define OCIRCLE 0
  114. #define OSQUARE 1
  115. #define OTRIANGLE 2
  116. #define ODIAMOND 3
  117. #define OSTAR 4
  118. #define OARROW 5
  119. #define PLUS 6
  120. #define CROSS 7
  121. #define MULT 8
  122. #define CIRCLE 9
  123. #define SQUARE 10
  124. #define TRIANGLE 11
  125. #define DIAMOND 12
  126. #define STAR 13
  127. #define ARROW 14
  128.  
  129. /* define plot types */
  130. #define LINES 0
  131. #define SYMBOLS 1
  132. #define SYM_LINES 2
  133.  
  134. /* define set options */
  135. #define AXESCLIP        0 
  136. #define AXESTYPE        1 
  137. #define CURSYMBOL       2 
  138. #define FILLRULE        3 
  139. #define FLATNESS        4 
  140. #define FONT            5 
  141. #define FONTASPECT      6 
  142. #define FONTDIR         7 
  143. #define FONTMULT        8 
  144. #define FONTSPACE       9 
  145. #define FONTWIDTH       10
  146. #define LABELMARG       11
  147. #define LINECAP         12
  148. #define LINECOLOUR      13
  149. #define LINEJOIN        14
  150. #define LINESTYLE       15
  151. #define LINEWIDTH       16
  152. #define MITERLIMIT      17
  153. #define PAGEROT         18
  154. #define PATTOFF         19
  155. #define PLOTTYPE        20
  156. #define SCALEALL        21
  157. #define SCRIPTSCALE     22
  158. #define SCRIPTSHIFT     23
  159. #define SYMMULT         24
  160. #define TICKLMARG       25
  161. #define TICKLENGTH      26
  162. #define XMULT           27
  163. #define XRANGE          28
  164. #define XSHIFT          29
  165. #define YMULT           30
  166. #define YRANGE          31
  167. #define YSHIFT          32
  168.  
  169.  
  170. #define LINECOLOR       13
  171. #define MITRELIMIT      17
  172. #define PAGE_ROT        18
  173.  
  174. /* aliases for old commands */
  175. #define tabdata readdata
  176. #define hputs text
  177.  
  178. #endif
  179.  
  180. /* splot.h */
  181.  
  182.