Main Page | Namespace List | Class Hierarchy | Class List | 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         QPixmap Pixmap() { return pixmap; }
00017         void setPixmap(QPixmap pm) { pixmap = pm; }
00018         LRange Range(int i) { return range[i]; }
00019         void setRange(LRange *r) { range[0]=r[0];range[1]=r[1];range[2]=r[2]; }
00020         int width() { return (int)range[0].rMax(); }
00021         int height() { return (int)range[1].rMax(); }
00022         void setWidth(int w) { range[0] = LRange(0,w); }
00023         void setHeight(int h) { range[1] = LRange(0,h); }
00024         QStringList Info();
00025         void save(QTextStream *t);
00026         void open(QTextStream *t, int version, QProgressDialog *progress);
00027 private:
00028         QPixmap pixmap;
00029         LRange *range;
00030 };
00031 
00032 #endif // GRAPHIMAGE_H

Generated on Fri Aug 19 21:34:44 2005 for LabPlot by doxygen 1.3.6