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

LImage.h

Go to the documentation of this file.
00001 //LabPlot : LImage.h
00002 
00003 #ifndef LIMAGE_H
00004 #define LIMAGE_H
00005 
00006 #include <qcolor.h>
00007 #include <qpainter.h>
00008 #include <qstringlist.h>
00009 #include <qdom.h>
00010 #include "Point.h"
00011 
00012 class LImage
00013 {
00014 public:
00015         LImage(Point p=0, QString n="", double s=1.0, double a=0);
00016         QStringList Info();
00017         void save(QTextStream *t);
00018         void open(QTextStream *t,int version);
00019         QDomElement saveXML(QDomDocument doc);
00020         void openXML(QDomNode node);
00021         Point Pos() { return pos; }
00022         void setPos(double x, double y) { pos=Point(x,y);}
00023         QString Name() { return name; }
00024         void setName(QString n) { name=n; }
00025         double Scale() { return scale; }
00026         void setScale(double s) { scale=s; }
00027         double Angle() { return angle; }
00028         void setAngle(double a) { angle=a; }
00029         void draw(QPainter *p, double w, double h);
00030         bool inside(int x, int y, int w, int h);
00031 protected:
00032         Point pos;
00033         QString name;
00034         double scale;
00035         double angle;
00036 };
00037 
00038 #endif //LIMAGE_H

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