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) { gridenabled[index] = b; }
00017         bool gridEnabled(int index) { return gridenabled[index]; }
00018         void enableBorder(int index,bool b) { 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 setRanges(LRange* r) {range[0]=r[0];range[1]=r[1];range[2]=r[2];}
00026         void setActRanges(LRange* r) {actrange[0]=r[0];actrange[1]=r[1];actrange[2]=r[2];}
00027 private:
00028         Axis axis[12];          // x, y, z, x2, y2, z2, x3, y3, z3, x4, y4, z4
00029         bool borderenabled[12]; // x, y, z, x2, y2, z2, x3, y3, z3, x4, y4, z4
00030         bool gridenabled[24];
00031         // x, xmin, y, ymin, z, zmin, x2, x2min, y2, y2min , z2, z2min, 
00032         // x3, x3min, y3, y3min, z3, z3min, x4, x4min, y4, y4min, z4, z4min
00033 };
00034 
00035 #endif // PLOT3D_H

Generated on Sun Aug 29 14:56:04 2004 for LabPlot by doxygen 1.3.6