Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029 #ifndef IRREGULARGRID2DPLOT_H
00030 #define IRREGULARGRID2DPLOT_H
00031
00032 #include <QGpGuiTools.h>
00033
00034 #include "GridPlot.h"
00035
00036 namespace SciFigs {
00037
00038 class SCIFIGS_EXPORT IrregularGrid2DPlot : public GridPlot
00039 {
00040 Q_OBJECT
00041 public:
00042 IrregularGrid2DPlot(AxisWindow * parent=0);
00043 ~IrregularGrid2DPlot();
00044
00045 virtual const QString& xml_tagName() const {return xmlIrregularGrid2DPlotTag;}
00046 static const QString xmlIrregularGrid2DPlotTag;
00047
00048 virtual bool mouseReleaseEvent (QMouseEvent * e, int);
00049 virtual bool trackRectangle(int, double rx1, double ry1, double rx2, double ry2,
00050 Qt::KeyboardModifiers eventState);
00051
00052 const IrregularGrid2D& grid() const {return _grid;}
00053 void setGrid(const IrregularGrid2D& grid);
00054
00055 void setLinearPalette();
00056 void setLinearPalette(double minimum);
00057 void setLinearPalette(double minimum, double maximum) {GridPlot::setLinearPalette(minimum, maximum);}
00058
00059 virtual Rect boundingRect() const;
00060 virtual QString coordinateTipInfo(const Point2D& p) const;
00061 private slots:
00062 void exportValues(QString fileName=QString::null);
00063 signals:
00064 void clicked(int ix, int iy);
00065 protected:
00066 virtual void paintData(const LayerPainterRequest& lp, QPainter& p, double dotpercm) const;
00067
00068 IrregularGrid2D _grid;
00069 private:
00070 void addActions();
00071
00072 virtual void xml_writeChildren(XML_WRITECHILDREN_ARGS) const;
00073 virtual XMLMember xml_member(XML_MEMBER_ARGS);
00074 };
00075
00076 }
00077
00078 #endif // IRREGULARGRID2DPLOT.H