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

Graph4D.h

Go to the documentation of this file.
00001 //LabPlot : Graph4D.h
00002 
00003 #ifndef GRAPH4D_H
00004 #define GRAPH4D_H
00005 
00006 #include <qtextstream.h>
00007 #include <qprogressdialog.h>
00008 #include "Graph.h"
00009 #include "LRange.h"
00010 #include "Point4D.h"
00011 
00012 class Graph4D: public Graph
00013 {
00014 public:
00015         Graph4D(QString n=QString(""), QString l=QString(""), LRange r[4]=0, LSource src=SFUNCTION, PType t=P2D, 
00016                 Style *st=0, Symbol *sy=0, Point4D *p=0, int nr=0, bool ty=0, bool s=true);
00017         Graph4D *Clone();               // clone this graph
00018         Point4D *Data() { return ptr; }
00019         void setData(Point4D *data) { ptr = data; }
00020         LRange Range(int i) { return range[i]; }
00021         void setRange(LRange r[4]) { range[0]=r[0];range[1]=r[1];range[2]=r[2];range[3]=r[3]; }
00022         bool GType() { return gtype; }
00023         void setGType(bool t) { gtype = t; }
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         QStringList Info();
00029         LRange ErrorDXRange();
00030         LRange ErrorDYRange();
00031 private:
00032         LRange range[4];
00033         bool gtype;                                             // 0 : x-y-dx-dy, 1: x-y-dy1-dy2
00034         Point4D *ptr;
00035 };
00036 
00037 #endif // GRAPH4D_H

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