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

WrapperFactory.h

Go to the documentation of this file.
00001 #ifndef WRAPPERFACTORY_H
00002 #define WRAPPERFACTORY_H
00003 
00004 #include <qworkspace.h>
00005 #include "MainWin.h"
00006 #include "Worksheet.h"
00007 #include "Style.h"
00008 #include "Symbol.h"
00009 #include "Label.h"
00010 #include "Legend.h"
00011 #include "Plot2DSimple.h"
00012 #include "Plot2DSurface.h"
00013 #include "Plot3D.h"
00014 #include "PlotQWT3D.h"
00015 #include "PlotPie.h"
00016 #include "PlotPolar.h"
00017 #include "PlotTernary.h"
00018 
00019 #ifdef HAVE_QSA_FAC
00020 #include <qswrapperfactory.h>
00021 #endif
00022 
00023 // wrapper
00024 class PointWrapper : public QObject
00025 {
00026         Q_OBJECT
00027 public:
00028         PointWrapper(Point *v) : v(v) {}
00029 public slots:
00030         void setPoint(double x, double y) { v->setPoint(x,y); }
00031         double X() { return v->X(); }
00032         void setX(double s) { v->setX(s); }
00033         double Y() { return v->Y(); }
00034         void setY(double s) { v->setY(s); }
00035         void setMasked(bool m=true) { v->setMasked(m); }
00036         bool Masked() { return v-Masked(); }
00037 private:
00038         Point *v;
00039 };
00040 
00041 class ArrowWrapper : public QObject
00042 {
00043         Q_OBJECT
00044 public:
00045         ArrowWrapper(Arrow *v) : v(v) {}
00046 public slots:
00047         bool Location() { return v->Location(); }
00048         void setLocation(bool l) { v->setLocation(l); }
00049         bool Enabled() { return v->Enabled(); }
00050         void setEnabled(bool b=true) { v->setEnabled(b); }
00051         double Length() { return v->Length(); }
00052         void setLength(double l) { v->setLength(l); }
00053         double Angle() { return v->Angle(); }
00054         void setAngle(double a) { v->setAngle(a); }
00055         bool Filled() { return v->Filled(); }
00056         void setFilled(bool f=true) { v->setFilled(f); }
00057         QColor fillColor() { return v->fillColor(); }
00058         void setFillColor(QColor c) { v->setFillColor(c); }
00059         void setFillColor(QString c) { v->setFillColor(QColor(c)); }
00060 private:
00061         Arrow *v;
00062 };
00063 
00064 class LineWrapper : public QObject
00065 {
00066         Q_OBJECT
00067 public:
00068         LineWrapper(Line *v) : v(v) {}
00069 public slots:
00070         Point startPoint() { return v->startPoint(); }
00071         Point endPoint() { return v->endPoint(); }
00072         void setStartPoint(double x, double y) { v->setStartPoint(x,y); }
00073         void setEndPoint(double x, double y) { v->setEndPoint(x,y); }
00074         int Width() { return v->Width(); }
00075         void setWidth(int w) { v->setWidth(w); }
00076         QColor Color() { return v->Color(); }
00077         void setColor(QColor c) { v->setColor(c); }
00078         void setColor(QString c) { v->setColor(QColor(c)); }
00079         Arrow* startArrow() { return v->startArrow(); }
00080         Arrow* endArrow() { return v->endArrow(); }
00081         void setStartArrow(Arrow *a) { v->setStartArrow(a); }
00082         void setEndArrow(Arrow *e) {  v->setEndArrow(e); }
00083 private:
00084         Line *v;
00085 };
00086 
00087 class RectWrapper : public QObject
00088 {
00089         Q_OBJECT
00090 public:
00091         RectWrapper(Rect *v) : v(v) {}
00092 public slots:
00093         Point startPoint() { return v->startPoint(); }
00094         Point endPoint() { return v->endPoint(); }
00095         void setStartPoint(double x, double y) { v->setStartPoint(x,y); }
00096         void setEndPoint(double x, double y) { v->setEndPoint(x,y); }
00097         int Width() { return v->Width(); }
00098         void setWidth(int w) { v->setWidth(w); }
00099         QColor Color() { return v->Color(); }
00100         void setColor(QColor c) { v->setColor(c); }
00101         void setColor(QString c) { v->setColor(QColor(c)); }
00102         QColor FillColor() { return v->FillColor(); }
00103         void setFillColor(QColor c) { v->setFillColor(c); }
00104         void setFillColor(QString c) { v->setFillColor(QColor(c)); }
00105         bool isFilled() { return v->isFilled(); }
00106         void setFilled(bool f=true) { v->setFilled(f); }
00107 private:
00108         Rect *v;
00109 };
00110 
00111 class EllipseWrapper : public QObject
00112 {
00113         Q_OBJECT
00114 public:
00115         EllipseWrapper(Ellipse *v) : v(v) {}
00116 public slots:
00117         Point startPoint() { return v->startPoint(); }
00118         Point endPoint() { return v->endPoint(); }
00119         void setStartPoint(double x, double y) { v->setStartPoint(x,y); }
00120         void setEndPoint(double x, double y) { v->setEndPoint(x,y); }
00121         int Width() { return v->Width(); }
00122         void setWidth(int w) { v->setWidth(w); }
00123         QColor Color() { return v->Color(); }
00124         void setColor(QColor c) { v->setColor(c); }
00125         void setColor(QString c) { v->setColor(QColor(c)); }
00126         QColor FillColor() { return v->FillColor(); }
00127         void setFillColor(QColor c) { v->setFillColor(c); }
00128         void setFillColor(QString c) { v->setFillColor(QColor(c)); }
00129         bool isFilled() { return v->isFilled(); }
00130         void setFilled(bool f=true) { v->setFilled(f); }
00131 private:
00132         Ellipse *v;
00133 };
00134 
00135 class LImageWrapper : public QObject
00136 {
00137         Q_OBJECT
00138 public:
00139         LImageWrapper(LImage *v) : v(v) {}
00140 public slots:
00141         Point Pos() { return v->Pos(); }
00142         void setPos(double x, double y) { v->setPos(x,y); }
00143         QString Name() { return v->Name(); }
00144         void setName(QString n) { v->setName(n); }
00145         double Scale() { return v->Scale(); }
00146         void setScale(double s) { v->setScale(s); }
00147         double Angle() { return v->Angle(); }
00148         void setAngle(double a) { v->setAngle(a); }
00149 private:
00150         LImage *v;
00151 };
00152 
00153 class SymbolWrapper : public QObject
00154 {
00155         Q_OBJECT
00156 public:
00157         SymbolWrapper(Symbol *v) : v(v) {}
00158 public slots:
00159         int Type() { return (int) v->Type(); }
00160         void setType(SType t) { v->setType(t); }
00161         void setType(int t) { v->setType((SType)t); }
00162         QColor Color() { return v->Color(); }
00163         void setColor(QColor c) { v->setColor(c); }
00164         void setColor(QString c) { v->setColor(QColor(c)); }
00165         int Size() { return v->Size(); }
00166         void setSize(int s) { v->setSize(s); }
00167         int Fill() { return (int) v->Fill(); }
00168         void setFill(FType f) { v->setFill(f); }
00169         void setFill(int f) { v->setFill((FType) f); }
00170         QColor FillColor() { return v->FillColor(); }
00171         void setFillColor(QColor fc) { v->setFillColor(fc); }
00172         void setFillColor(QString fc) { v->setFillColor(QColor(fc)); }
00173         int Brush() { return v->Brush();}
00174         void setBrush(int b) { v->setBrush(b); }
00175 private:
00176         Symbol *v;
00177 };
00178 
00179 class StyleWrapper : public QObject
00180 {
00181         Q_OBJECT
00182 public:
00183         StyleWrapper(Style *v) : v(v) {}
00184 public slots:
00185         int Type() { return v->Type(); }
00186         void setType(int t) { v->setType(t); }
00187         QColor Color() { return v->Color(); }
00188         void setColor(QString c) { v->setColor(QColor(c)); }
00189         void setColor(QColor c) { v->setColor(c); }
00190         int Width() { return v->Width(); }
00191         void setWidth(int w) { v->setWidth(w); }
00192         int PenStyle() { return v->PenStyle(); }
00193         void setPenStyle(int p) { v->setPenStyle(p); }
00194         int Brush() { return v->Brush(); }
00195         void setBrush (int b) { v->setBrush(b); }
00196         bool isFilled() { return v->isFilled(); }
00197         void setFilled(int f) { v->setFilled(f); }
00198         QColor FillColor() { return v->FillColor(); }
00199         void setFillColor(QString c) { v->setFillColor(QColor(c)); }
00200         void setFillColor(QColor c) { v->setFillColor(c); }
00201         int BoxWidth() { return v->BoxWidth(); }
00202         void setBoxWidth(int b) { v->setBoxWidth(b); }
00203         bool AutoBoxWidth() { return v->AutoBoxWidth(); }
00204         void setAutoBoxWidth(bool b=true) { v->setAutoBoxWidth(b); }
00205 private:
00206         Style *v;
00207 };
00208 
00209 class LRangeWrapper : public QObject
00210 {
00211         Q_OBJECT
00212 public:
00213         LRangeWrapper(LRange *v) : v(v) {}
00214 public slots:
00215         double Diff() { return v->Diff(); }
00216         double rMin() { return v->rMin(); }
00217         double rMax() { return v->rMax(); }
00218         void setMin(double m) { v->setMin(m); }
00219         void setMax(double m) { v->setMax(m); }
00220         void setRange(double rmin=0, double rmax=1) { v->setRange(rmin,rmax); }
00221 private:
00222         LRange *v;
00223 };
00224 
00225 class LabelWrapper : public QObject
00226 {
00227         Q_OBJECT
00228 public:
00229         LabelWrapper(Label *v) : v(v) {}
00230 public slots:
00231         void setPosition(double X, double Y) { v->setPosition(X,Y); }
00232         double X() { return v->X(); }
00233         double Y() { return v->Y(); }
00234         QString Title() { return v->Title(); }          
00235         void setTitle(QString title) { v->setTitle(title); }
00236         void setColor(QColor color) { v->setColor(color); }
00237         void setColor(QString color) { v->setColor(QColor(color)); }
00238         QColor Color() { return v->Color(); }
00239         void setFont(QFont font) { v->setFont(font); }
00240         QFont Font() { return v->Font(); }
00241         void setBoxed(bool b=true) { v->setBoxed(b); }
00242         bool Boxed() { return v->Boxed(); }
00243         double Rotation() { return v->Rotation(); }
00244         void setRotation(double r) { v->setRotation(r); }
00245         bool isTeXLabel() { return v->isTeXLabel(); }
00246         void setTeXLabel(bool t) { v->setTeXLabel(t); }
00247 private:
00248         Label *v;
00249 };
00250 
00251 class LegendWrapper : public QObject
00252 {
00253         Q_OBJECT
00254 public:
00255         LegendWrapper(Legend *v) : v(v) {}
00256 public slots:
00257         void setFont(QFont font) { v->setFont(font); }
00258         QFont Font() { return v->Font(); }
00259         void enable(bool b=true) { v->enable(b); }
00260         bool Enabled() { return v->Enabled(); }
00261         void setPosition(double X, double Y) { v->setPosition(X,Y); }
00262         double X() { return v->X(); }
00263         double Y() { return v->Y(); }
00264         void enableBorder(bool b=true) { v->enableBorder(b); }
00265         bool BorderEnabled() { return v->BorderEnabled(); }
00266         void setColor(QColor c) { v->setColor(c); }
00267         void setColor(QString c) { v->setColor(c); }
00268         QColor Color() { return v->Color(); }
00269         void setTransparent(bool t=true) { v->setTransparent(t); }
00270         bool Transparent() { return v->Transparent(); }
00271         bool getOrientation() { return v->getOrientation(); }
00272         void setOrientation(bool o) { v->setOrientation(o); }
00273         int TicLabelLength() { return v->TicLabelLength(); }
00274         void setTicLabelLength(int l) { v->setTicLabelLength(l); }
00275 private:
00276         Legend *v;
00277 };
00278 
00279 class AxisWrapper : public QObject
00280 {
00281         Q_OBJECT
00282 public:
00283         AxisWrapper(Axis *v) : v(v) {}
00284 public slots:
00285         void Enable(bool b=true) { v->Enable(b); }      
00286         bool Enabled() { return v->Enabled(); }
00287         void setScale(TScale s) { v->setScale(s); }
00288         void setScale(int s) { v->setScale((TScale) s); }
00289         int Scale() { return (int) v->Scale(); }
00290         void setLabel(Label *label) { v->setLabel(label); }
00291         void setScaling(double s) { v->setScaling(s); }
00292         double Scaling() { return v->Scaling(); }
00293         void setShift(double s) { v->setShift(s); }
00294         double Shift() { return v->Shift(); }
00295         Label *getLabel() { return v->getLabel(); }
00296         Label *label() { return v->getLabel(); }
00297 
00298         bool tickType() { return v->tickType(); }
00299         void setTickType(bool t) { v->setTickType(t); } 
00300         bool tickLabelEnabled() { return v->tickLabelEnabled(); }
00301         void enableTickLabel(bool e=true) { v->enableTickLabel(e); } 
00302         void setTickLabelRotation(double r) { v->setTickLabelRotation(r); }
00303         double TickLabelRotation() { return v->TickLabelRotation(); }
00304         void setTickLabelPrefix(QString p) {v->setTickLabelPrefix(p); }
00305         QString TickLabelPrefix() { return v->TickLabelPrefix(); }
00306         void setTickLabelSuffix(QString s) { v->setTickLabelSuffix(s); }
00307         QString TickLabelSuffix() { return v->TickLabelSuffix(); }
00308         void setTickLabelFont(QFont a) { v->setTickLabelFont(a); }
00309         QFont TickLabelFont() { return v->TickLabelFont(); }
00310         void setTickColor(QColor col) { v->setTickColor(col); }
00311         void setTickColor(QString col) { v->setTickColor(QColor(col)); }
00312         QColor TickColor() { return v->TickColor(); }
00313         void setTickLabelColor(QColor col) { v->setTickLabelColor(col); }
00314         void setTickLabelColor(QString col) { v->setTickLabelColor(QColor(col)); }
00315         QColor TickLabelColor() { return v->TickLabelColor(); }
00316         void setTickLabelFormat(TFormat tmp) { v->setTickLabelFormat(tmp); }
00317         void setTickLabelFormat(int tmp) { v->setTickLabelFormat((TFormat) tmp); }
00318         int TickLabelFormat() { return  (int) v->TickLabelFormat(); }
00319         void setDateTimeFormat(QString f) { v->setDateTimeFormat(f); }
00320         QString DateTimeFormat() { return v->DateTimeFormat(); }
00321         void setTickLabelPrecision(int tmp) { v->setTickLabelPrecision(tmp); }
00322         int TickLabelPrecision() { return v->TickLabelPrecision(); }
00323         void setTickLabelPosition(int g) { v->setTickLabelPosition(g); }
00324         int TickLabelPosition() { return v->TickLabelPosition(); }
00325         
00326         void setMajorTicks(int t) { v->setMajorTicks(t); }
00327         double MajorTicks() { return v->MajorTicks(); }
00328         void setMinorTicks(int t) { v->setMinorTicks(t); }
00329         double MinorTicks() { return v->MinorTicks(); }
00330         void enableMajorTicks(bool b=true) { v->enableMajorTicks(b); }
00331         void enableMinorTicks(bool b=true) { v->enableMinorTicks(b); }
00332         bool MajorTicksEnabled() { return v->MajorTicksEnabled(); }
00333         bool MinorTicksEnabled() { return v->MinorTicksEnabled(); }
00334         void setTickPos(int tp) { v->setTickPos(tp); }
00335         int TickPos() { return v->TickPos(); }
00336         void setMajorTickWidth(int w) { v->setMajorTickWidth(w); }
00337         int majorTickWidth() { return v->majorTickWidth(); }
00338         void setMinorTickWidth(int w) { v->setMinorTickWidth(w); }
00339         int minorTickWidth() { return v->minorTickWidth(); }
00340         double majorTickLength() { return v->majorTickLength(); }
00341         void setMajorTickLength(double l) { v->setMajorTickLength(l); }
00342         double minorTickLength() { return v->minorTickLength(); }
00343         void setMinorTickLength(double l) { v->setMinorTickLength(l); }
00344         
00345         bool BorderEnabled() { return v->BorderEnabled(); }
00346         void enableBorder(bool b=true) { v->enableBorder(b); }
00347         void setBorderColor(QColor col) { v->setBorderColor(col); }
00348         void setBorderColor(QString col) { v->setBorderColor(QColor(col)); }
00349         QColor BorderColor() { return v->BorderColor(); }
00350         void setBorderWidth(int b) { v->setBorderWidth(b); }
00351         int borderWidth() { return v->borderWidth(); }
00352 
00353         bool MajorGridEnabled() { return v->MajorGridEnabled(); }
00354         void enableMajorGrid(bool b=true) { v->enableMajorGrid(b); }
00355         bool MinorGridEnabled() { return v->MinorGridEnabled(); }
00356         void enableMinorGrid(bool b=true) { v->enableMinorGrid(b); }
00357         void setMajorGridColor(QColor c) { v->setMajorGridColor(c); }
00358         void setMajorGridColor(QString c) { v->setMajorGridColor(QColor(c)); }
00359         QColor majorGridColor() { return v->majorGridColor(); }
00360         void setMinorGridColor(QColor c) { v->setMinorGridColor(c); }
00361         void setMinorGridColor(QString c) { v->setMinorGridColor(QColor(c)); }
00362         QColor minorGridColor() { return v->minorGridColor(); }
00363         void setMajorGridType(Qt::PenStyle t) { setMajorGridType(t); }
00364         Qt::PenStyle MajorGridType() { return v->MajorGridType(); }
00365         void setMinorGridType(Qt::PenStyle t) { setMinorGridType(t); }
00366         Qt::PenStyle MinorGridType() { return v->MinorGridType(); }
00367         void setMajorGridWidth(int w) { v->setMajorGridWidth(w); }
00368         int majorGridWidth() { return v->majorGridWidth(); }
00369         void setMinorGridWidth(int w) { v->setMinorGridWidth(w); }
00370         int minorGridWidth() { return v->minorGridWidth(); }
00371 private:
00372         Axis *v;
00373 };
00374 
00375 class Plot2DSimpleWrapper : public QObject
00376 {
00377         Q_OBJECT
00378 public:
00379         Plot2DSimpleWrapper(Plot2DSimple *v) : v(v) {}
00380 public slots:
00381         // from Plot.h
00382         Legend* getLegend() { return v->getLegend(); }
00383         Label* Title() { return v->Title(); }
00384         Axis *getAxis(int i) { return v->getAxis(i); }
00385         void setRange(LRange *r, int i) { v->setRange(r,i); }
00386         LRange* Range(int i) { return v->Range(i); }
00387         void setActRange(LRange *r, int i) { v->setActRange(r,i); } 
00388         LRange* ActRange(int i) { return v->ActRange(i); }
00389         void setRegionMin(double min) { v->setRegionMin(min); }
00390         void setRegionMax(double max) { v->setRegionMax(max); }
00391         void setRegion(double min, double max) { v->setRegion(min,max); }
00392         double RegionMin() {return v->RegionMin(); }
00393         double RegionMax() {return v->RegionMax(); }
00394         LRange *Region() { return v->Region(); }
00395         bool regionEnabled() { return v->regionEnabled(); }
00396         void enableRegion(bool e=true) { v->enableRegion(e); }
00397         void setRegionEnabled(bool e=true) { v->enableRegion(e); }
00398         
00399         bool marksEnabled() { return v->marksEnabled(); }               // marks
00400         void enableMarks(bool m=true) { v->enableMarks(m); }
00401         void setMarksEnabled(bool m=true) { v->enableMarks(m); }
00402         LRange *markX() { return v->markX(); }
00403         void setMarkX(LRange *l) { v->setMarkX(l); }
00404         LRange *markY() { return v->markY(); }
00405         void setMarkY(LRange *l) { v->setMarkY(l); }
00406         bool Fill() { return v->Fill(); }                                                       // fill
00407         void setFill(bool f=true) { v->setFill(f); }
00408         void setFillType(int t) { v->setFillType(t); }
00409         int  FillType() { return v->FillType(); }
00410         int FillG1() { return v->FillG1(); }
00411         void setFillG1(int f) { v->setFillG1(f); }
00412         int FillG2() { return v->FillG2(); }
00413         void setFillG2(int f) { v->setFillG1(f); }
00414         QBrush FillBrush() { return v->FillBrush(); }
00415         void setFillBrush(QBrush b) { v->setFillBrush(b); }
00416         
00417         void setPosition(double x, double y) { v->setPosition(x,y);}
00418         Point Position() { return v->Position(); }
00419         void setSize(double x, double y) { v->setSize(x,y);}
00420         Point Size() { return v->Size(); }
00421         void enabledAspectRatio(bool a=true) { v->enableAspectRatio(a); }
00422         bool AspectRatioEnabled() { return v->AspectRatioEnabled(); }
00423         void autoScaleX() {v->autoScaleX();}
00424         void autoScaleY() {v->autoScaleY();}
00425         void autoScaleZ() {v->autoScaleZ();}
00426         void autoScaleAll() {v->autoScaleAll();}
00427         LRange *XRange() { return v->Range(0); }
00428         LRange *YRange() { return v->Range(1); }
00429         LRange *ZRange() { return v->Range(2); }
00430         void setXRange(double x1, double x2) {v->setXRange(x1,x2); }
00431         void setYRange(double y1, double y2) {v->setYRange(y1,y2); }
00432         void setZRange(double z1, double z2) {v->setZRange(z1,z2); }
00433         QColor Background() { return v->Background();}
00434         QColor graphBackground() { return v->graphBackground();}
00435         void setBackground(QColor c) { v->setBackground(c);}
00436         void setBackground(QString c) { v->setBackground(QColor(c));}
00437         void setGraphBackground(QColor c) { v->setGraphBackground(c);}
00438         void setGraphBackground(QString c) { v->setGraphBackground(QColor(c));}
00439         
00440         bool Transparent() { return v->Transparent(); }
00441         void setTransparent(bool t) { v->setTransparent(t); }
00442         int ClipOffset() { return v->ClipOffset(); }
00443         void setClipOffset(int c) { v->setClipOffset(c);}
00444         double Baseline() { return v->Baseline(); }
00445         void setBaseline(double b) { v->setBaseline(b); }
00446         double XBaseline() { return v->XBaseline(); }
00447         void setXBaseline(double b) { v->setXBaseline(b); }
00448         bool BaselineEnabled() { return v->BaselineEnabled(); }
00449         bool XBaselineEnabled() { return v->XBaselineEnabled(); }
00450         void enableBaseline(bool e=true) { v->enableBaseline(e); }
00451         void setBaselineEnabled(bool e=true) { v->enableBaseline(e); }
00452         void enableXBaseline(bool e=true) { v->enableXBaseline(e); }
00453         void setXBaselineEnabled(bool e=true) { v->enableXBaseline(e); }
00454 private:
00455         Plot2DSimple *v;
00456 };
00457 
00458 class Plot2DSurfaceWrapper : public QObject
00459 {
00460         Q_OBJECT
00461 public:
00462         Plot2DSurfaceWrapper(Plot2DSurface *v) : v(v) {}
00463 public slots:
00464         // from Plot.h
00465         Legend* getLegend() { return v->getLegend(); }
00466         Label* Title() { return v->Title(); }
00467         Axis *getAxis(int i) { return v->getAxis(i); }
00468         void setRange(LRange *r, int i) { v->setRange(r,i); }
00469         LRange* Range(int i) { return v->Range(i); }
00470         void setActRange(LRange *r, int i) { v->setActRange(r,i); } 
00471         LRange* ActRange(int i) { return v->ActRange(i); }
00472         void setRegionMin(double min) { v->setRegionMin(min); }
00473         void setRegionMax(double max) { v->setRegionMax(max); }
00474         void setRegion(double min, double max) { v->setRegion(min,max); }
00475         double RegionMin() {return v->RegionMin(); }
00476         double RegionMax() {return v->RegionMax(); }
00477         LRange *Region() { return v->Region(); }
00478         bool regionEnabled() { return v->regionEnabled(); }
00479         void enableRegion(bool e=true) { v->enableRegion(e); }
00480         void setRegionEnabled(bool e=true) { v->enableRegion(e); }
00481         
00482         bool marksEnabled() { return v->marksEnabled(); }
00483         void enableMarks(bool m=true) { v->enableMarks(m); }
00484         void setMarksEnabled(bool m=true) { v->enableMarks(m); }
00485         LRange *markX() { return v->markX(); }
00486         void setMarkX(LRange *l) { v->setMarkX(l); }
00487         LRange *markY() { return v->markY(); }
00488         void setMarkY(LRange *l) { v->setMarkY(l); }
00489         
00490         void setPosition(double x, double y) { v->setPosition(x,y);}
00491         Point Position() { return v->Position(); }
00492         void setSize(double x, double y) { v->setSize(x,y);}
00493         Point Size() { return v->Size(); }
00494         void enabledAspectRatio(bool a=true) { v->enableAspectRatio(a); }
00495         bool AspectRatioEnabled() { return v->AspectRatioEnabled(); }
00496         void autoScaleX() {v->autoScaleX();}
00497         void autoScaleY() {v->autoScaleY();}
00498         void autoScaleZ() {v->autoScaleZ();}
00499         void autoScaleAll() {v->autoScaleAll();}
00500         LRange *XRange() { return v->Range(0); }
00501         LRange *YRange() { return v->Range(1); }
00502         LRange *ZRange() { return v->Range(2); }
00503         void setXRange(double x1, double x2) {v->setXRange(x1,x2); }
00504         void setYRange(double y1, double y2) {v->setYRange(y1,y2); }
00505         void setZRange(double z1, double z2) {v->setZRange(z1,z2); }
00506         QColor Background() { return v->Background();}
00507         QColor graphBackground() { return v->graphBackground();}
00508         void setBackground(QColor c) { v->setBackground(c);}
00509         void setBackground(QString c) { v->setBackground(QColor(c));}
00510         void setGraphBackground(QColor c) { v->setGraphBackground(c);}
00511         void setGraphBackground(QString c) { v->setGraphBackground(QColor(c));}
00512         
00513         void enableXBaseline(bool e=true) { v->enableXBaseline(e); }
00514         void setXBaselineEnabled(bool e=true) { v->enableXBaseline(e); }
00515         bool Transparent() { return v->Transparent(); }
00516         void setTransparent(bool t) { v->setTransparent(t); }
00517         int ClipOffset() { return v->ClipOffset(); }
00518         void setClipOffset(int c) { v->setClipOffset(c);}
00519         double Baseline() { return v->Baseline(); }
00520         void setBaseline(double b) { v->setBaseline(b); }
00521         double XBaseline() { return v->XBaseline(); }
00522         void setXBaseline(double b) { v->setXBaseline(b); }
00523         bool BaselineEnabled() { return v->BaselineEnabled(); }
00524         bool XBaselineEnabled() { return v->XBaselineEnabled(); }
00525         void enableBaseline(bool e=true) { v->enableBaseline(e); }
00526         void setBaselineEnabled(bool e=true) { v->enableBaseline(e); }
00527 private:
00528         Plot2DSurface *v;
00529 };
00530 
00531 class Plot3DWrapper : public QObject
00532 {
00533         Q_OBJECT
00534 public:
00535         Plot3DWrapper(Plot3D *v) : v(v) {}
00536 public slots:
00537         // from Plot.h
00538         Legend* getLegend() { return v->getLegend(); }
00539         Label* Title() { return v->Title(); }
00540         Axis *getAxis(int i) { return v->getAxis(i); }
00541         void setRange(LRange *r, int i) { v->setRange(r,i); }
00542         LRange* Range(int i) { return v->Range(i); }
00543         void setActRange(LRange *r, int i) { v->setActRange(r,i); } 
00544         LRange* ActRange(int i) { return v->ActRange(i); }
00545         void setRegionMin(double min) { v->setRegionMin(min); }
00546         void setRegionMax(double max) { v->setRegionMax(max); }
00547         void setRegion(double min, double max) { v->setRegion(min,max); }
00548         double RegionMin() {return v->RegionMin(); }
00549         double RegionMax() {return v->RegionMax(); }
00550         LRange *Region() { return v->Region(); }
00551         bool regionEnabled() { return v->regionEnabled(); }
00552         void enableRegion(bool e=true) { v->enableRegion(e); }
00553         void setRegionEnabled(bool e=true) { v->enableRegion(e); }
00554         
00555         bool marksEnabled() { return v->marksEnabled(); }
00556         void enableMarks(bool m=true) { v->enableMarks(m); }
00557         void setMarksEnabled(bool m=true) { v->enableMarks(m); }
00558         LRange *markX() { return v->markX(); }
00559         void setMarkX(LRange *l) { v->setMarkX(l); }
00560         LRange *markY() { return v->markY(); }
00561         void setMarkY(LRange *l) { v->setMarkY(l); }
00562         
00563         void setPosition(double x, double y) { v->setPosition(x,y);}
00564         Point Position() { return v->Position(); }
00565         void setSize(double x, double y) { v->setSize(x,y);}
00566         Point Size() { return v->Size(); }
00567         void enabledAspectRatio(bool a=true) { v->enableAspectRatio(a); }
00568         bool AspectRatioEnabled() { return v->AspectRatioEnabled(); }
00569         void autoScaleX() {v->autoScaleX();}
00570         void autoScaleY() {v->autoScaleY();}
00571         void autoScaleZ() {v->autoScaleZ();}
00572         void autoScaleAll() {v->autoScaleAll();}
00573         LRange *XRange() { return v->Range(0); }
00574         LRange *YRange() { return v->Range(1); }
00575         LRange *ZRange() { return v->Range(2); }
00576         void setXRange(double x1, double x2) {v->setXRange(x1,x2); }
00577         void setYRange(double y1, double y2) {v->setYRange(y1,y2); }
00578         void setZRange(double z1, double z2) {v->setZRange(z1,z2); }
00579         QColor Background() { return v->Background();}
00580         QColor graphBackground() { return v->graphBackground();}
00581         void setBackground(QColor c) { v->setBackground(c);}
00582         void setBackground(QString c) { v->setBackground(QColor(c));}
00583         void setGraphBackground(QColor c) { v->setGraphBackground(c);}
00584         void setGraphBackground(QString c) { v->setGraphBackground(QColor(c));}
00585         
00586         bool Transparent() { return v->Transparent(); }
00587         void setTransparent(bool t) { v->setTransparent(t); }
00588         int ClipOffset() { return v->ClipOffset(); }
00589         void setClipOffset(int c) { v->setClipOffset(c);}
00590         double Baseline() { return v->Baseline(); }
00591         void setBaseline(double b) { v->setBaseline(b); }
00592         double XBaseline() { return v->XBaseline(); }
00593         void setXBaseline(double b) { v->setXBaseline(b); }
00594         bool BaselineEnabled() { return v->BaselineEnabled(); }
00595         bool XBaselineEnabled() { return v->XBaselineEnabled(); }
00596         void enableBaseline(bool e=true) { v->enableBaseline(e); }
00597         void setBaselineEnabled(bool e=true) { v->enableBaseline(e); }
00598         void enableXBaseline(bool e=true) { v->enableXBaseline(e); }
00599         void setXBaselineEnabled(bool e=true) { v->enableXBaseline(e); }
00600 private:
00601         Plot3D *v;
00602 };
00603 
00604 class PlotQWT3DWrapper : public QObject
00605 {
00606         Q_OBJECT
00607 public:
00608         PlotQWT3DWrapper(PlotQWT3D *v) : v(v) {}
00609 public slots:
00610         // from Plot.h
00611         Legend* getLegend() { return v->getLegend(); }
00612         Label* Title() { return v->Title(); }
00613         Axis *getAxis(int i) { return v->getAxis(i); }
00614         void setRange(LRange *r, int i) { v->setRange(r,i); }
00615         LRange* Range(int i) { return v->Range(i); }
00616         void setActRange(LRange *r, int i) { v->setActRange(r,i); } 
00617         LRange* ActRange(int i) { return v->ActRange(i); }
00618         void setRegionMin(double min) { v->setRegionMin(min); }
00619         void setRegionMax(double max) { v->setRegionMax(max); }
00620         void setRegion(double min, double max) { v->setRegion(min,max); }
00621         double RegionMin() {return v->RegionMin(); }
00622         double RegionMax() {return v->RegionMax(); }
00623         LRange *Region() { return v->Region(); }
00624         bool regionEnabled() { return v->regionEnabled(); }
00625         void enableRegion(bool e=true) { v->enableRegion(e); }
00626         void setRegionEnabled(bool e=true) { v->enableRegion(e); }
00627         
00628         bool marksEnabled() { return v->marksEnabled(); }
00629         void enableMarks(bool m=true) { v->enableMarks(m); }
00630         void setMarksEnabled(bool m=true) { v->enableMarks(m); }
00631         LRange *markX() { return v->markX(); }
00632         void setMarkX(LRange *l) { v->setMarkX(l); }
00633         LRange *markY() { return v->markY(); }
00634         void setMarkY(LRange *l) { v->setMarkY(l); }
00635         
00636         void setPosition(double x, double y) { v->setPosition(x,y);}
00637         Point Position() { return v->Position(); }
00638         void setSize(double x, double y) { v->setSize(x,y);}
00639         Point Size() { return v->Size(); }
00640         void enabledAspectRatio(bool a=true) { v->enableAspectRatio(a); }
00641         bool AspectRatioEnabled() { return v->AspectRatioEnabled(); }
00642         void autoScaleX() {v->autoScaleX();}
00643         void autoScaleY() {v->autoScaleY();}
00644         void autoScaleZ() {v->autoScaleZ();}
00645         void autoScaleAll() {v->autoScaleAll();}
00646         LRange *XRange() { return v->Range(0); }
00647         LRange *YRange() { return v->Range(1); }
00648         LRange *ZRange() { return v->Range(2); }
00649         void setXRange(double x1, double x2) {v->setXRange(x1,x2); }
00650         void setYRange(double y1, double y2) {v->setYRange(y1,y2); }
00651         void setZRange(double z1, double z2) {v->setZRange(z1,z2); }
00652         QColor Background() { return v->Background();}
00653         QColor graphBackground() { return v->graphBackground();}
00654         void setBackground(QColor c) { v->setBackground(c);}
00655         void setBackground(QString c) { v->setBackground(QColor(c));}
00656         void setGraphBackground(QColor c) { v->setGraphBackground(c);}
00657         void setGraphBackground(QString c) { v->setGraphBackground(QColor(c));}
00658         
00659         bool Transparent() { return v->Transparent(); }
00660         void setTransparent(bool t) { v->setTransparent(t); }
00661         int ClipOffset() { return v->ClipOffset(); }
00662         void setClipOffset(int c) { v->setClipOffset(c);}
00663         double Baseline() { return v->Baseline(); }
00664         void setBaseline(double b) { v->setBaseline(b); }
00665         double XBaseline() { return v->XBaseline(); }
00666         void setXBaseline(double b) { v->setXBaseline(b); }
00667         bool BaselineEnabled() { return v->BaselineEnabled(); }
00668         bool XBaselineEnabled() { return v->XBaselineEnabled(); }
00669         void enableBaseline(bool e=true) { v->enableBaseline(e); }
00670         void setBaselineEnabled(bool e=true) { v->enableBaseline(e); }
00671         void enableXBaseline(bool e=true) { v->enableXBaseline(e); }
00672         void setXBaselineEnabled(bool e=true) { v->enableXBaseline(e); }
00673 private:
00674         PlotQWT3D *v;
00675 };
00676 
00677 class PlotPieWrapper : public QObject
00678 {
00679         Q_OBJECT
00680 public:
00681         PlotPieWrapper(PlotPie *v) : v(v) {}
00682 public slots:
00683         // from Plot.h
00684         Legend* getLegend() { return v->getLegend(); }
00685         Label* Title() { return v->Title(); }
00686         Axis *getAxis(int i) { return v->getAxis(i); }
00687         void setRange(LRange *r, int i) { v->setRange(r,i); }
00688         LRange* Range(int i) { return v->Range(i); }
00689         void setActRange(LRange *r, int i) { v->setActRange(r,i); } 
00690         LRange* ActRange(int i) { return v->ActRange(i); }
00691         void setRegionMin(double min) { v->setRegionMin(min); }
00692         void setRegionMax(double max) { v->setRegionMax(max); }
00693         void setRegion(double min, double max) { v->setRegion(min,max); }
00694         double RegionMin() {return v->RegionMin(); }
00695         double RegionMax() {return v->RegionMax(); }
00696         LRange *Region() { return v->Region(); }
00697         bool regionEnabled() { return v->regionEnabled(); }
00698         void enableRegion(bool e=true) { v->enableRegion(e); }
00699         void setRegionEnabled(bool e=true) { v->enableRegion(e); }
00700         
00701         bool marksEnabled() { return v->marksEnabled(); }
00702         void enableMarks(bool m=true) { v->enableMarks(m); }
00703         void setMarksEnabled(bool m=true) { v->enableMarks(m); }
00704         LRange *markX() { return v->markX(); }
00705         void setMarkX(LRange *l) { v->setMarkX(l); }
00706         LRange *markY() { return v->markY(); }
00707         void setMarkY(LRange *l) { v->setMarkY(l); }
00708         
00709         void setPosition(double x, double y) { v->setPosition(x,y);}
00710         Point Position() { return v->Position(); }
00711         void setSize(double x, double y) { v->setSize(x,y);}
00712         Point Size() { return v->Size(); }
00713         void enabledAspectRatio(bool a=true) { v->enableAspectRatio(a); }
00714         bool AspectRatioEnabled() { return v->AspectRatioEnabled(); }
00715         void autoScaleX() {v->autoScaleX();}
00716         void autoScaleY() {v->autoScaleY();}
00717         void autoScaleZ() {v->autoScaleZ();}
00718         void autoScaleAll() {v->autoScaleAll();}
00719         LRange *XRange() { return v->Range(0); }
00720         LRange *YRange() { return v->Range(1); }
00721         LRange *ZRange() { return v->Range(2); }
00722         void setXRange(double x1, double x2) {v->setXRange(x1,x2); }
00723         void setYRange(double y1, double y2) {v->setYRange(y1,y2); }
00724         void setZRange(double z1, double z2) {v->setZRange(z1,z2); }
00725         QColor Background() { return v->Background();}
00726         QColor graphBackground() { return v->graphBackground();}
00727         void setBackground(QColor c) { v->setBackground(c);}
00728         void setBackground(QString c) { v->setBackground(QColor(c));}
00729         void setGraphBackground(QColor c) { v->setGraphBackground(c);}
00730         void setGraphBackground(QString c) { v->setGraphBackground(QColor(c));}
00731         
00732         bool Transparent() { return v->Transparent(); }
00733         void setTransparent(bool t) { v->setTransparent(t); }
00734         int ClipOffset() { return v->ClipOffset(); }
00735         void setClipOffset(int c) { v->setClipOffset(c);}
00736         double Baseline() { return v->Baseline(); }
00737         void setBaseline(double b) { v->setBaseline(b); }
00738         double XBaseline() { return v->XBaseline(); }
00739         void setXBaseline(double b) { v->setXBaseline(b); }
00740         bool BaselineEnabled() { return v->BaselineEnabled(); }
00741         bool XBaselineEnabled() { return v->XBaselineEnabled(); }
00742         void enableBaseline(bool e=true) { v->enableBaseline(e); }
00743         void setBaselineEnabled(bool e=true) { v->enableBaseline(e); }
00744         void enableXBaseline(bool e=true) { v->enableXBaseline(e); }
00745         void setXBaselineEnabled(bool e=true) { v->enableXBaseline(e); }
00746 private:
00747         PlotPie *v;
00748 };
00749 
00750 class PlotPolarWrapper : public QObject
00751 {
00752         Q_OBJECT
00753 public:
00754         PlotPolarWrapper(PlotPolar *v) : v(v) {}
00755 public slots:
00756         // from Plot.h
00757         Legend* getLegend() { return v->getLegend(); }
00758         Label* Title() { return v->Title(); }
00759         Axis *getAxis(int i) { return v->getAxis(i); }
00760         void setRange(LRange *r, int i) { v->setRange(r,i); }
00761         LRange* Range(int i) { return v->Range(i); }
00762         void setActRange(LRange *r, int i) { v->setActRange(r,i); } 
00763         LRange* ActRange(int i) { return v->ActRange(i); }
00764         void setRegionMin(double min) { v->setRegionMin(min); }
00765         void setRegionMax(double max) { v->setRegionMax(max); }
00766         void setRegion(double min, double max) { v->setRegion(min,max); }
00767         double RegionMin() {return v->RegionMin(); }
00768         double RegionMax() {return v->RegionMax(); }
00769         LRange *Region() { return v->Region(); }
00770         bool regionEnabled() { return v->regionEnabled(); }
00771         void enableRegion(bool e=true) { v->enableRegion(e); }
00772         void setRegionEnabled(bool e=true) { v->enableRegion(e); }
00773         
00774         bool marksEnabled() { return v->marksEnabled(); }
00775         void enableMarks(bool m=true) { v->enableMarks(m); }
00776         void setMarksEnabled(bool m=true) { v->enableMarks(m); }
00777         LRange *markX() { return v->markX(); }
00778         void setMarkX(LRange *l) { v->setMarkX(l); }
00779         LRange *markY() { return v->markY(); }
00780         void setMarkY(LRange *l) { v->setMarkY(l); }
00781         
00782         void setPosition(double x, double y) { v->setPosition(x,y);}
00783         Point Position() { return v->Position(); }
00784         void setSize(double x, double y) { v->setSize(x,y);}
00785         Point Size() { return v->Size(); }
00786         void enabledAspectRatio(bool a=true) { v->enableAspectRatio(a); }
00787         bool AspectRatioEnabled() { return v->AspectRatioEnabled(); }
00788         void autoScaleX() {v->autoScaleX();}
00789         void autoScaleY() {v->autoScaleY();}
00790         void autoScaleZ() {v->autoScaleZ();}
00791         void autoScaleAll() {v->autoScaleAll();}
00792         LRange *XRange() { return v->Range(0); }
00793         LRange *YRange() { return v->Range(1); }
00794         LRange *ZRange() { return v->Range(2); }
00795         void setXRange(double x1, double x2) {v->setXRange(x1,x2); }
00796         void setYRange(double y1, double y2) {v->setYRange(y1,y2); }
00797         void setZRange(double z1, double z2) {v->setZRange(z1,z2); }
00798         QColor Background() { return v->Background();}
00799         QColor graphBackground() { return v->graphBackground();}
00800         void setBackground(QColor c) { v->setBackground(c);}
00801         void setBackground(QString c) { v->setBackground(QColor(c));}
00802         void setGraphBackground(QColor c) { v->setGraphBackground(c);}
00803         void setGraphBackground(QString c) { v->setGraphBackground(QColor(c));}
00804         
00805         bool Transparent() { return v->Transparent(); }
00806         void setTransparent(bool t) { v->setTransparent(t); }
00807         int ClipOffset() { return v->ClipOffset(); }
00808         void setClipOffset(int c) { v->setClipOffset(c);}
00809         double Baseline() { return v->Baseline(); }
00810         void setBaseline(double b) { v->setBaseline(b); }
00811         double XBaseline() { return v->XBaseline(); }
00812         void setXBaseline(double b) { v->setXBaseline(b); }
00813         bool BaselineEnabled() { return v->BaselineEnabled(); }
00814         bool XBaselineEnabled() { return v->XBaselineEnabled(); }
00815         void enableBaseline(bool e=true) { v->enableBaseline(e); }
00816         void setBaselineEnabled(bool e=true) { v->enableBaseline(e); }
00817         void enableXBaseline(bool e=true) { v->enableXBaseline(e); }
00818         void setXBaselineEnabled(bool e=true) { v->enableXBaseline(e); }
00819 private:
00820         PlotPolar *v;
00821 };
00822 
00823 class PlotTernaryWrapper : public QObject
00824 {
00825         Q_OBJECT
00826 public:
00827         PlotTernaryWrapper(PlotTernary *v) : v(v) {}
00828 public slots:
00829         // from Plot.h
00830         Legend* getLegend() { return v->getLegend(); }
00831         Label* Title() { return v->Title(); }
00832         Axis *getAxis(int i) { return v->getAxis(i); }
00833         void setRange(LRange *r, int i) { v->setRange(r,i); }
00834         LRange* Range(int i) { return v->Range(i); }
00835         void setActRange(LRange *r, int i) { v->setActRange(r,i); } 
00836         LRange* ActRange(int i) { return v->ActRange(i); }
00837         void setRegionMin(double min) { v->setRegionMin(min); }
00838         void setRegionMax(double max) { v->setRegionMax(max); }
00839         void setRegion(double min, double max) { v->setRegion(min,max); }
00840         double RegionMin() {return v->RegionMin(); }
00841         double RegionMax() {return v->RegionMax(); }
00842         LRange *Region() { return v->Region(); }
00843         bool regionEnabled() { return v->regionEnabled(); }
00844         void enableRegion(bool e=true) { v->enableRegion(e); }
00845         void setRegionEnabled(bool e=true) { v->enableRegion(e); }
00846         
00847         bool marksEnabled() { return v->marksEnabled(); }
00848         void enableMarks(bool m=true) { v->enableMarks(m); }
00849         void setMarksEnabled(bool m=true) { v->enableMarks(m); }
00850         LRange *markX() { return v->markX(); }
00851         void setMarkX(LRange *l) { v->setMarkX(l); }
00852         LRange *markY() { return v->markY(); }
00853         void setMarkY(LRange *l) { v->setMarkY(l); }
00854         
00855         void setPosition(double x, double y) { v->setPosition(x,y);}
00856         Point Position() { return v->Position(); }
00857         void setSize(double x, double y) { v->setSize(x,y);}
00858         Point Size() { return v->Size(); }
00859         void enabledAspectRatio(bool a=true) { v->enableAspectRatio(a); }
00860         bool AspectRatioEnabled() { return v->AspectRatioEnabled(); }
00861         void autoScaleX() {v->autoScaleX();}
00862         void autoScaleY() {v->autoScaleY();}
00863         void autoScaleZ() {v->autoScaleZ();}
00864         void autoScaleAll() {v->autoScaleAll();}
00865         LRange *XRange() { return v->Range(0); }
00866         LRange *YRange() { return v->Range(1); }
00867         LRange *ZRange() { return v->Range(2); }
00868         void setXRange(double x1, double x2) {v->setXRange(x1,x2); }
00869         void setYRange(double y1, double y2) {v->setYRange(y1,y2); }
00870         void setZRange(double z1, double z2) {v->setZRange(z1,z2); }
00871         QColor Background() { return v->Background();}
00872         QColor graphBackground() { return v->graphBackground();}
00873         void setBackground(QColor c) { v->setBackground(c);}
00874         void setBackground(QString c) { v->setBackground(QColor(c));}
00875         void setGraphBackground(QColor c) { v->setGraphBackground(c);}
00876         void setGraphBackground(QString c) { v->setGraphBackground(QColor(c));}
00877         
00878         bool Transparent() { return v->Transparent(); }
00879         void setTransparent(bool t) { v->setTransparent(t); }
00880         int ClipOffset() { return v->ClipOffset(); }
00881         void setClipOffset(int c) { v->setClipOffset(c);}
00882         double Baseline() { return v->Baseline(); }
00883         void setBaseline(double b) { v->setBaseline(b); }
00884         double XBaseline() { return v->XBaseline(); }
00885         void setXBaseline(double b) { v->setXBaseline(b); }
00886         bool BaselineEnabled() { return v->BaselineEnabled(); }
00887         bool XBaselineEnabled() { return v->XBaselineEnabled(); }
00888         void enableBaseline(bool e=true) { v->enableBaseline(e); }
00889         void setBaselineEnabled(bool e=true) { v->enableBaseline(e); }
00890         void enableXBaseline(bool e=true) { v->enableXBaseline(e); }
00891         void setXBaselineEnabled(bool e=true) { v->enableXBaseline(e); }
00892 private:
00893         PlotTernary *v;
00894 };
00895 
00896 
00897 // factory
00898 #ifdef HAVE_QSA_FAC
00899 class WrapperFactory : public QSWrapperFactory
00900 {
00901 public:
00902     WrapperFactory(MainWin *mw, QWorkspace *ws);
00903     QObject *create( const QString &className,void *ptr);
00904 private:
00905         MainWin *mw;
00906         QWorkspace *ws;
00907 };
00908 #endif
00909 
00910 #endif //WRAPPERFACTORY_H

Generated on Sun Apr 2 02:05:09 2006 for LabPlot by  doxygen 1.4.4