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 #include "defs.h"
00011 
00012 class GraphIMAGE: public Graph
00013 {
00014 public:
00015         GraphIMAGE(QString n="", QString l="", LRange r[3]=0, LSource src=SFUNCTION, PType t=PSURFACE, Style *st=0, 
00016                 Symbol *sy=0, QPixmap pm=0, int dimx=0, int dimy=0, bool s=TRUE);
00017         QPixmap Pixmap() { return pixmap; }
00018         void setPixmap(QPixmap pm) { pixmap = pm; }
00019         LRange Range(int i) { return range[i]; }
00020         void setRange(LRange *r) { range[0]=r[0];range[1]=r[1];range[2]=r[2]; }
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         QStringList Info();
00026         void save(QTextStream *t);
00027         void open(QTextStream *t, int version, QProgressDialog *progress);
00028 private:
00029         QPixmap pixmap;
00030         LRange *range;
00031 };
00032 
00033 #endif // GRAPHIMAGE_H

Generated on Fri Mar 25 19:47:03 2005 for LabPlot by doxygen 1.3.6