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

GraphM.h

Go to the documentation of this file.
00001 //LabPlot : GraphM.h
00002 
00003 #ifndef GRAPHM_H
00004 #define GRAPHM_H
00005 
00006 #include <qtextstream.h>
00007 #include <qprogressdialog.h>
00008 #include "Graph.h"
00009 #include "LRange.h"
00010 
00011 class GraphM: public Graph
00012 {
00013 public:
00014         GraphM(QString n="", QString l="", LRange r[3]=0, LSource src=SFUNCTION, PType t=PSURFACE, Style *st=0, 
00015                 Symbol *sy=0, double *a=0, int dimx=0, int dimy=0, bool s=true);
00016         GraphM *Clone();                // clone this graph
00017         double *Data() { return array; }
00018         void setData(double *data) { array = data; }
00019         QPixmap Pixmap();
00020         void setPixmap(QPixmap pm);
00021         int width() { return (int)range[0].rMax(); }
00022         int height() { return (int)range[1].rMax(); }
00023         void setWidth(int w) { range[0] = LRange(0,w); }
00024         void setHeight(int h) { range[1] = LRange(0,h); }
00025         LRange Range(int i) { return range[i]; }
00026         void setRange(LRange r[3]) { range[0]=r[0];range[1]=r[1];range[2]=r[2]; }
00027         void setZRange(LRange *r) { range[2]=*r; }      // only set z range (EditDialog)
00028         int NX() { return nx; }
00029         int NY() { return ny; }
00030         void setNumber(int NX,int NY) {nx=NX, ny=NY; }
00031         QStringList Info();
00032         void save(QTextStream *t, QProgressDialog *progress);
00033         void open(QTextStream *t, int version, QProgressDialog *progress);
00034         void saveXML(QDomDocument doc, QDomElement graphtag);
00035         void openXML(QDomNode node);
00036 private:
00037         LRange range[3];
00038         int nx, ny;             //dimension
00039         double *array;
00040 };
00041 
00042 #endif // GRAPHM_H

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