X-Git-Url: http://git.kpe.io/?p=ctsim.git;a=blobdiff_plain;f=include%2Fezplot.h;h=31291bd617872d2b6c7c77313515fdb08306ff6c;hp=1ad8b5246c8f59b9e10606378aab4ef1db76e75b;hb=dc034c9d0b7d9c3874a324a4c2c189a02945adc8;hpb=3147cd44cff6132e51eac1a179c1fc3d405faacc diff --git a/include/ezplot.h b/include/ezplot.h index 1ad8b52..31291bd 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.14 2000/09/04 09:06:46 kevin Exp $ +** $Id: ezplot.h,v 1.18 2000/12/16 06:12:47 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 @@ -27,10 +27,10 @@ #ifndef __H_EZPLOT #define __H_EZPLOT -#include +#include +#include +#include #include -#include -#include #include "ctsupport.h" #include "sgp.h" @@ -44,9 +44,9 @@ class EZPlotCurve { int m_iSymbol; int m_iSymbolFreq; int m_iColor; - string m_sLegend; + std::string m_sLegend; - EZPlotCurve (const double* x, const double* y, int n, int color, int linestyle, int symbol, int sumbolFreq, const string& legend); + EZPlotCurve (const double* x, const double* y, int n, int color, int linestyle, int symbol, int sumbolFreq, const std::string& legend); ~EZPlotCurve(); }; @@ -111,15 +111,14 @@ class EZPlotCurve { *---------------------------------------------------------------------------*/ #include -using namespace std; -typedef vector::iterator EZPlotCurveIterator; -typedef vector::const_iterator EZPlotCurveConstIterator; +typedef std::vector::iterator EZPlotCurveIterator; +typedef std::vector::const_iterator EZPlotCurveConstIterator; class SGP; class EZPlot { private: - vector m_vecCurves; + std::vector m_vecCurves; // Colors int clr_axis; // color of all axis lines @@ -133,13 +132,13 @@ class EZPlot { double o_xporigin, o_yporigin; // origin of plot frame in NDC double o_xlength, o_ylength; // length of plot frame in NDC - string c_xlabel; // label for x axis - string c_ylabel; // label for y axis - string c_title; // title to print above graph - string c_legend;; // current legend specified + std::string c_xlabel; // label for x axis + std::string c_ylabel; // label for y axis + std::string c_title; // title to print above graph + std::string c_legend;; // current legend specified int o_linestyle, o_color; // style to use for curves all subsequent curves to EZPLOT - bool o_xaxis, o_yaxis; // Specifies where axis & labels are drawn + int o_xaxis, o_yaxis; // Specifies where axis & labels are drawn bool o_grid; // Flag to draw a grid at major ticks bool o_box; // Flag to draw a box around the graph @@ -208,7 +207,7 @@ class EZPlot { void clearCurves (); bool ezcmd (char *comm); - int do_cmd(int lx); + bool do_cmd(int lx); void bad_option(char *opt); void initPlotSettings();