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

GraphIMAGE.h

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

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