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