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

Plot2DSurface.h

Go to the documentation of this file.
00001 //LabPlot : Plot2DSurface.h
00002 
00003 #ifndef PLOT2DSURFACE_H
00004 #define PLOT2DSURFACE_H
00005 
00006 #include <iostream>
00007 #include "Plot2D.h"
00008 
00009 using namespace std;
00010 
00012 class Plot2DSurface:public Plot2D {
00013 public:
00014         Plot2DSurface(Worksheet *p);
00015         QStringList Info();
00016         void drawLegend(QPainter *p, int x, int y);
00017         void drawCurves(QPainter *p,int w, int h);
00018         bool contourEnabled() { return contourenabled; }
00019         void enableContour(bool e=true) { contourenabled = e; }
00020         QColor ContourColor() { return contour_color; }
00021         void setContourColor(QColor c) { contour_color = c; }
00022         void setContourColor(QString c) { contour_color = QColor(c); }
00023         bool ColoredContour() { return colored_contour; }
00024         void setColoredContour(bool c) {colored_contour = c; }
00025         bool Mesh(){ return mesh; }
00026         void setMesh(bool m) { mesh=m; }
00027         bool Relative() { return relative; }
00028         void setRelative(bool r) { relative=r; }
00029         int Brush(){ return brush; }
00030         void setBrush(int b) { brush=b; }
00031         bool densityEnabled() { return densityenabled; }
00032         void enableDensity(bool e=true) { densityenabled = e; }
00033         int Number() { return number; }
00034         void setNumber(int n) { number = n; }
00035         double Threshold() { return threshold; }
00036         void setThreshold(double t) { threshold = t; }
00037         int Palette() { return palette; }
00038         void setPalette(int p) { palette = p; }
00039         QColor Color(int value, int pal);       // used also by PlotDialog
00040 private:
00041         int graph_segment(QPainter *p,double x1,double y1, double z1, double x2, double y2, double z2,
00042                 double x3, double y3, double z3, double level);
00043         bool densityenabled;    // density enabled
00044         bool contourenabled;    // contour enabled
00045         QColor contour_color;   // contour line color
00046         bool colored_contour;   // colored contour lines
00047         bool mesh;              // draw mesh (grid)
00048         bool relative;          // use relative (full) color scale (e.g. 5-10 -> 0..255) or absolute (e.g. 5-10 -> 190..255)
00049         int brush;              // brush for density
00050         int number;             // number of level
00051         double threshold;       // threshold for plotting
00052         int palette;            // type of colorscale
00053 };
00054 
00055 #endif // PLOT2DSURFACE_H

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