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

Image.h

Go to the documentation of this file.
00001 //LabPlot : Image.h
00002 
00003 #ifndef IMAGE_H
00004 #define IMAGE_H
00005 
00006 #include <qcolor.h>
00007 #include <qpainter.h>
00008 #include <qstringlist.h>
00009 #include "Point.h"
00010 
00011 class Image
00012 {
00013 public:
00014         Image(Point p=0, QString n="", double s=1.0, double a=0);
00015         QStringList Info();
00016         void save(QTextStream *t);
00017         void open(QTextStream *t,int version);
00018         Point getPos() { return pos; }
00019         void setPos(double x, double y) { pos=Point(x,y);}
00020         QString getName() { return name; }
00021         double getScale() { return scale; }
00022         double getAngle() { return angle; }
00023         void draw(QPainter *p, double w, double h);
00024         bool inside(int x, int y, int w, int h);
00025 protected:
00026         Point pos;
00027         QString name;
00028         double scale;
00029         double angle;
00030 };
00031 
00032 #endif //IMAGE_H

Generated on Sun Aug 29 14:56:04 2004 for LabPlot by doxygen 1.3.6