00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00024
00025 #ifndef QVIMAGECANVAS_H
00026 #define QVIMAGECANVAS_H
00027
00028 #include <qvgui/qvcanvas.h>
00029 #include <qvcore/qvpropertyholder.h>
00030 #include <qvcore/qvworker.h>
00031 #include <qvdta/qvpolyline.h>
00032
00088 class QVImageCanvas: public QVCanvas, public QVPropertyHolder
00089 {
00090 Q_OBJECT
00091 public:
00092 QVImageCanvas(const QString name = QString (), QWidget *parent=0);
00093 void linkProperty(QVWorker &worker, const QString propertyName);
00094 void setLowHigh(float low,float high);
00096 void viewer();
00098 private:
00099 float _low,_high;
00100 void draw(const QList<qvdta::QVPolyline> &contours);
00101 };
00102
00103
00105 #endif