X-Git-Url: http://git.kpe.io/?p=ctsim.git;a=blobdiff_plain;f=include%2Fezplot.h;h=f6dbf77af635c943fa2f2fd18aa5110fb6fe7393;hp=a7559da265de0bfc90bc32a5cb27117581a1d4a1;hb=9b2bb510160bdb56f04847f5b55ab61dd8a47976;hpb=5ec5449357eaae253d6b1026621262480e2efa63 diff --git a/include/ezplot.h b/include/ezplot.h index a7559da..f6dbf77 100644 --- a/include/ezplot.h +++ b/include/ezplot.h @@ -7,7 +7,7 @@ ** This is part of the CTSim program ** Copyright (C) 1983-2000 Kevin Rosenberg ** -** $Id: ezplot.h,v 1.21 2000/12/25 21:54:26 kevin Exp $ +** $Id: ezplot.h,v 1.23 2000/12/29 15:45:06 kevin Exp $ ** ** This program is free software; you can redistribute it and/or modify ** it under the terms of the GNU General Public License (version 2) as @@ -32,7 +32,8 @@ #include #include #include "ctsupport.h" -#include "sgp.h" +#include "sgp.h" +#include "pol.h" class EZPlotCurve { @@ -318,7 +319,8 @@ private: void make_numfmt(char *fmtstr, int *fldwid, int *nfrac, double min, double max, int nint); int axis_scale (double min, double max, int nint, double *minp, double *maxp, int *nintp); - SGP& rSGP; + SGP* m_pSGP; + POL m_pol; void clearCurves (); @@ -327,10 +329,8 @@ private: void bad_option(char *opt); void initPlotSettings(); - static void initKeywords (); - - static bool ezset_initialized; - + void initKeywords (); + double convertWorldToNDC_X (double x) { return xgn_min + (x - xgw_min) * m_xWorldScale; } @@ -338,7 +338,7 @@ private: { return ygn_min + (y - ygw_min) * m_yWorldScale; } public: - EZPlot (SGP& sgp); + EZPlot (); ~EZPlot (); bool ezset (const std::string& command); @@ -350,7 +350,7 @@ private: void addCurve (const double* y, int n); void addCurve (const float* y, int n); - void plot (); + void plot (SGP* pSGP); }; #endif