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 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((StylesType)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) { v->setMajorGridType(t); }
00364 Qt::PenStyle MajorGridType() { return v->MajorGridType(); }
00365 void setMinorGridType(Qt::PenStyle t) { v->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 ErrorbarWrapper : public QObject
00376 {
00377 Q_OBJECT
00378 public:
00379 ErrorbarWrapper(Errorbar *v) : v(v) {}
00380 public slots:
00381 QColor Color() { return v->Color(); }
00382 void setColor(QColor c) { v->setColor(c); }
00383 QColor BaseColor() { return v->BaseColor(); }
00384 void setBaseColor(QColor c) { v->setBaseColor(c); }
00385 int XSize() { return v->XSize(); }
00386 void setXSize(int s) { v->setXSize(s); }
00387 int YSize() { return v->YSize(); }
00388 void setYSize(int s) { v->setYSize(s); }
00389 Qt::PenStyle Style() { return v->Style(); }
00390 void setStyle(Qt::PenStyle p) { v->setStyle(p); }
00391 Qt::PenStyle BaseStyle() { return v->BaseStyle(); }
00392 void setBaseStyle(Qt::PenStyle p) { v->setBaseStyle(p); }
00393 int Width() { return v->Width(); }
00394 void setWidth(int w) { v->setWidth(w); }
00395 int BaseWidth() { return v->BaseWidth(); }
00396 void setBaseWidth(int w) { v->setBaseWidth(w); }
00397 int XType() { return (int) v->XType(); }
00398 void setXType(EType e) { v->setXType(e); }
00399 int YType() { return (int) v->YType(); }
00400 void setYType(EType e) { v->setYType(e); }
00401 private:
00402 Errorbar *v;
00403 };
00404
00405
00406 class Plot2DSimpleWrapper : public QObject
00407 {
00408 Q_OBJECT
00409 public:
00410 Plot2DSimpleWrapper(Plot2DSimple *v) : v(v) {}
00411 public slots:
00412
00413 Legend* getLegend() { return v->getLegend(); }
00414 Label* Title() { return v->Title(); }
00415 Axis *getAxis(int i) { return v->getAxis(i); }
00416 void setRange(LRange *r, int i) { v->setRange(r,i); }
00417 LRange* Range(int i) { return v->Range(i); }
00418 void setActRange(LRange *r, int i) { v->setActRange(r,i); }
00419 LRange* ActRange(int i) { return v->ActRange(i); }
00420 void setRegionMin(double min) { v->setRegionMin(min); }
00421 void setRegionMax(double max) { v->setRegionMax(max); }
00422 void setRegion(double min, double max) { v->setRegion(min,max); }
00423 double RegionMin() {return v->RegionMin(); }
00424 double RegionMax() {return v->RegionMax(); }
00425 LRange *Region() { return v->Region(); }
00426 bool regionEnabled() { return v->regionEnabled(); }
00427 void enableRegion(bool e=true) { v->enableRegion(e); }
00428 void setRegionEnabled(bool e=true) { v->enableRegion(e); }
00429
00430 bool marksEnabled() { return v->marksEnabled(); }
00431 void enableMarks(bool m=true) { v->enableMarks(m); }
00432 void setMarksEnabled(bool m=true) { v->enableMarks(m); }
00433 LRange *markX() { return v->markX(); }
00434 void setMarkX(LRange *l) { v->setMarkX(l); }
00435 LRange *markY() { return v->markY(); }
00436 void setMarkY(LRange *l) { v->setMarkY(l); }
00437 bool Fill() { return v->Fill(); }
00438 void setFill(bool f=true) { v->setFill(f); }
00439 void setFillType(int t) { v->setFillType(t); }
00440 int FillType() { return v->FillType(); }
00441 int FillG1() { return v->FillG1(); }
00442 void setFillG1(int f) { v->setFillG1(f); }
00443 int FillG2() { return v->FillG2(); }
00444 void setFillG2(int f) { v->setFillG1(f); }
00445 QBrush FillBrush() { return v->FillBrush(); }
00446 void setFillBrush(QBrush b) { v->setFillBrush(b); }
00447
00448 void setPosition(double x, double y) { v->setPosition(x,y);}
00449 Point Position() { return v->Position(); }
00450 void setSize(double x, double y) { v->setSize(x,y);}
00451 Point Size() { return v->Size(); }
00452 void enabledAspectRatio(bool a=true) { v->enableAspectRatio(a); }
00453 bool AspectRatioEnabled() { return v->AspectRatioEnabled(); }
00454 void autoScaleX() {v->autoScaleX();}
00455 void autoScaleY() {v->autoScaleY();}
00456 void autoScaleZ() {v->autoScaleZ();}
00457 void autoScaleAll() {v->autoScaleAll();}
00458 LRange *XRange() { return v->Range(0); }
00459 LRange *YRange() { return v->Range(1); }
00460 LRange *ZRange() { return v->Range(2); }
00461 void setXRange(double x1, double x2) {v->setXRange(x1,x2); }
00462 void setYRange(double y1, double y2) {v->setYRange(y1,y2); }
00463 void setZRange(double z1, double z2) {v->setZRange(z1,z2); }
00464 QColor Background() { return v->Background().color();}
00465 QColor graphBackground() { return v->graphBackground().color();}
00466 QBrush BackgroundBrush() { return v->Background();}
00467 QBrush graphBackgroundBrush() { return v->graphBackground();}
00468 void setBackground(QColor c) { v->setBackground(QBrush(c));}
00469 void setBackground(QBrush c) { v->setBackground(c);}
00470 void setBackground(QString c) { v->setBackground(QBrush(QColor(c)));}
00471 void setGraphBackground(QColor c) { v->setGraphBackground(QBrush(c));}
00472 void setGraphBackground(QBrush c) { v->setGraphBackground(c);}
00473 void setGraphBackground(QString c) { v->setGraphBackground(QBrush(QColor(c)));}
00474
00475 bool Transparent() { return v->Transparent(); }
00476 void setTransparent(bool t) { v->setTransparent(t); }
00477 int ClipOffset() { return v->ClipOffset(); }
00478 void setClipOffset(int c) { v->setClipOffset(c);}
00479 double Baseline() { return v->Baseline(); }
00480 void setBaseline(double b) { v->setBaseline(b); }
00481 double XBaseline() { return v->XBaseline(); }
00482 void setXBaseline(double b) { v->setXBaseline(b); }
00483 bool BaselineEnabled() { return v->BaselineEnabled(); }
00484 bool XBaselineEnabled() { return v->XBaselineEnabled(); }
00485 void enableBaseline(bool e=true) { v->enableBaseline(e); }
00486 void setBaselineEnabled(bool e=true) { v->enableBaseline(e); }
00487 void enableXBaseline(bool e=true) { v->enableXBaseline(e); }
00488 void setXBaselineEnabled(bool e=true) { v->enableXBaseline(e); }
00489 private:
00490 Plot2DSimple *v;
00491 };
00492
00493 class Plot2DSurfaceWrapper : public QObject
00494 {
00495 Q_OBJECT
00496 public:
00497 Plot2DSurfaceWrapper(Plot2DSurface *v) : v(v) {}
00498 public slots:
00499
00500 Legend* getLegend() { return v->getLegend(); }
00501 Label* Title() { return v->Title(); }
00502 Axis *getAxis(int i) { return v->getAxis(i); }
00503 void setRange(LRange *r, int i) { v->setRange(r,i); }
00504 LRange* Range(int i) { return v->Range(i); }
00505 void setActRange(LRange *r, int i) { v->setActRange(r,i); }
00506 LRange* ActRange(int i) { return v->ActRange(i); }
00507 void setRegionMin(double min) { v->setRegionMin(min); }
00508 void setRegionMax(double max) { v->setRegionMax(max); }
00509 void setRegion(double min, double max) { v->setRegion(min,max); }
00510 double RegionMin() {return v->RegionMin(); }
00511 double RegionMax() {return v->RegionMax(); }
00512 LRange *Region() { return v->Region(); }
00513 bool regionEnabled() { return v->regionEnabled(); }
00514 void enableRegion(bool e=true) { v->enableRegion(e); }
00515 void setRegionEnabled(bool e=true) { v->enableRegion(e); }
00516
00517 bool marksEnabled() { return v->marksEnabled(); }
00518 void enableMarks(bool m=true) { v->enableMarks(m); }
00519 void setMarksEnabled(bool m=true) { v->enableMarks(m); }
00520 LRange *markX() { return v->markX(); }
00521 void setMarkX(LRange *l) { v->setMarkX(l); }
00522 LRange *markY() { return v->markY(); }
00523 void setMarkY(LRange *l) { v->setMarkY(l); }
00524
00525 void setPosition(double x, double y) { v->setPosition(x,y);}
00526 Point Position() { return v->Position(); }
00527 void setSize(double x, double y) { v->setSize(x,y);}
00528 Point Size() { return v->Size(); }
00529 void enabledAspectRatio(bool a=true) { v->enableAspectRatio(a); }
00530 bool AspectRatioEnabled() { return v->AspectRatioEnabled(); }
00531 void autoScaleX() {v->autoScaleX();}
00532 void autoScaleY() {v->autoScaleY();}
00533 void autoScaleZ() {v->autoScaleZ();}
00534 void autoScaleAll() {v->autoScaleAll();}
00535 LRange *XRange() { return v->Range(0); }
00536 LRange *YRange() { return v->Range(1); }
00537 LRange *ZRange() { return v->Range(2); }
00538 void setXRange(double x1, double x2) {v->setXRange(x1,x2); }
00539 void setYRange(double y1, double y2) {v->setYRange(y1,y2); }
00540 void setZRange(double z1, double z2) {v->setZRange(z1,z2); }
00541 QColor Background() { return v->Background().color();}
00542 QColor graphBackground() { return v->graphBackground().color();}
00543 QBrush BackgroundBrush() { return v->Background();}
00544 QBrush graphBackgroundBrush() { return v->graphBackground();}
00545 void setBackground(QColor c) { v->setBackground(QBrush(c));}
00546 void setBackground(QBrush c) { v->setBackground(c);}
00547 void setBackground(QString c) { v->setBackground(QBrush(QColor(c)));}
00548 void setGraphBackground(QColor c) { v->setGraphBackground(QBrush(c));}
00549 void setGraphBackground(QBrush c) { v->setGraphBackground(c);}
00550 void setGraphBackground(QString c) { v->setGraphBackground(QBrush(QColor(c)));}
00551
00552 void enableXBaseline(bool e=true) { v->enableXBaseline(e); }
00553 void setXBaselineEnabled(bool e=true) { v->enableXBaseline(e); }
00554 bool Transparent() { return v->Transparent(); }
00555 void setTransparent(bool t) { v->setTransparent(t); }
00556 int ClipOffset() { return v->ClipOffset(); }
00557 void setClipOffset(int c) { v->setClipOffset(c);}
00558 double Baseline() { return v->Baseline(); }
00559 void setBaseline(double b) { v->setBaseline(b); }
00560 double XBaseline() { return v->XBaseline(); }
00561 void setXBaseline(double b) { v->setXBaseline(b); }
00562 bool BaselineEnabled() { return v->BaselineEnabled(); }
00563 bool XBaselineEnabled() { return v->XBaselineEnabled(); }
00564 void enableBaseline(bool e=true) { v->enableBaseline(e); }
00565 void setBaselineEnabled(bool e=true) { v->enableBaseline(e); }
00566 private:
00567 Plot2DSurface *v;
00568 };
00569
00570 class Plot3DWrapper : public QObject
00571 {
00572 Q_OBJECT
00573 public:
00574 Plot3DWrapper(Plot3D *v) : v(v) {}
00575 public slots:
00576
00577 Legend* getLegend() { return v->getLegend(); }
00578 Label* Title() { return v->Title(); }
00579 Axis *getAxis(int i) { return v->getAxis(i); }
00580 void setRange(LRange *r, int i) { v->setRange(r,i); }
00581 LRange* Range(int i) { return v->Range(i); }
00582 void setActRange(LRange *r, int i) { v->setActRange(r,i); }
00583 LRange* ActRange(int i) { return v->ActRange(i); }
00584 void setRegionMin(double min) { v->setRegionMin(min); }
00585 void setRegionMax(double max) { v->setRegionMax(max); }
00586 void setRegion(double min, double max) { v->setRegion(min,max); }
00587 double RegionMin() {return v->RegionMin(); }
00588 double RegionMax() {return v->RegionMax(); }
00589 LRange *Region() { return v->Region(); }
00590 bool regionEnabled() { return v->regionEnabled(); }
00591 void enableRegion(bool e=true) { v->enableRegion(e); }
00592 void setRegionEnabled(bool e=true) { v->enableRegion(e); }
00593
00594 bool marksEnabled() { return v->marksEnabled(); }
00595 void enableMarks(bool m=true) { v->enableMarks(m); }
00596 void setMarksEnabled(bool m=true) { v->enableMarks(m); }
00597 LRange *markX() { return v->markX(); }
00598 void setMarkX(LRange *l) { v->setMarkX(l); }
00599 LRange *markY() { return v->markY(); }
00600 void setMarkY(LRange *l) { v->setMarkY(l); }
00601
00602 void setPosition(double x, double y) { v->setPosition(x,y);}
00603 Point Position() { return v->Position(); }
00604 void setSize(double x, double y) { v->setSize(x,y);}
00605 Point Size() { return v->Size(); }
00606 void enabledAspectRatio(bool a=true) { v->enableAspectRatio(a); }
00607 bool AspectRatioEnabled() { return v->AspectRatioEnabled(); }
00608 void autoScaleX() {v->autoScaleX();}
00609 void autoScaleY() {v->autoScaleY();}
00610 void autoScaleZ() {v->autoScaleZ();}
00611 void autoScaleAll() {v->autoScaleAll();}
00612 LRange *XRange() { return v->Range(0); }
00613 LRange *YRange() { return v->Range(1); }
00614 LRange *ZRange() { return v->Range(2); }
00615 void setXRange(double x1, double x2) {v->setXRange(x1,x2); }
00616 void setYRange(double y1, double y2) {v->setYRange(y1,y2); }
00617 void setZRange(double z1, double z2) {v->setZRange(z1,z2); }
00618 QColor Background() { return v->Background().color();}
00619 QColor graphBackground() { return v->graphBackground().color();}
00620 QBrush BackgroundBrush() { return v->Background();}
00621 QBrush graphBackgroundBrush() { return v->graphBackground();}
00622 void setBackground(QColor c) { v->setBackground(QBrush(c));}
00623 void setBackground(QBrush c) { v->setBackground(c);}
00624 void setBackground(QString c) { v->setBackground(QBrush(QColor(c)));}
00625 void setGraphBackground(QColor c) { v->setGraphBackground(QBrush(c));}
00626 void setGraphBackground(QBrush c) { v->setGraphBackground(c);}
00627 void setGraphBackground(QString c) { v->setGraphBackground(QBrush(QColor(c)));}
00628
00629 bool Transparent() { return v->Transparent(); }
00630 void setTransparent(bool t) { v->setTransparent(t); }
00631 int ClipOffset() { return v->ClipOffset(); }
00632 void setClipOffset(int c) { v->setClipOffset(c);}
00633 double Baseline() { return v->Baseline(); }
00634 void setBaseline(double b) { v->setBaseline(b); }
00635 double XBaseline() { return v->XBaseline(); }
00636 void setXBaseline(double b) { v->setXBaseline(b); }
00637 bool BaselineEnabled() { return v->BaselineEnabled(); }
00638 bool XBaselineEnabled() { return v->XBaselineEnabled(); }
00639 void enableBaseline(bool e=true) { v->enableBaseline(e); }
00640 void setBaselineEnabled(bool e=true) { v->enableBaseline(e); }
00641 void enableXBaseline(bool e=true) { v->enableXBaseline(e); }
00642 void setXBaselineEnabled(bool e=true) { v->enableXBaseline(e); }
00643
00644 bool RenderStyle() { return v->RenderStyle(); }
00645 void setRenderStyle(bool r=true) { v->setRenderStyle(r); }
00646 private:
00647 Plot3D *v;
00648 };
00649
00650 class PlotQWT3DWrapper : public QObject
00651 {
00652 Q_OBJECT
00653 public:
00654 PlotQWT3DWrapper(PlotQWT3D *v) : v(v) {}
00655 public slots:
00656
00657 Legend* getLegend() { return v->getLegend(); }
00658 Label* Title() { return v->Title(); }
00659 Axis *getAxis(int i) { return v->getAxis(i); }
00660 void setRange(LRange *r, int i) { v->setRange(r,i); }
00661 LRange* Range(int i) { return v->Range(i); }
00662 void setActRange(LRange *r, int i) { v->setActRange(r,i); }
00663 LRange* ActRange(int i) { return v->ActRange(i); }
00664 void setRegionMin(double min) { v->setRegionMin(min); }
00665 void setRegionMax(double max) { v->setRegionMax(max); }
00666 void setRegion(double min, double max) { v->setRegion(min,max); }
00667 double RegionMin() {return v->RegionMin(); }
00668 double RegionMax() {return v->RegionMax(); }
00669 LRange *Region() { return v->Region(); }
00670 bool regionEnabled() { return v->regionEnabled(); }
00671 void enableRegion(bool e=true) { v->enableRegion(e); }
00672 void setRegionEnabled(bool e=true) { v->enableRegion(e); }
00673
00674 bool marksEnabled() { return v->marksEnabled(); }
00675 void enableMarks(bool m=true) { v->enableMarks(m); }
00676 void setMarksEnabled(bool m=true) { v->enableMarks(m); }
00677 LRange *markX() { return v->markX(); }
00678 void setMarkX(LRange *l) { v->setMarkX(l); }
00679 LRange *markY() { return v->markY(); }
00680 void setMarkY(LRange *l) { v->setMarkY(l); }
00681
00682 void setPosition(double x, double y) { v->setPosition(x,y);}
00683 Point Position() { return v->Position(); }
00684 void setSize(double x, double y) { v->setSize(x,y);}
00685 Point Size() { return v->Size(); }
00686 void enabledAspectRatio(bool a=true) { v->enableAspectRatio(a); }
00687 bool AspectRatioEnabled() { return v->AspectRatioEnabled(); }
00688 void autoScaleX() {v->autoScaleX();}
00689 void autoScaleY() {v->autoScaleY();}
00690 void autoScaleZ() {v->autoScaleZ();}
00691 void autoScaleAll() {v->autoScaleAll();}
00692 LRange *XRange() { return v->Range(0); }
00693 LRange *YRange() { return v->Range(1); }
00694 LRange *ZRange() { return v->Range(2); }
00695 void setXRange(double x1, double x2) {v->setXRange(x1,x2); }
00696 void setYRange(double y1, double y2) {v->setYRange(y1,y2); }
00697 void setZRange(double z1, double z2) {v->setZRange(z1,z2); }
00698 QColor Background() { return v->Background().color();}
00699 QColor graphBackground() { return v->graphBackground().color();}
00700 QBrush BackgroundBrush() { return v->Background();}
00701 QBrush graphBackgroundBrush() { return v->graphBackground();}
00702 void setBackground(QColor c) { v->setBackground(QBrush(c));}
00703 void setBackground(QBrush c) { v->setBackground(c);}
00704 void setBackground(QString c) { v->setBackground(QBrush(QColor(c)));}
00705 void setGraphBackground(QColor c) { v->setGraphBackground(QBrush(c));}
00706 void setGraphBackground(QBrush c) { v->setGraphBackground(c);}
00707 void setGraphBackground(QString c) { v->setGraphBackground(QBrush(QColor(c)));}
00708
00709 bool Transparent() { return v->Transparent(); }
00710 void setTransparent(bool t) { v->setTransparent(t); }
00711 int ClipOffset() { return v->ClipOffset(); }
00712 void setClipOffset(int c) { v->setClipOffset(c);}
00713 double Baseline() { return v->Baseline(); }
00714 void setBaseline(double b) { v->setBaseline(b); }
00715 double XBaseline() { return v->XBaseline(); }
00716 void setXBaseline(double b) { v->setXBaseline(b); }
00717 bool BaselineEnabled() { return v->BaselineEnabled(); }
00718 bool XBaselineEnabled() { return v->XBaselineEnabled(); }
00719 void enableBaseline(bool e=true) { v->enableBaseline(e); }
00720 void setBaselineEnabled(bool e=true) { v->enableBaseline(e); }
00721 void enableXBaseline(bool e=true) { v->enableXBaseline(e); }
00722 void setXBaselineEnabled(bool e=true) { v->enableXBaseline(e); }
00723 private:
00724 PlotQWT3D *v;
00725 };
00726
00727 class PlotPieWrapper : public QObject
00728 {
00729 Q_OBJECT
00730 public:
00731 PlotPieWrapper(PlotPie *v) : v(v) {}
00732 public slots:
00733
00734 Legend* getLegend() { return v->getLegend(); }
00735 Label* Title() { return v->Title(); }
00736 Axis *getAxis(int i) { return v->getAxis(i); }
00737 void setRange(LRange *r, int i) { v->setRange(r,i); }
00738 LRange* Range(int i) { return v->Range(i); }
00739 void setActRange(LRange *r, int i) { v->setActRange(r,i); }
00740 LRange* ActRange(int i) { return v->ActRange(i); }
00741 void setRegionMin(double min) { v->setRegionMin(min); }
00742 void setRegionMax(double max) { v->setRegionMax(max); }
00743 void setRegion(double min, double max) { v->setRegion(min,max); }
00744 double RegionMin() {return v->RegionMin(); }
00745 double RegionMax() {return v->RegionMax(); }
00746 LRange *Region() { return v->Region(); }
00747 bool regionEnabled() { return v->regionEnabled(); }
00748 void enableRegion(bool e=true) { v->enableRegion(e); }
00749 void setRegionEnabled(bool e=true) { v->enableRegion(e); }
00750
00751 bool marksEnabled() { return v->marksEnabled(); }
00752 void enableMarks(bool m=true) { v->enableMarks(m); }
00753 void setMarksEnabled(bool m=true) { v->enableMarks(m); }
00754 LRange *markX() { return v->markX(); }
00755 void setMarkX(LRange *l) { v->setMarkX(l); }
00756 LRange *markY() { return v->markY(); }
00757 void setMarkY(LRange *l) { v->setMarkY(l); }
00758
00759 void setPosition(double x, double y) { v->setPosition(x,y);}
00760 Point Position() { return v->Position(); }
00761 void setSize(double x, double y) { v->setSize(x,y);}
00762 Point Size() { return v->Size(); }
00763 void enabledAspectRatio(bool a=true) { v->enableAspectRatio(a); }
00764 bool AspectRatioEnabled() { return v->AspectRatioEnabled(); }
00765 void autoScaleX() {v->autoScaleX();}
00766 void autoScaleY() {v->autoScaleY();}
00767 void autoScaleZ() {v->autoScaleZ();}
00768 void autoScaleAll() {v->autoScaleAll();}
00769 LRange *XRange() { return v->Range(0); }
00770 LRange *YRange() { return v->Range(1); }
00771 LRange *ZRange() { return v->Range(2); }
00772 void setXRange(double x1, double x2) {v->setXRange(x1,x2); }
00773 void setYRange(double y1, double y2) {v->setYRange(y1,y2); }
00774 void setZRange(double z1, double z2) {v->setZRange(z1,z2); }
00775 QColor Background() { return v->Background().color();}
00776 QColor graphBackground() { return v->graphBackground().color();}
00777 QBrush BackgroundBrush() { return v->Background();}
00778 QBrush graphBackgroundBrush() { return v->graphBackground();}
00779 void setBackground(QColor c) { v->setBackground(QBrush(c));}
00780 void setBackground(QBrush c) { v->setBackground(c);}
00781 void setBackground(QString c) { v->setBackground(QBrush(QColor(c)));}
00782 void setGraphBackground(QColor c) { v->setGraphBackground(QBrush(c));}
00783 void setGraphBackground(QBrush c) { v->setGraphBackground(c);}
00784 void setGraphBackground(QString c) { v->setGraphBackground(QBrush(QColor(c)));}
00785
00786 bool Transparent() { return v->Transparent(); }
00787 void setTransparent(bool t) { v->setTransparent(t); }
00788 int ClipOffset() { return v->ClipOffset(); }
00789 void setClipOffset(int c) { v->setClipOffset(c);}
00790 double Baseline() { return v->Baseline(); }
00791 void setBaseline(double b) { v->setBaseline(b); }
00792 double XBaseline() { return v->XBaseline(); }
00793 void setXBaseline(double b) { v->setXBaseline(b); }
00794 bool BaselineEnabled() { return v->BaselineEnabled(); }
00795 bool XBaselineEnabled() { return v->XBaselineEnabled(); }
00796 void enableBaseline(bool e=true) { v->enableBaseline(e); }
00797 void setBaselineEnabled(bool e=true) { v->enableBaseline(e); }
00798 void enableXBaseline(bool e=true) { v->enableXBaseline(e); }
00799 void setXBaselineEnabled(bool e=true) { v->enableXBaseline(e); }
00800 private:
00801 PlotPie *v;
00802 };
00803
00804 class PlotPolarWrapper : public QObject
00805 {
00806 Q_OBJECT
00807 public:
00808 PlotPolarWrapper(PlotPolar *v) : v(v) {}
00809 public slots:
00810
00811 Legend* getLegend() { return v->getLegend(); }
00812 Label* Title() { return v->Title(); }
00813 Axis *getAxis(int i) { return v->getAxis(i); }
00814 void setRange(LRange *r, int i) { v->setRange(r,i); }
00815 LRange* Range(int i) { return v->Range(i); }
00816 void setActRange(LRange *r, int i) { v->setActRange(r,i); }
00817 LRange* ActRange(int i) { return v->ActRange(i); }
00818 void setRegionMin(double min) { v->setRegionMin(min); }
00819 void setRegionMax(double max) { v->setRegionMax(max); }
00820 void setRegion(double min, double max) { v->setRegion(min,max); }
00821 double RegionMin() {return v->RegionMin(); }
00822 double RegionMax() {return v->RegionMax(); }
00823 LRange *Region() { return v->Region(); }
00824 bool regionEnabled() { return v->regionEnabled(); }
00825 void enableRegion(bool e=true) { v->enableRegion(e); }
00826 void setRegionEnabled(bool e=true) { v->enableRegion(e); }
00827
00828 bool marksEnabled() { return v->marksEnabled(); }
00829 void enableMarks(bool m=true) { v->enableMarks(m); }
00830 void setMarksEnabled(bool m=true) { v->enableMarks(m); }
00831 LRange *markX() { return v->markX(); }
00832 void setMarkX(LRange *l) { v->setMarkX(l); }
00833 LRange *markY() { return v->markY(); }
00834 void setMarkY(LRange *l) { v->setMarkY(l); }
00835
00836 void setPosition(double x, double y) { v->setPosition(x,y);}
00837 Point Position() { return v->Position(); }
00838 void setSize(double x, double y) { v->setSize(x,y);}
00839 Point Size() { return v->Size(); }
00840 void enabledAspectRatio(bool a=true) { v->enableAspectRatio(a); }
00841 bool AspectRatioEnabled() { return v->AspectRatioEnabled(); }
00842 void autoScaleX() {v->autoScaleX();}
00843 void autoScaleY() {v->autoScaleY();}
00844 void autoScaleZ() {v->autoScaleZ();}
00845 void autoScaleAll() {v->autoScaleAll();}
00846 LRange *XRange() { return v->Range(0); }
00847 LRange *YRange() { return v->Range(1); }
00848 LRange *ZRange() { return v->Range(2); }
00849 void setXRange(double x1, double x2) {v->setXRange(x1,x2); }
00850 void setYRange(double y1, double y2) {v->setYRange(y1,y2); }
00851 void setZRange(double z1, double z2) {v->setZRange(z1,z2); }
00852 QColor Background() { return v->Background().color();}
00853 QColor graphBackground() { return v->graphBackground().color();}
00854 QBrush BackgroundBrush() { return v->Background();}
00855 QBrush graphBackgroundBrush() { return v->graphBackground();}
00856 void setBackground(QColor c) { v->setBackground(QBrush(c));}
00857 void setBackground(QBrush c) { v->setBackground(c);}
00858 void setBackground(QString c) { v->setBackground(QBrush(QColor(c)));}
00859 void setGraphBackground(QColor c) { v->setGraphBackground(QBrush(c));}
00860 void setGraphBackground(QBrush c) { v->setGraphBackground(c);}
00861 void setGraphBackground(QString c) { v->setGraphBackground(QBrush(QColor(c)));}
00862
00863 bool Transparent() { return v->Transparent(); }
00864 void setTransparent(bool t) { v->setTransparent(t); }
00865 int ClipOffset() { return v->ClipOffset(); }
00866 void setClipOffset(int c) { v->setClipOffset(c);}
00867 double Baseline() { return v->Baseline(); }
00868 void setBaseline(double b) { v->setBaseline(b); }
00869 double XBaseline() { return v->XBaseline(); }
00870 void setXBaseline(double b) { v->setXBaseline(b); }
00871 bool BaselineEnabled() { return v->BaselineEnabled(); }
00872 bool XBaselineEnabled() { return v->XBaselineEnabled(); }
00873 void enableBaseline(bool e=true) { v->enableBaseline(e); }
00874 void setBaselineEnabled(bool e=true) { v->enableBaseline(e); }
00875 void enableXBaseline(bool e=true) { v->enableXBaseline(e); }
00876 void setXBaselineEnabled(bool e=true) { v->enableXBaseline(e); }
00877 private:
00878 PlotPolar *v;
00879 };
00880
00881 class PlotTernaryWrapper : public QObject
00882 {
00883 Q_OBJECT
00884 public:
00885 PlotTernaryWrapper(PlotTernary *v) : v(v) {}
00886 public slots:
00887
00888 Legend* getLegend() { return v->getLegend(); }
00889 Label* Title() { return v->Title(); }
00890 Axis *getAxis(int i) { return v->getAxis(i); }
00891 void setRange(LRange *r, int i) { v->setRange(r,i); }
00892 LRange* Range(int i) { return v->Range(i); }
00893 void setActRange(LRange *r, int i) { v->setActRange(r,i); }
00894 LRange* ActRange(int i) { return v->ActRange(i); }
00895 void setRegionMin(double min) { v->setRegionMin(min); }
00896 void setRegionMax(double max) { v->setRegionMax(max); }
00897 void setRegion(double min, double max) { v->setRegion(min,max); }
00898 double RegionMin() {return v->RegionMin(); }
00899 double RegionMax() {return v->RegionMax(); }
00900 LRange *Region() { return v->Region(); }
00901 bool regionEnabled() { return v->regionEnabled(); }
00902 void enableRegion(bool e=true) { v->enableRegion(e); }
00903 void setRegionEnabled(bool e=true) { v->enableRegion(e); }
00904
00905 bool marksEnabled() { return v->marksEnabled(); }
00906 void enableMarks(bool m=true) { v->enableMarks(m); }
00907 void setMarksEnabled(bool m=true) { v->enableMarks(m); }
00908 LRange *markX() { return v->markX(); }
00909 void setMarkX(LRange *l) { v->setMarkX(l); }
00910 LRange *markY() { return v->markY(); }
00911 void setMarkY(LRange *l) { v->setMarkY(l); }
00912
00913 void setPosition(double x, double y) { v->setPosition(x,y);}
00914 Point Position() { return v->Position(); }
00915 void setSize(double x, double y) { v->setSize(x,y);}
00916 Point Size() { return v->Size(); }
00917 void enabledAspectRatio(bool a=true) { v->enableAspectRatio(a); }
00918 bool AspectRatioEnabled() { return v->AspectRatioEnabled(); }
00919 void autoScaleX() {v->autoScaleX();}
00920 void autoScaleY() {v->autoScaleY();}
00921 void autoScaleZ() {v->autoScaleZ();}
00922 void autoScaleAll() {v->autoScaleAll();}
00923 LRange *XRange() { return v->Range(0); }
00924 LRange *YRange() { return v->Range(1); }
00925 LRange *ZRange() { return v->Range(2); }
00926 void setXRange(double x1, double x2) {v->setXRange(x1,x2); }
00927 void setYRange(double y1, double y2) {v->setYRange(y1,y2); }
00928 void setZRange(double z1, double z2) {v->setZRange(z1,z2); }
00929 QColor Background() { return v->Background().color();}
00930 QColor graphBackground() { return v->graphBackground().color();}
00931 QBrush BackgroundBrush() { return v->Background();}
00932 QBrush graphBackgroundBrush() { return v->graphBackground();}
00933 void setBackground(QColor c) { v->setBackground(QBrush(c));}
00934 void setBackground(QBrush c) { v->setBackground(c);}
00935 void setBackground(QString c) { v->setBackground(QBrush(QColor(c)));}
00936 void setGraphBackground(QColor c) { v->setGraphBackground(QBrush(c));}
00937 void setGraphBackground(QBrush c) { v->setGraphBackground(c);}
00938 void setGraphBackground(QString c) { v->setGraphBackground(QBrush(QColor(c)));}
00939
00940 bool Transparent() { return v->Transparent(); }
00941 void setTransparent(bool t) { v->setTransparent(t); }
00942 int ClipOffset() { return v->ClipOffset(); }
00943 void setClipOffset(int c) { v->setClipOffset(c);}
00944 double Baseline() { return v->Baseline(); }
00945 void setBaseline(double b) { v->setBaseline(b); }
00946 double XBaseline() { return v->XBaseline(); }
00947 void setXBaseline(double b) { v->setXBaseline(b); }
00948 bool BaselineEnabled() { return v->BaselineEnabled(); }
00949 bool XBaselineEnabled() { return v->XBaselineEnabled(); }
00950 void enableBaseline(bool e=true) { v->enableBaseline(e); }
00951 void setBaselineEnabled(bool e=true) { v->enableBaseline(e); }
00952 void enableXBaseline(bool e=true) { v->enableXBaseline(e); }
00953 void setXBaselineEnabled(bool e=true) { v->enableXBaseline(e); }
00954 private:
00955 PlotTernary *v;
00956 };
00957
00958
00959
00960 #ifdef HAVE_QSA_FAC
00961 class WrapperFactory : public QSWrapperFactory
00962 {
00963 public:
00964 WrapperFactory(MainWin *mw, QWorkspace *ws);
00965 QObject *create( const QString &className,void *ptr);
00966 private:
00967 MainWin *mw;
00968 QWorkspace *ws;
00969 };
00970 #endif
00971
00972 #endif //WRAPPERFACTORY_H