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

Arrow.h

Go to the documentation of this file.
00001 //LabPlot : Arrow.h
00002 
00003 #ifndef ARROW_H
00004 #define ARROW_H
00005 
00006 #include <qcolor.h>
00007 #include <qpainter.h>
00008 #include <qstringlist.h>
00009 #include "Point.h"
00010 
00011 class Arrow
00012 {
00013 public:
00014         Arrow(bool l=0,bool e=false,double le=0.1,double a=30,bool f=true,
00015                 QColor fc=QColor("blue"));
00016         QStringList Info();
00017         void save(QTextStream *t);
00018         void open(QTextStream *t,int version);
00019         void setLocation(bool l) { location=l; }
00020         bool Enabled() { return enabled; }
00021         double Length() { return length; }
00022         double Angle() { return angle; }
00023         bool Filled() { return filled; }
00024         QColor fillColor() { return fillcolor; }
00025         void draw(QPainter *p, Point start, Point end, int X, int Y);
00026         
00027 protected:
00028         bool location;          // 0-start, 1-end
00029         bool enabled;
00030         double length;  // 0..1
00031         double angle;
00032         bool filled;
00033         QColor fillcolor;
00034 };
00035 
00036 #endif //ARROW_H

Generated on Sun Nov 28 22:31:16 2004 for LabPlot by doxygen 1.3.6