home *** CD-ROM | disk | FTP | other *** search
/ Fresh Fish 2 / FFMCD02.bin / new / misc / sci / cp / source / cp.h < prev    next >
Encoding:
C/C++ Source or Header  |  1993-12-21  |  3.2 KB  |  187 lines

  1. #include <stdio.h>
  2. #include <string.h>
  3. #include <math.h>
  4. #include <exec/types.h>
  5. #include <exec/memory.h>
  6. #include <exec/lists.h>
  7. #include <dos/dos.h>
  8. #include <dos/dostags.h>
  9. #include <graphics/rastport.h>
  10. #include <graphics/gfxmacros.h>
  11. #include <proto/exec.h>
  12. #include <proto/dos.h>
  13. #include <proto/intuition.h>
  14. #include <proto/gadtools.h>
  15. #include <proto/graphics.h>
  16. #include <proto/layers.h>
  17. #include <proto/utility.h>
  18. #include <proto/asl.h>
  19. #include <proto/diskfont.h>
  20.  
  21. #include "plotgui.h"
  22.  
  23. #define NT_DATA 250;
  24.  
  25. int OpenGTXScreen( void );
  26.  
  27. int OpenGTXWindow(int (* )());
  28.  
  29. BOOL rhp_Args(UBYTE *, UBYTE *);
  30. BOOL rhp(UBYTE *, LONG);
  31.  
  32. struct TextFont *OpencPFont( void );
  33.  
  34. void Death(int);
  35.  
  36. struct Point {
  37.      struct Point *NextPoint;
  38.      float  xval;
  39.      float  yval;
  40. };
  41.  
  42. struct Set {
  43.      struct Node snode;
  44.      struct Point *FirstPoint;
  45.      char  fn[255];
  46.      int    npt;
  47.      float  xmin;
  48.      float  xmax;
  49.      float  ymin;
  50.      float  ymax;
  51. };
  52.  
  53. struct World {
  54.      double xdelta;
  55.      double ydelta;
  56.      double xmax;
  57.      double xmin;
  58.      double ymax;
  59.      double ymin;
  60. };
  61.  
  62. struct CurView {
  63.      double xmax;
  64.      double xmin;
  65.      double ymax;
  66.      double ymin;
  67.      double xdelta;
  68.      double ydelta;
  69.      double xtik;
  70.      double ytik;
  71.      WORD xsubt;
  72.      WORD ysubt;
  73.      BOOL xmode;
  74.      BOOL ymode;
  75.      WORD xprec;
  76.      WORD yprec;
  77.      double xfact;
  78.      double yfact;
  79.      LONG xdec;
  80.      LONG ydec;
  81. };
  82.  
  83. extern struct World wd;
  84. extern struct CurView cv;
  85. extern struct List *SetList;
  86. extern struct TextAttr *cPFont;
  87. extern struct TextFont *fontPtr;
  88. extern UBYTE *path;
  89. extern struct RastPort *rp;
  90. extern LONG thin;
  91. extern LONG points;
  92. extern BOOL grid;
  93. extern BOOL LOGX;
  94. extern BOOL LOGY;
  95. extern BOOL MONO;
  96. extern BOOL sym;
  97. extern BOOL DEFS;
  98. extern BOOL CPANEL;
  99. extern BOOL NOFNAME;
  100. extern WORD WIDTH;
  101. extern WORD HEIGHT;
  102. extern WORD xoff;
  103. extern WORD yoff;
  104. extern LONG Disp;
  105. extern UWORD SWIDTH;
  106. extern UWORD SHEIGHT;
  107. extern WORD GADHEIGHT;
  108. extern WORD GADWIDTH;
  109. extern WORD lastcolor;
  110. extern WORD depth;
  111.  
  112. BOOL AddSet( UBYTE * );
  113.  
  114. BPTR OpenFile( UBYTE * );
  115.  
  116. struct Point *File2Set( BPTR , struct Set * );
  117.  
  118. void FreePoints(struct Point * );
  119.  
  120. void FreeAllSets( void );
  121.  
  122. void DrawView( BOOL );
  123.  
  124. void FindWorld ( void );
  125.  
  126. void DrawSet ( struct Point * );
  127.  
  128. void DrawAllSets ( void );
  129.  
  130. void SymAllSets ( void );
  131.  
  132. void SymSet ( struct Point * );
  133.  
  134. void tik(double vmin, double vmax, double *tick, WORD *nsubt, BOOL *mode, WORD *prec);
  135.  
  136. void DrawColorBox( WORD, WORD, WORD, WORD, WORD);
  137.  
  138. WORD DrawFileNameBoxes( WORD);
  139.  
  140. void Erase( void );
  141.  
  142. void XAxis( void );
  143. void YAxis( void );
  144. void linXAxis( void );
  145. void linYAxis( void );
  146. void logXAxis( void );
  147. void logYAxis( void );
  148.  
  149. BOOL AddNewSet( void );
  150.  
  151. void Zoom( void );
  152.  
  153. void Grid( void );
  154. void logXGrid( void );
  155. void logYGrid( void );
  156. void linXGrid( void );
  157. void linYGrid( void );
  158.  
  159. void E2xTen( UBYTE *s);
  160.  
  161. void Round( double * );
  162.  
  163. void CalcMode ( double, double *);
  164.  
  165. void Identify( WORD, WORD , BOOL);
  166.  
  167. void ticX( double, BOOL);
  168. void ticY( double, BOOL);
  169.  
  170. LONG ScaleX( float );
  171. LONG ScaleY( float );
  172.  
  173. double ZoomX( WORD );
  174. double ZoomY( WORD );
  175.  
  176. LONG linX( float );
  177. LONG linY( float );
  178.  
  179. double linZoomX( WORD );
  180. double linZoomY( WORD );
  181.  
  182. LONG logX( float );
  183. LONG logY( float );
  184.  
  185. double logZoomX( WORD );
  186. double logZoomY( WORD );
  187.