Main Page | Namespace List | Class Hierarchy | Class List | 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 "Point.h"
00010 
00011 class LImage
00012 {
00013 public:
00014         LImage(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 Pos() { return pos; }
00019         void setPos(double x, double y) { pos=Point(x,y);}
00020         QString Name() { return name; }
00021         void setName(QString n) { name=n; }
00022         double Scale() { return scale; }
00023         void setScale(double s) { scale=s; }
00024         double Angle() { return angle; }
00025         void setAngle(double a) { angle=a; }
00026         void draw(QPainter *p, double w, double h);
00027         bool inside(int x, int y, int w, int h);
00028 protected:
00029         Point pos;
00030         QString name;
00031         double scale;
00032         double angle;
00033 };
00034 
00035 #endif //LIMAGE_H

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