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