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 GRIDVIEWER_H
00030 #define GRIDVIEWER_H
00031
00032 #include <QGpGuiTools.h>
00033
00034 #include "GridPlot.h"
00035
00036 namespace SciFigs {
00037
00038 class SCIFIGS_EXPORT GridViewer : public GridPlot
00039 {
00040 Q_OBJECT
00041 public:
00042 GridViewer(AxisWindow * parent=0);
00043 ~GridViewer();
00044
00045 virtual const QString& xml_tagName() const {return xmlGridViewerTag;}
00046 static const QString xmlGridViewerTag;
00047
00048 virtual bool mouseReleaseEvent (QMouseEvent * e, int);
00049 virtual bool trackRectangle(int, double rx1,double ry1, double rx2, double ry2,
00050 Qt::KeyboardModifiers m);
00051 virtual Rect boundingRect() const;
00052
00053 void setGrid(Grid2D<double> * grid);
00054 signals:
00055 void clicked(int ix, int iy);
00056 protected:
00057 virtual void paintData(const LayerPainterRequest& lp, QPainter& p, double dotpercm) const;
00058 virtual void xml_writeChildren(XML_WRITECHILDREN_ARGS) const;
00059 virtual XMLMember xml_member(XML_MEMBER_ARGS);
00060 protected:
00061 Grid2D<double> * _grid;
00062 };
00063
00064 }
00065
00066 #endif // GRIDVIEWER_H