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
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 double Y() { return v->Y(); }
00033 void setMasked(bool m=true) { v->setMasked(m); }
00034 bool Masked() { return v-Masked(); }
00035 private:
00036 Point *v;
00037 };
00038
00039 class ArrowWrapper : public QObject
00040 {
00041 Q_OBJECT
00042 public:
00043 ArrowWrapper(Arrow *v) : v(v) {}
00044 public slots:
00045 bool Location() { return v->Location(); }
00046 void setLocation(bool l) { v->setLocation(l); }
00047 bool Enabled() { return v->Enabled(); }
00048 void setEnabled(bool b=true) { v->setEnabled(b); }
00049 double Length() { return v->Length(); }
00050 void setLength(double l) { v->setLength(l); }
00051 double Angle() { return v->Angle(); }
00052 void setAngle(double a) { v->setAngle(a); }
00053 bool Filled() { return v->Filled(); }
00054 void setFilled(bool f=true) { v->setFilled(f); }
00055 QColor fillColor() { return v->fillColor(); }
00056 void setFillColor(QColor c) { v->setFillColor(c); }
00057 void setFillColor(QString c) { v->setFillColor(QColor(c)); }
00058 private:
00059 Arrow *v;
00060 };
00061
00062 class LineWrapper : public QObject
00063 {
00064 Q_OBJECT
00065 public:
00066 LineWrapper(Line *v) : v(v) {}
00067 public slots:
00068 Point startPoint() { return v->startPoint(); }
00069 Point endPoint() { return v->endPoint(); }
00070 void setStartPoint(double x, double y) { v->setStartPoint(x,y); }
00071 void setEndPoint(double x, double y) { v->setEndPoint(x,y); }
00072 int Width() { return v->Width(); }
00073 void setWidth(int w) { v->setWidth(w); }
00074 QColor Color() { return v->Color(); }
00075 void setColor(QColor c) { v->setColor(c); }
00076 void setColor(QString c) { v->setColor(QColor(c)); }
00077 Arrow* startArrow() { return v->startArrow(); }
00078 Arrow* endArrow() { return v->endArrow(); }
00079 void setStartArrow(Arrow *a) { v->setStartArrow(a); }
00080 void setEndArrow(Arrow *e) { v->setEndArrow(e); }
00081 private:
00082 Line *v;
00083 };
00084
00085 class RectWrapper : public QObject
00086 {
00087 Q_OBJECT
00088 public:
00089 RectWrapper(Rect *v) : v(v) {}
00090 public slots:
00091 Point startPoint() { return v->startPoint(); }
00092 Point endPoint() { return v->endPoint(); }
00093 void setStartPoint(double x, double y) { v->setStartPoint(x,y); }
00094 void setEndPoint(double x, double y) { v->setEndPoint(x,y); }
00095 int Width() { return v->Width(); }
00096 void setWidth(int w) { v->setWidth(w); }
00097 QColor Color() { return v->Color(); }
00098 void setColor(QColor c) { v->setColor(c); }
00099 void setColor(QString c) { v->setColor(QColor(c)); }
00100 QColor FillColor() { return v->FillColor(); }
00101 void setFillColor(QColor c) { v->setFillColor(c); }
00102 void setFillColor(QString c) { v->setFillColor(QColor(c)); }
00103 bool isFilled() { return v->isFilled(); }
00104 void setFilled(bool f=true) { v->setFilled(f); }
00105 private:
00106 Rect *v;
00107 };
00108
00109 class EllipseWrapper : public QObject
00110 {
00111 Q_OBJECT
00112 public:
00113 EllipseWrapper(Ellipse *v) : v(v) {}
00114 public slots:
00115 Point startPoint() { return v->startPoint(); }
00116 Point endPoint() { return v->endPoint(); }
00117 void setStartPoint(double x, double y) { v->setStartPoint(x,y); }
00118 void setEndPoint(double x, double y) { v->setEndPoint(x,y); }
00119 int Width() { return v->Width(); }
00120 void setWidth(int w) { v->setWidth(w); }
00121 QColor Color() { return v->Color(); }
00122 void setColor(QColor c) { v->setColor(c); }
00123 void setColor(QString c) { v->setColor(QColor(c)); }
00124 QColor FillColor() { return v->FillColor(); }
00125 void setFillColor(QColor c) { v->setFillColor(c); }
00126 void setFillColor(QString c) { v->setFillColor(QColor(c)); }
00127 bool isFilled() { return v->isFilled(); }
00128 void setFilled(bool f=true) { v->setFilled(f); }
00129 private:
00130 Ellipse *v;
00131 };
00132
00133 class LImageWrapper : public QObject
00134 {
00135 Q_OBJECT
00136 public:
00137 LImageWrapper(LImage *v) : v(v) {}
00138 public slots:
00139 Point Pos() { return v->Pos(); }
00140 void setPos(double x, double y) { v->setPos(x,y); }
00141 QString Name() { return v->Name(); }
00142 void setName(QString n) { v->setName(n); }
00143 double Scale() { return v->Scale(); }
00144 void setScale(double s) { v->setScale(s); }
00145 double Angle() { return v->Angle(); }
00146 void setAngle(double a) { v->setAngle(a); }
00147 private:
00148 LImage *v;
00149 };
00150
00151 class SymbolWrapper : public QObject
00152 {
00153 Q_OBJECT
00154 public:
00155 SymbolWrapper(Symbol *v) : v(v) {}
00156 public slots:
00157 int Type() { return (int) v->Type(); }
00158 void setType(SType t) { v->setType(t); }
00159 void setType(int t) { v->setType((SType)t); }
00160 QColor Color() { return v->Color(); }
00161 void setColor(QColor c) { v->setColor(c); }
00162 void setColor(QString c) { v->setColor(QColor(c)); }
00163 int Size() { return v->Size(); }
00164 void setSize(int s) { v->setSize(s); }
00165 int Fill() { return (int) v->Fill(); }
00166 void setFill(FType f) { v->setFill(f); }
00167 void setFill(int f) { v->setFill((FType) f); }
00168 QColor FillColor() { return v->FillColor(); }
00169 void setFillColor(QColor fc) { v->setFillColor(fc); }
00170 void setFillColor(QString fc) { v->setFillColor(QColor(fc)); }
00171 int Brush() { return v->Brush();}
00172 void setBrush(int b) { v->setBrush(b); }
00173 private:
00174 Symbol *v;
00175 };
00176
00177 class StyleWrapper : public QObject
00178 {
00179 Q_OBJECT
00180 public:
00181 StyleWrapper(Style *v) : v(v) {}
00182 public slots:
00183 int Type() { return v->Type(); }
00184 void setType(int t) { v->setType(t); }
00185 QColor Color() { return v->Color(); }
00186 void setColor(QString c) { v->setColor(QColor(c)); }
00187 void setColor(QColor c) { v->setColor(c); }
00188 int Width() { return v->Width(); }
00189 void setWidth(int w) { v->setWidth(w); }
00190 int PenStyle() { return v->PenStyle(); }
00191 void setPenStyle(int p) { v->setPenStyle(p); }
00192 int Brush() { return v->Brush(); }
00193 void setBrush (int b) { v->setBrush(b); }
00194 bool isFilled() { return v->isFilled(); }
00195 void setFilled(int f) { v->setFilled(f); }
00196 QColor FillColor() { return v->FillColor(); }
00197 void setFillColor(QString c) { v->setFillColor(QColor(c)); }
00198 void setFillColor(QColor c) { v->setFillColor(c); }
00199 int BoxWidth() { return v->BoxWidth(); }
00200 void setBoxWidth(int b) { v->setBoxWidth(b); }
00201 bool AutoBoxWidth() { return v->AutoBoxWidth(); }
00202 void setAutoBoxWidth(bool b=true) { v->setAutoBoxWidth(b); }
00203 private:
00204 Style *v;
00205 };
00206
00207 class LRangeWrapper : public QObject
00208 {
00209 Q_OBJECT
00210 public:
00211 LRangeWrapper(LRange *v) : v(v) {}
00212 public slots:
00213 double Diff() { return v->Diff(); }
00214 double rMin() { return v->rMin(); }
00215 double rMax() { return v->rMax(); }
00216 void setMin(double m) { v->setMin(m); }
00217 void setMax(double m) { v->setMax(m); }
00218 void setRange(double rmin=0, double rmax=1) { v->setRange(rmin,rmax); }
00219 private:
00220 LRange *v;
00221 };
00222
00223 class LabelWrapper : public QObject
00224 {
00225 Q_OBJECT
00226 public:
00227 LabelWrapper(Label *v) : v(v) {}
00228 public slots:
00229 void setPosition(double X, double Y) { v->setPosition(X,Y); }
00230 double X() { return v->X(); }
00231 double Y() { return v->Y(); }
00232 QString Title() { return v->Title(); }
00233 void setTitle(QString title) { v->setTitle(title); }
00234 void setColor(QColor color) { v->setColor(color); }
00235 void setColor(QString color) { v->setColor(QColor(color)); }
00236 QColor Color() { return v->Color(); }
00237 void setFont(QFont font) { v->setFont(font); }
00238 QFont Font() { return v->Font(); }
00239 void setBoxed(bool b) { v->setBoxed(b); }
00240 bool Boxed() { return v->Boxed(); }
00241 double Rotation() { return v->Rotation(); }
00242 void setRotation(double r) { v->setRotation(r); }
00243 bool isTeXLabel() { return v->isTeXLabel(); }
00244 void setTeXLabel(bool t) { v->setTeXLabel(t); }
00245 private:
00246 Label *v;
00247 };
00248
00249 class LegendWrapper : public QObject
00250 {
00251 Q_OBJECT
00252 public:
00253 LegendWrapper(Legend *v) : v(v) {}
00254 public slots:
00255 void setFont(QFont font) { v->setFont(font); }
00256 QFont Font() { return v->Font(); }
00257 void enable(bool b=true) { v->enable(b); }
00258 bool enabled() { return v->enabled(); }
00259 void setPosition(double X, double Y) { v->setPosition(X,Y); }
00260 double X() { return v->X(); }
00261 double Y() { return v->Y(); }
00262 void enableBorder(bool b=true) { v->enableBorder(b); }
00263 bool borderEnabled() { return v->borderEnabled(); }
00264 bool getOrientation() { return v->getOrientation(); }
00265 void setOrientation(bool o) { v->setOrientation(o); }
00266 int TicLabelLength() { return v->TicLabelLength(); }
00267 void setTicLabelLength(int l) { v->setTicLabelLength(l); }
00268 private:
00269 Legend *v;
00270 };
00271
00272 class AxisWrapper : public QObject
00273 {
00274 Q_OBJECT
00275 public:
00276 AxisWrapper(Axis *v) : v(v) {}
00277 public slots:
00278 void enable(bool b=true) { v->enable(b); }
00279 bool enabled() { return v->enabled(); }
00280 void setScale(TScale s) { v->setScale(s); }
00281 void setScale(int s) { v->setScale((TScale) s); }
00282 int Scale() { return (int) v->Scale(); }
00283 void setLabel(Label *label) { v->setLabel(label); }
00284 void setScaling(double s) { v->setScaling(s); }
00285 double Scaling() { return v->Scaling(); }
00286 void setShift(double s) { v->setShift(s); }
00287 double Shift() { return v->Shift(); }
00288 Label *getLabel() { return v->getLabel(); }
00289 Label *label() { return v->getLabel(); }
00290
00291 void setTicsLabelRotation(double r) { v->setTicsLabelRotation(r); }
00292 double TicsLabelRotation() { return v->TicsLabelRotation(); }
00293 void setTicsLabelPrefix(QString p) {v->setTicsLabelPrefix(p); }
00294 QString TicsLabelPrefix() { return v->TicsLabelPrefix(); }
00295 void setTicsLabelSuffix(QString s) { v->setTicsLabelSuffix(s); }
00296 QString TicsLabelSuffix() { return v->TicsLabelSuffix(); }
00297 void setTicsFont(QFont a) { v->setTicsFont(a); }
00298 QFont TicsFont() { return v->TicsFont(); }
00299 void setTicsColor(QColor col) { v->setTicsColor(col); }
00300 void setTicsColor(QString col) { v->setTicsColor(QColor(col)); }
00301 QColor TicsColor() { return v->TicsColor(); }
00302 void setTicsLabelColor(QColor col) { v->setTicsLabelColor(col); }
00303 void setTicsLabelColor(QString col) { v->setTicsLabelColor(QColor(col)); }
00304 QColor TicsLabelColor() { return v->TicsLabelColor(); }
00305 void setTicsLabelFormat(TFormat tmp) { v->setTicsLabelFormat(tmp); }
00306 void setTicsLabelFormat(int tmp) { v->setTicsLabelFormat((TFormat) tmp); }
00307 int TicsLabelFormat() { return (int) v->TicsLabelFormat(); }
00308 void setDateTimeFormat(QString f) { v->setDateTimeFormat(f); }
00309 QString DateTimeFormat() { return v->DateTimeFormat(); }
00310 void setTicsLabelPrecision(int tmp) { v->setTicsLabelPrecision(tmp); }
00311 int TicsLabelPrecision() { return v->TicsLabelPrecision(); }
00312 void setTicsLabelGap(int g) { v->setTicsLabelGap(g); }
00313 int TicsLabelGap() { return v->TicsLabelGap(); }
00314
00315 void setMajorTics(int t) { v->setMajorTics(t); }
00316 int MajorTics() { return v->MajorTics(); }
00317 void setMinorTics(int t) { v->setMinorTics(t); }
00318 int MinorTics() { return v->MinorTics(); }
00319 void enableMajorTics(bool b=true) { v->enableMajorTics(b); }
00320 void enableMinorTics(bool b=true) { v->enableMinorTics(b); }
00321 bool MajorTicsEnabled() { return v->MajorTicsEnabled(); }
00322 bool MinorTicsEnabled() { return v->MinorTicsEnabled(); }
00323 void setTicsPos(int tp) { v->setTicsPos(tp); }
00324 int TicsPos() { return v->TicsPos(); }
00325 void setMajorTicsWidth(int w) { v->setMajorTicsWidth(w); }
00326 int majorTicsWidth() { return v->majorTicsWidth(); }
00327 void setMinorTicsWidth(int w) { v->setMinorTicsWidth(w); }
00328 int minorTicsWidth() { return v->minorTicsWidth(); }
00329
00330 void setBorderColor(QColor col) { v->setBorderColor(col); }
00331 void setBorderColor(QString col) { v->setBorderColor(QColor(col)); }
00332 QColor BorderColor() { return v->BorderColor(); }
00333 void setBorderWidth(int b) { v->setBorderWidth(b); }
00334 int borderWidth() { return v->borderWidth(); }
00335
00336 void setMajorGridColor(QColor c) { v->setMajorGridColor(c); }
00337 void setMajorGridColor(QString c) { v->setMajorGridColor(QColor(c)); }
00338 QColor majorGridColor() { return v->majorGridColor(); }
00339 void setMinorGridColor(QColor c) { v->setMinorGridColor(c); }
00340 void setMinorGridColor(QString c) { v->setMinorGridColor(QColor(c)); }
00341 QColor minorGridColor() { return v->minorGridColor(); }
00342 void setMajorGridType(Qt::PenStyle t) { setMajorGridType(t); }
00343 Qt::PenStyle MajorGridType() { return v->MajorGridType(); }
00344 void setMinorGridType(Qt::PenStyle t) { setMinorGridType(t); }
00345 Qt::PenStyle MinorGridType() { return v->MinorGridType(); }
00346 void setMajorGridWidth(int w) { v->setMajorGridWidth(w); }
00347 int majorGridWidth() { return v->majorGridWidth(); }
00348 void setMinorGridWidth(int w) { v->setMinorGridWidth(w); }
00349 int minorGridWidth() { return v->minorGridWidth(); }
00350 private:
00351 Axis *v;
00352 };
00353
00354 class Plot2DSimpleWrapper : public QObject
00355 {
00356 Q_OBJECT
00357 public:
00358 Plot2DSimpleWrapper(Plot2DSimple *v) : v(v) {}
00359 public slots:
00360
00361 Legend* getLegend() { return v->getLegend(); }
00362 Label* Title() { return v->Title(); }
00363 Axis *getAxis(int i) { return v->getAxis(i); }
00364 void setRange(LRange *r, int i) { v->setRange(r,i); }
00365 LRange* Range(int i) { return v->Range(i); }
00366 void setActRange(LRange *r, int i) { v->setActRange(r,i); }
00367 LRange* ActRange(int i) { return v->ActRange(i); }
00368 void setRegionMin(double min) { v->setRegionMin(min); }
00369 void setRegionMax(double max) { v->setRegionMax(max); }
00370 void setRegion(double min, double max) { v->setRegion(min,max); }
00371 double RegionMin() {return v->RegionMin(); }
00372 double RegionMax() {return v->RegionMax(); }
00373 LRange *Region() { return v->Region(); }
00374 bool regionEnabled() { return v->regionEnabled(); }
00375 void setRegionEnabled(bool e=true) { v->setRegionEnabled(e); }
00376
00377 bool marksEnabled() { return v->marksEnabled(); }
00378 void setMarksEnabled(bool m=true) { v->setMarksEnabled(m); }
00379 LRange *markX() { return v->markX(); }
00380 void setMarkX(LRange *l) { v->setMarkX(l); }
00381 LRange *markY() { return v->markY(); }
00382 void setMarkY(LRange *l) { v->setMarkY(l); }
00383
00384 void setPosition(double x, double y) { v->setPosition(x,y);}
00385 void setSize(double x, double y) { v->setSize(x,y);}
00386 void autoScaleX() {v->autoScaleX();}
00387 void autoScaleY() {v->autoScaleY();}
00388 void autoScaleZ() {v->autoScaleZ();}
00389 void setXRange(double x1, double x2) {v->setXRange(x1,x2); }
00390 void setYRange(double y1, double y2) {v->setYRange(y1,y2); }
00391 void setZRange(double z1, double z2) {v->setZRange(z1,z2); }
00392 QColor Background() { return v->Background();}
00393 QColor graphBackground() { return v->graphBackground();}
00394 void setBackground(QColor c) { v->setBackground(c);}
00395 void setBackground(QString c) { v->setBackground(QColor(c));}
00396 void setGraphBackground(QColor c) { v->setGraphBackground(c);}
00397 void setGraphBackground(QString c) { v->setGraphBackground(QColor(c));}
00398
00399 void setTransparent(bool t) { v->setTransparent(t); }
00400 void setClipOffset(int c) { v->setClipOffset(c);}
00401 void enableGrid(int index,bool b=true) { v->enableGrid(index,b);}
00402 void enableBorder(int index,bool b=true) { v->enableBorder(index,b);}
00403 void setBaseline(double b) { v->setBaseline(b); }
00404 void setXBaseline(double b) { v->setXBaseline(b); }
00405 void setBaselineEnabled(bool e=true) { v->setBaselineEnabled(e); }
00406 void setXBaselineEnabled(bool e=true) { v->setXBaselineEnabled(e); }
00407 private:
00408 Plot2DSimple *v;
00409 };
00410
00411 class Plot2DSurfaceWrapper : public QObject
00412 {
00413 Q_OBJECT
00414 public:
00415 Plot2DSurfaceWrapper(Plot2DSurface *v) : v(v) {}
00416 public slots:
00417
00418 Legend* getLegend() { return v->getLegend(); }
00419 Label* Title() { return v->Title(); }
00420 Axis *getAxis(int i) { return v->getAxis(i); }
00421 void setRange(LRange *r, int i) { v->setRange(r,i); }
00422 LRange* Range(int i) { return v->Range(i); }
00423 void setActRange(LRange *r, int i) { v->setActRange(r,i); }
00424 LRange* ActRange(int i) { return v->ActRange(i); }
00425 void setRegionMin(double min) { v->setRegionMin(min); }
00426 void setRegionMax(double max) { v->setRegionMax(max); }
00427 void setRegion(double min, double max) { v->setRegion(min,max); }
00428 double RegionMin() {return v->RegionMin(); }
00429 double RegionMax() {return v->RegionMax(); }
00430 LRange *Region() { return v->Region(); }
00431 bool regionEnabled() { return v->regionEnabled(); }
00432 void setRegionEnabled(bool e=true) { v->setRegionEnabled(e); }
00433
00434 bool marksEnabled() { return v->marksEnabled(); }
00435 void setMarksEnabled(bool m=true) { v->setMarksEnabled(m); }
00436 LRange *markX() { return v->markX(); }
00437 void setMarkX(LRange *l) { v->setMarkX(l); }
00438 LRange *markY() { return v->markY(); }
00439 void setMarkY(LRange *l) { v->setMarkY(l); }
00440
00441 void setPosition(double x, double y) { v->setPosition(x,y);}
00442 void setSize(double x, double y) { v->setSize(x,y);}
00443 void autoScaleX() {v->autoScaleX();}
00444 void autoScaleY() {v->autoScaleY();}
00445 void autoScaleZ() {v->autoScaleZ();}
00446 void setXRange(double x1, double x2) {v->setXRange(x1,x2); }
00447 void setYRange(double y1, double y2) {v->setYRange(y1,y2); }
00448 void setZRange(double z1, double z2) {v->setZRange(z1,z2); }
00449 QColor Background() { return v->Background();}
00450 QColor graphBackground() { return v->graphBackground();}
00451 void setBackground(QColor c) { v->setBackground(c);}
00452 void setBackground(QString c) { v->setBackground(QColor(c));}
00453 void setGraphBackground(QColor c) { v->setGraphBackground(c);}
00454 void setGraphBackground(QString c) { v->setGraphBackground(QColor(c));}
00455
00456 void setTransparent(bool t) { v->setTransparent(t); }
00457 void setClipOffset(int c) { v->setClipOffset(c);}
00458 void enableGrid(int index,bool b=true) { v->enableGrid(index,b);}
00459 void enableBorder(int index,bool b=true) { v->enableBorder(index,b);}
00460 void setBaseline(double b) { v->setBaseline(b); }
00461 void setXBaseline(double b) { v->setXBaseline(b); }
00462 void setBaselineEnabled(bool e=true) { v->setBaselineEnabled(e); }
00463 void setXBaselineEnabled(bool e=true) { v->setXBaselineEnabled(e); }
00464 private:
00465 Plot2DSurface *v;
00466 };
00467
00468 class Plot3DWrapper : public QObject
00469 {
00470 Q_OBJECT
00471 public:
00472 Plot3DWrapper(Plot3D *v) : v(v) {}
00473 public slots:
00474
00475 Legend* getLegend() { return v->getLegend(); }
00476 Label* Title() { return v->Title(); }
00477 Axis *getAxis(int i) { return v->getAxis(i); }
00478 void setRange(LRange *r, int i) { v->setRange(r,i); }
00479 LRange* Range(int i) { return v->Range(i); }
00480 void setActRange(LRange *r, int i) { v->setActRange(r,i); }
00481 LRange* ActRange(int i) { return v->ActRange(i); }
00482 void setRegionMin(double min) { v->setRegionMin(min); }
00483 void setRegionMax(double max) { v->setRegionMax(max); }
00484 void setRegion(double min, double max) { v->setRegion(min,max); }
00485 double RegionMin() {return v->RegionMin(); }
00486 double RegionMax() {return v->RegionMax(); }
00487 LRange *Region() { return v->Region(); }
00488 bool regionEnabled() { return v->regionEnabled(); }
00489 void setRegionEnabled(bool e=true) { v->setRegionEnabled(e); }
00490
00491 bool marksEnabled() { return v->marksEnabled(); }
00492 void setMarksEnabled(bool m=true) { v->setMarksEnabled(m); }
00493 LRange *markX() { return v->markX(); }
00494 void setMarkX(LRange *l) { v->setMarkX(l); }
00495 LRange *markY() { return v->markY(); }
00496 void setMarkY(LRange *l) { v->setMarkY(l); }
00497
00498 void setPosition(double x, double y) { v->setPosition(x,y);}
00499 void setSize(double x, double y) { v->setSize(x,y);}
00500 void autoScaleX() {v->autoScaleX();}
00501 void autoScaleY() {v->autoScaleY();}
00502 void autoScaleZ() {v->autoScaleZ();}
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 setTransparent(bool t) { v->setTransparent(t); }
00514 void setClipOffset(int c) { v->setClipOffset(c);}
00515 void enableGrid(int index,bool b=true) { v->enableGrid(index,b);}
00516 void enableBorder(int index,bool b=true) { v->enableBorder(index,b);}
00517 void setBaseline(double b) { v->setBaseline(b); }
00518 void setXBaseline(double b) { v->setXBaseline(b); }
00519 void setBaselineEnabled(bool e=true) { v->setBaselineEnabled(e); }
00520 void setXBaselineEnabled(bool e=true) { v->setXBaselineEnabled(e); }
00521 private:
00522 Plot3D *v;
00523 };
00524
00525 class PlotQWT3DWrapper : public QObject
00526 {
00527 Q_OBJECT
00528 public:
00529 PlotQWT3DWrapper(PlotQWT3D *v) : v(v) {}
00530 public slots:
00531
00532 Legend* getLegend() { return v->getLegend(); }
00533 Label* Title() { return v->Title(); }
00534 Axis *getAxis(int i) { return v->getAxis(i); }
00535 void setRange(LRange *r, int i) { v->setRange(r,i); }
00536 LRange* Range(int i) { return v->Range(i); }
00537 void setActRange(LRange *r, int i) { v->setActRange(r,i); }
00538 LRange* ActRange(int i) { return v->ActRange(i); }
00539 void setRegionMin(double min) { v->setRegionMin(min); }
00540 void setRegionMax(double max) { v->setRegionMax(max); }
00541 void setRegion(double min, double max) { v->setRegion(min,max); }
00542 double RegionMin() {return v->RegionMin(); }
00543 double RegionMax() {return v->RegionMax(); }
00544 LRange *Region() { return v->Region(); }
00545 bool regionEnabled() { return v->regionEnabled(); }
00546 void setRegionEnabled(bool e=true) { v->setRegionEnabled(e); }
00547
00548 bool marksEnabled() { return v->marksEnabled(); }
00549 void setMarksEnabled(bool m=true) { v->setMarksEnabled(m); }
00550 LRange *markX() { return v->markX(); }
00551 void setMarkX(LRange *l) { v->setMarkX(l); }
00552 LRange *markY() { return v->markY(); }
00553 void setMarkY(LRange *l) { v->setMarkY(l); }
00554
00555 void setPosition(double x, double y) { v->setPosition(x,y);}
00556 void setSize(double x, double y) { v->setSize(x,y);}
00557 void autoScaleX() {v->autoScaleX();}
00558 void autoScaleY() {v->autoScaleY();}
00559 void autoScaleZ() {v->autoScaleZ();}
00560 void setXRange(double x1, double x2) {v->setXRange(x1,x2); }
00561 void setYRange(double y1, double y2) {v->setYRange(y1,y2); }
00562 void setZRange(double z1, double z2) {v->setZRange(z1,z2); }
00563 QColor Background() { return v->Background();}
00564 QColor graphBackground() { return v->graphBackground();}
00565 void setBackground(QColor c) { v->setBackground(c);}
00566 void setBackground(QString c) { v->setBackground(QColor(c));}
00567 void setGraphBackground(QColor c) { v->setGraphBackground(c);}
00568 void setGraphBackground(QString c) { v->setGraphBackground(QColor(c));}
00569
00570 void setTransparent(bool t) { v->setTransparent(t); }
00571 void setClipOffset(int c) { v->setClipOffset(c);}
00572 void enableGrid(int index,bool b=true) { v->enableGrid(index,b);}
00573 void enableBorder(int index,bool b=true) { v->enableBorder(index,b);}
00574 void setBaseline(double b) { v->setBaseline(b); }
00575 void setXBaseline(double b) { v->setXBaseline(b); }
00576 void setBaselineEnabled(bool e=true) { v->setBaselineEnabled(e); }
00577 void setXBaselineEnabled(bool e=true) { v->setXBaselineEnabled(e); }
00578 private:
00579 PlotQWT3D *v;
00580 };
00581
00582 class PlotPieWrapper : public QObject
00583 {
00584 Q_OBJECT
00585 public:
00586 PlotPieWrapper(PlotPie *v) : v(v) {}
00587 public slots:
00588
00589 Legend* getLegend() { return v->getLegend(); }
00590 Label* Title() { return v->Title(); }
00591 Axis *getAxis(int i) { return v->getAxis(i); }
00592 void setRange(LRange *r, int i) { v->setRange(r,i); }
00593 LRange* Range(int i) { return v->Range(i); }
00594 void setActRange(LRange *r, int i) { v->setActRange(r,i); }
00595 LRange* ActRange(int i) { return v->ActRange(i); }
00596 void setRegionMin(double min) { v->setRegionMin(min); }
00597 void setRegionMax(double max) { v->setRegionMax(max); }
00598 void setRegion(double min, double max) { v->setRegion(min,max); }
00599 double RegionMin() {return v->RegionMin(); }
00600 double RegionMax() {return v->RegionMax(); }
00601 LRange *Region() { return v->Region(); }
00602 bool regionEnabled() { return v->regionEnabled(); }
00603 void setRegionEnabled(bool e=true) { v->setRegionEnabled(e); }
00604
00605 bool marksEnabled() { return v->marksEnabled(); }
00606 void setMarksEnabled(bool m=true) { v->setMarksEnabled(m); }
00607 LRange *markX() { return v->markX(); }
00608 void setMarkX(LRange *l) { v->setMarkX(l); }
00609 LRange *markY() { return v->markY(); }
00610 void setMarkY(LRange *l) { v->setMarkY(l); }
00611
00612 void setPosition(double x, double y) { v->setPosition(x,y);}
00613 void setSize(double x, double y) { v->setSize(x,y);}
00614 void autoScaleX() {v->autoScaleX();}
00615 void autoScaleY() {v->autoScaleY();}
00616 void autoScaleZ() {v->autoScaleZ();}
00617 void setXRange(double x1, double x2) {v->setXRange(x1,x2); }
00618 void setYRange(double y1, double y2) {v->setYRange(y1,y2); }
00619 void setZRange(double z1, double z2) {v->setZRange(z1,z2); }
00620 QColor Background() { return v->Background();}
00621 QColor graphBackground() { return v->graphBackground();}
00622 void setBackground(QColor c) { v->setBackground(c);}
00623 void setBackground(QString c) { v->setBackground(QColor(c));}
00624 void setGraphBackground(QColor c) { v->setGraphBackground(c);}
00625 void setGraphBackground(QString c) { v->setGraphBackground(QColor(c));}
00626
00627 void setTransparent(bool t) { v->setTransparent(t); }
00628 void setClipOffset(int c) { v->setClipOffset(c);}
00629 void enableGrid(int index,bool b=true) { v->enableGrid(index,b);}
00630 void enableBorder(int index,bool b=true) { v->enableBorder(index,b);}
00631 void setBaseline(double b) { v->setBaseline(b); }
00632 void setXBaseline(double b) { v->setXBaseline(b); }
00633 void setBaselineEnabled(bool e=true) { v->setBaselineEnabled(e); }
00634 void setXBaselineEnabled(bool e=true) { v->setXBaselineEnabled(e); }
00635 private:
00636 PlotPie *v;
00637 };
00638
00639 class PlotPolarWrapper : public QObject
00640 {
00641 Q_OBJECT
00642 public:
00643 PlotPolarWrapper(PlotPolar *v) : v(v) {}
00644 public slots:
00645
00646 Legend* getLegend() { return v->getLegend(); }
00647 Label* Title() { return v->Title(); }
00648 Axis *getAxis(int i) { return v->getAxis(i); }
00649 void setRange(LRange *r, int i) { v->setRange(r,i); }
00650 LRange* Range(int i) { return v->Range(i); }
00651 void setActRange(LRange *r, int i) { v->setActRange(r,i); }
00652 LRange* ActRange(int i) { return v->ActRange(i); }
00653 void setRegionMin(double min) { v->setRegionMin(min); }
00654 void setRegionMax(double max) { v->setRegionMax(max); }
00655 void setRegion(double min, double max) { v->setRegion(min,max); }
00656 double RegionMin() {return v->RegionMin(); }
00657 double RegionMax() {return v->RegionMax(); }
00658 LRange *Region() { return v->Region(); }
00659 bool regionEnabled() { return v->regionEnabled(); }
00660 void setRegionEnabled(bool e=true) { v->setRegionEnabled(e); }
00661
00662 bool marksEnabled() { return v->marksEnabled(); }
00663 void setMarksEnabled(bool m=true) { v->setMarksEnabled(m); }
00664 LRange *markX() { return v->markX(); }
00665 void setMarkX(LRange *l) { v->setMarkX(l); }
00666 LRange *markY() { return v->markY(); }
00667 void setMarkY(LRange *l) { v->setMarkY(l); }
00668
00669 void setPosition(double x, double y) { v->setPosition(x,y);}
00670 void setSize(double x, double y) { v->setSize(x,y);}
00671 void autoScaleX() {v->autoScaleX();}
00672 void autoScaleY() {v->autoScaleY();}
00673 void autoScaleZ() {v->autoScaleZ();}
00674 void setXRange(double x1, double x2) {v->setXRange(x1,x2); }
00675 void setYRange(double y1, double y2) {v->setYRange(y1,y2); }
00676 void setZRange(double z1, double z2) {v->setZRange(z1,z2); }
00677 QColor Background() { return v->Background();}
00678 QColor graphBackground() { return v->graphBackground();}
00679 void setBackground(QColor c) { v->setBackground(c);}
00680 void setBackground(QString c) { v->setBackground(QColor(c));}
00681 void setGraphBackground(QColor c) { v->setGraphBackground(c);}
00682 void setGraphBackground(QString c) { v->setGraphBackground(QColor(c));}
00683
00684 void setTransparent(bool t) { v->setTransparent(t); }
00685 void setClipOffset(int c) { v->setClipOffset(c);}
00686 void enableGrid(int index,bool b=true) { v->enableGrid(index,b);}
00687 void enableBorder(int index,bool b=true) { v->enableBorder(index,b);}
00688 void setBaseline(double b) { v->setBaseline(b); }
00689 void setXBaseline(double b) { v->setXBaseline(b); }
00690 void setBaselineEnabled(bool e=true) { v->setBaselineEnabled(e); }
00691 void setXBaselineEnabled(bool e=true) { v->setXBaselineEnabled(e); }
00692 private:
00693 PlotPolar *v;
00694 };
00695
00696 class PlotTernaryWrapper : public QObject
00697 {
00698 Q_OBJECT
00699 public:
00700 PlotTernaryWrapper(PlotTernary *v) : v(v) {}
00701 public slots:
00702
00703 Legend* getLegend() { return v->getLegend(); }
00704 Label* Title() { return v->Title(); }
00705 Axis *getAxis(int i) { return v->getAxis(i); }
00706 void setRange(LRange *r, int i) { v->setRange(r,i); }
00707 LRange* Range(int i) { return v->Range(i); }
00708 void setActRange(LRange *r, int i) { v->setActRange(r,i); }
00709 LRange* ActRange(int i) { return v->ActRange(i); }
00710 void setRegionMin(double min) { v->setRegionMin(min); }
00711 void setRegionMax(double max) { v->setRegionMax(max); }
00712 void setRegion(double min, double max) { v->setRegion(min,max); }
00713 double RegionMin() {return v->RegionMin(); }
00714 double RegionMax() {return v->RegionMax(); }
00715 LRange *Region() { return v->Region(); }
00716 bool regionEnabled() { return v->regionEnabled(); }
00717 void setRegionEnabled(bool e=true) { v->setRegionEnabled(e); }
00718
00719 bool marksEnabled() { return v->marksEnabled(); }
00720 void setMarksEnabled(bool m=true) { v->setMarksEnabled(m); }
00721 LRange *markX() { return v->markX(); }
00722 void setMarkX(LRange *l) { v->setMarkX(l); }
00723 LRange *markY() { return v->markY(); }
00724 void setMarkY(LRange *l) { v->setMarkY(l); }
00725
00726 void setPosition(double x, double y) { v->setPosition(x,y);}
00727 void setSize(double x, double y) { v->setSize(x,y);}
00728 void autoScaleX() {v->autoScaleX();}
00729 void autoScaleY() {v->autoScaleY();}
00730 void autoScaleZ() {v->autoScaleZ();}
00731 void setXRange(double x1, double x2) {v->setXRange(x1,x2); }
00732 void setYRange(double y1, double y2) {v->setYRange(y1,y2); }
00733 void setZRange(double z1, double z2) {v->setZRange(z1,z2); }
00734 QColor Background() { return v->Background();}
00735 QColor graphBackground() { return v->graphBackground();}
00736 void setBackground(QColor c) { v->setBackground(c);}
00737 void setBackground(QString c) { v->setBackground(QColor(c));}
00738 void setGraphBackground(QColor c) { v->setGraphBackground(c);}
00739 void setGraphBackground(QString c) { v->setGraphBackground(QColor(c));}
00740
00741 void setTransparent(bool t) { v->setTransparent(t); }
00742 void setClipOffset(int c) { v->setClipOffset(c);}
00743 void enableGrid(int index,bool b=true) { v->enableGrid(index,b);}
00744 void enableBorder(int index,bool b=true) { v->enableBorder(index,b);}
00745 void setBaseline(double b) { v->setBaseline(b); }
00746 void setXBaseline(double b) { v->setXBaseline(b); }
00747 void setBaselineEnabled(bool e=true) { v->setBaselineEnabled(e); }
00748 void setXBaselineEnabled(bool e=true) { v->setXBaselineEnabled(e); }
00749 private:
00750 PlotTernary *v;
00751 };
00752
00753
00754
00755 #ifdef HAVE_QSA_FAC
00756 class WrapperFactory : public QSWrapperFactory
00757 {
00758 public:
00759 WrapperFactory(MainWin *mw, QWorkspace *ws);
00760 QObject *create( const QString &className,void *ptr);
00761 private:
00762 MainWin *mw;
00763 QWorkspace *ws;
00764 };
00765 #endif
00766
00767 #endif //WRAPPERFACTORY_H