00001
00002
00003 #ifndef GRAPH2D_H
00004 #define GRAPH2D_H
00005
00006 #include <qstringlist.h>
00007 #include <qtextstream.h>
00008 #include <qprogressdialog.h>
00009 #include <kdebug.h>
00010 #include "Graph.h"
00011 #include "Point.h"
00012
00013 class Graph2D: public Graph
00014 {
00015 public:
00016 Graph2D(QString n="", QString l="",LRange r[2]=0, LSource src=SFUNCTION, PType t=P2D, Style *st=0,
00017 Symbol *sy=0, Point *p=0, int nr=0, bool b=true);
00018 ~Graph2D();
00019 Graph2D *Clone();
00020 LRange Range(int i) { return range[i]; }
00021 void setRange(LRange r[2]) { range[0]=r[0]; range[1]=r[1]; }
00022 Point *Data() { return ptr; }
00023 void setData(Point *data) { ptr = data; }
00024 QStringList Info();
00025 void save(QTextStream *t, QProgressDialog *progress);
00026 void open(QTextStream *t, int version, QProgressDialog *progress);
00027 void saveXML(QDomDocument doc, QDomElement graphtag);
00028 void openXML(QDomNode node);
00029 private:
00030 Point *ptr;
00031 LRange range[2];
00032 };
00033
00034 #endif // GRAPH2D_H