Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members | File Members

Graph2D.h

Go to the documentation of this file.
00001 //LabPlot : Graph2D.h
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 *Clone();               // clone this graph
00019         LRange Range(int i) { return range[i]; }
00020         void setRange(LRange r[2]) { range[0]=r[0]; range[1]=r[1]; }
00021         Point *Data() { return ptr; }
00022         void setData(Point *data) { ptr = data; }
00023         QStringList Info();     
00024         void save(QTextStream *t, QProgressDialog *progress);
00025         void open(QTextStream *t, int version, QProgressDialog *progress);
00026         void saveXML(QDomDocument doc, QDomElement graphtag);
00027         void openXML(QDomNode node);
00028 private:
00029         Point *ptr;
00030         LRange range[2];
00031 };
00032 
00033 #endif // GRAPH2D_H

Generated on Sun Apr 2 02:05:09 2006 for LabPlot by  doxygen 1.4.4