00001
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 double Scale() { return scale; }
00022 double Angle() { 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 //LIMAGE_H