00001
00002
00003 #ifndef ERRORBAR_H
00004 #define ERRORBAR_H
00005
00006 #include <qcolor.h>
00007 #include <qdom.h>
00008 #include "errorbars.h"
00009
00010 class Errorbar {
00011 public:
00012 Errorbar(QColor c=Qt::blue, int xs=2, int ys=2, Qt::PenStyle st=Qt::SolidLine, int w=1, EType xt=EFLAT, EType yt=EFLAT,
00013 QColor bc=Qt::blue, int bw=1, Qt::PenStyle bst=Qt::SolidLine);
00014 QDomElement saveXML(QDomDocument doc);
00015 void openXML(QDomNode node);
00016 void draw(QPainter *p, QPointArray pa, QPointArray hpa, QPointArray vpa);
00017
00018 QColor Color() { return color; }
00019 void setColor(QColor c) { color=c; }
00020 QColor BaseColor() { return basecolor; }
00021 void setBaseColor(QColor c) { basecolor=c; }
00022 int XSize() { return xsize; }
00023 void setXSize(int s) { xsize=s; }
00024 int YSize() { return ysize; }
00025 void setYSize(int s) { ysize=s; }
00026 Qt::PenStyle Style() { return style; }
00027 void setStyle(Qt::PenStyle p) { style=p; }
00028 Qt::PenStyle BaseStyle() { return basestyle; }
00029 void setBaseStyle(Qt::PenStyle p) { basestyle=p; }
00030 int Width() { return width; }
00031 void setWidth(int w) { width=w; }
00032 int BaseWidth() { return basewidth; }
00033 void setBaseWidth(int w) { basewidth=w; }
00034 EType XType() { return xtype; }
00035 void setXType(EType e) { xtype=e; }
00036 EType YType() { return ytype; }
00037 void setYType(EType e) { ytype=e; }
00038 private:
00039 QColor color;
00040 int xsize, ysize;
00041 Qt::PenStyle style;
00042 int width;
00043 EType xtype, ytype;
00044 QColor basecolor;
00045 int basewidth;
00046 Qt::PenStyle basestyle;
00047 };
00048
00049 #endif //ERRORBAR_H