00001 #include "splinegraph.h" 00002 #include <qvbox.h> 00003 #include <qpushbutton.h> 00004 00005 class ZoomableSplineGraph : public QVBox { 00006 Q_OBJECT 00007 00008 public: 00009 ZoomableSplineGraph(SplineInterpolator *, float _xmin, float _xmax, float _ymin, float _ymax); 00010 void setPoints(vector<float> &_xpts, vector<float> &_ypts); 00011 00012 public slots: 00013 void XZoomInClicked(); 00014 void XZoomOutClicked(); 00015 00016 private: 00017 SplineGraph * sg; 00018 float xmin,xmax,ymin,ymax; 00019 int xzoom; 00020 QPushButton *zi,*zo; 00021 }; 00022 00023