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();
00018         Graph4D *Clone();               // clone this graph
00019         Point4D *Data() { return ptr; }
00020         void setData(Point4D *data) { ptr = data; }
00021         LRange Range(int i) { return range[i]; }
00022         void setRange(LRange r[4]) { range[0]=r[0];range[1]=r[1];range[2]=r[2];range[3]=r[3]; }
00023         bool GType() { return gtype; }
00024         void setGType(bool t) { gtype = t; }
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         QStringList Info();
00030         LRange ErrorDXRange();
00031         LRange ErrorDYRange();
00032 private:
00033         LRange range[4];
00034         bool gtype;                                             // 0 : x-y-dx-dy, 1: x-y-dy1-dy2
00035         Point4D *ptr;
00036 };
00037 
00038 #endif // GRAPH4D_H

Generated on Sat Oct 13 21:55:01 2007 for LabPlot by  doxygen 1.4.4