X-Git-Url: http://git.kpe.io/?p=ctsim.git;a=blobdiff_plain;f=include%2Fezplot.h;h=40e05f47e7abb4c3df34763cfe1eed69e0527335;hp=988c0534e5d02a3d04f7e801c6fda61c8c25405a;hb=12e2c29153a0f55ac23bdeec06b404638672985b;hpb=44ba0e9facc91003bf3ef32876f8b8ac5439c3c1 diff --git a/include/ezplot.h b/include/ezplot.h index 988c053..40e05f4 100644 --- a/include/ezplot.h +++ b/include/ezplot.h @@ -2,14 +2,7 @@ ** This is part of the CTSim program ** Copyright (C) 1983-2000 Kevin Rosenberg ** -** $Id: ezplot.h,v 1.3 2000/05/07 12:46:19 kevin Exp $ -** $Log: ezplot.h,v $ -** Revision 1.3 2000/05/07 12:46:19 kevin -** made c++ compatible -** -** Revision 1.2 2000/04/28 14:14:16 kevin -** *** empty log message *** -** +** $Id: ezplot.h,v 1.7 2000/06/19 19:04:05 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 @@ -24,6 +17,7 @@ ** along with this program; if not, write to the Free Software ** Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA ******************************************************************************/ + /*----------------------------------------------------------------------*/ /* EZPLOT */ /* */ @@ -32,19 +26,13 @@ #ifndef __H_EZPLOT #define __H_EZPLOT -#ifdef __cplusplus -extern "C" { -#endif /* __cplusplus */ - #include #include -#include "kstddef.h" #include -#include "sgp.h" #include -#include "kmath.h" -#include "cio.h" +#include "ctsupport.h" +#include "sgp.h" #define MAXLABEL 40 /* maximum length of axis label */ #define MAXTITLE 40 /* maximum length of a title */ @@ -64,7 +52,7 @@ struct ezp_curve_st { }; #define XBUF_DEF 600 -#define YBUF_DEF XBUF_DEF * (72. / 120.) * 0.75 +#define YBUF_DEF 600 #define PRTMODE_DEF 1 /*----------------------------------------------------------------------*/ @@ -325,23 +313,24 @@ extern struct ezplot_var ez; extern bool ezplot_firstcall; /* set to false on first call to EZSET or EZPLOT */ -/* axis.c */ -int axis_scale(double min, double max, int nint, double *minp, double *maxp, int *nintp); -/* ezplot.c */ -int ezplot(double x[], double y[], int num); +/* ezplot.cpp */ +SGP_ID ezplot(double x[], double y[], int num); void ezinit(void); void ezfree(void); void ezclear(void); -/* ezplot1d.c */ -void ezplot_1d(double *y, int n); -/* ezset.c */ + +/* ezset.cpp */ int ezset(char *command); -/* makefmt.c */ + +/* ezplot1d.cpp */ +void ezplot_1d(double *y, int n); + +/* makefmt.cpp */ void make_numfmt(char *fmtstr, int *fldwid, int *nfrac, double min, double max, int nint); -#ifdef __cplusplus -} -#endif /* __cplusplus */ +/* axis.cpp */ +int axis_scale (double min, double max, int nint, double *minp, double *maxp, int *nintp); + #endif