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

Plot3D.h

Go to the documentation of this file.
00001 //LabPlot : Plot3D.h
00002 
00003 #ifndef PLOT3D_H
00004 #define PLOT3D_H
00005 
00006 #include "Plot.h"
00007 
00008 class Plot3D:public Plot {
00009 public:
00010         Plot3D(Worksheet *p);
00011         QStringList Info();
00012         ~Plot3D() {}
00013         Axis *getAxis(int i) { return &axis[i]; }
00014         void saveAxes(QTextStream *t);
00015         void openAxes(QTextStream *t,int version);
00016         void enableGrid(int index,bool b=true) { gridenabled[index] = b; }
00017         bool gridEnabled(int index) { return gridenabled[index]; }
00018         void enableBorder(int index,bool b=true) { borderenabled[index] = b; }
00019         bool borderEnabled(int index) { return borderenabled[index]; }
00020         void draw(QPainter* p,int w, int h);
00021         void drawBorder(QPainter* p,int w, int h,bool hide);
00022         void drawCurves(QPainter* p,int w, int h);
00023         void drawAxes(QPainter* p,int w, int h, bool hide);
00024         void setBorder(int item, bool on);
00025         void setRange(LRange* r,int i) {range[i]=*r;}
00026         void setActRange(LRange* r,int i) {actrange[i]=*r;}
00027         void setRanges(LRange* r) {range[0]=r[0];range[1]=r[1];range[2]=r[2];}
00028         void setActRanges(LRange* r) {actrange[0]=r[0];actrange[1]=r[1];actrange[2]=r[2];}
00029 private:
00030         Axis axis[12];          // x, y, z, x2, y2, z2, x3, y3, z3, x4, y4, z4
00031         bool borderenabled[12]; // x, y, z, x2, y2, z2, x3, y3, z3, x4, y4, z4
00032         bool gridenabled[24];
00033         // x, xmin, y, ymin, z, zmin, x2, x2min, y2, y2min , z2, z2min, 
00034         // x3, x3min, y3, y3min, z3, z3min, x4, x4min, y4, y4min, z4, z4min
00035 };
00036 
00037 #endif // PLOT3D_H

Generated on Fri Aug 19 21:34:45 2005 for LabPlot by doxygen 1.3.6