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

PlotQWT3D.h

Go to the documentation of this file.
00001 //LabPlot : PlotQWT3D.h
00002 
00003 #ifndef PLOTQWT3D_H
00004 #define PLOTQWT3D_H
00005 
00006 #ifdef HAVE_GL
00007 #include "qwt3d_surfaceplot.h"
00008 #endif
00009 #include "Plot.h"
00010 
00011 class PlotQWT3D : public Plot
00012 #ifdef HAVE_GL
00013         , public Qwt3D::SurfacePlot
00014 #endif
00015 {
00016 public:
00017         PlotQWT3D(Worksheet *p);
00018         ~PlotQWT3D();
00019         QStringList Info();
00020         void mouseDoubleClickEvent(QMouseEvent *e);
00021         
00022         void Export(QPainter *p, QString fn,QString format, int w, int h);
00023         void draw(QPainter *p, int w, int h);
00024         void drawCurves(QPainter *p, int w, int h);
00025 #ifdef HAVE_GL
00026         void setPlotStyle(Qwt3D::PLOTSTYLE p) { plotstyle = p; }
00027         Qwt3D::PLOTSTYLE PlotStyle() { return plotstyle; }
00028         void setCoordinateStyle(Qwt3D::COORDSTYLE c) { coordinatestyle = c; }
00029         Qwt3D::COORDSTYLE CoordinateStyle() { return coordinatestyle; }
00030         void setFloorStyle( Qwt3D::FLOORSTYLE f) { floorstyle = f; }
00031         Qwt3D::FLOORSTYLE FloorStyle() { return floorstyle; }
00032         void setColorVector(Qwt3D::ColorVector c) { cv=c; }
00033         Qwt3D::ColorVector getColorVector() { return cv; }
00034 #endif
00035         // unused       
00036         void saveAxes(QTextStream *) {}
00037         void openAxes(QTextStream *,int) {}
00038         void saveXML(QDomDocument doc, QDomElement plottag);
00039         void openXML(QDomElement e);
00040         Axis *getAxis(int i) { return &axis[i]; }
00041         void setRange(LRange* r ,int i) {range[i] = *r; }
00042         void setActRange(LRange* r,int i) {actrange[i] = *r; }
00043         void setRanges(LRange* r) {range[0]=r[0];range[1]=r[1];range[2]=r[2]; }
00044         void setActRanges(LRange* r) {actrange[0]=r[0];actrange[1]=r[1];actrange[2]=r[2]; }
00045 //      void setBorder(int item, bool on) { kdDebug()<<"PlotQWT3D::setBorder() : "<<item<<' '<<on<<endl; }
00046         int aspectRatio() { return aspect_ratio; }
00047         void setAspectRatio(int a) { aspect_ratio=a; }
00048         bool mouseDisabled() { return mouse_disabled; }
00049         void disableMouse(bool m) { mouse_disabled=m; }
00050         int Resolution() { return resolution; }
00051         void setDataResolution(int res) { resolution=res; }
00052 private:
00053         void draw();
00054         Axis axis[12];
00055 #ifdef HAVE_GL
00056         Qwt3D::PLOTSTYLE plotstyle;
00057         Qwt3D::COORDSTYLE coordinatestyle;
00058         Qwt3D::FLOORSTYLE floorstyle;
00059         Qwt3D::ColorVector cv;
00060 #endif
00061         int aspect_ratio;       
00062         bool mouse_disabled;
00063         int resolution;
00064 };
00065 
00066 #endif //PLOTQWT3D_H

Generated on Sat Oct 13 21:55:01 2007 for LabPlot by  doxygen 1.4.4