00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018 #ifndef FLOAT1D_H
00019 #define FLOAT1D_H
00020
00021 #include "complex1d.h"
00022
00026 class floatBox1D : public complexfloatBox1D {
00027 Q_OBJECT
00028
00029 public:
00030 floatBox1D(const float *data,int n,QWidget *parent, const char *name, bool fixed_size, const char *xAxisLabel=0, const char *yAxisLabel=0, float min_x=0.0, float max_x=0.0, bool detachable=false);
00031 floatBox1D(const double *data,int n,QWidget *parent, const char *name, bool fixed_size, const char *xAxisLabel=0, const char *yAxisLabel=0, float min_x=0.0, float max_x=0.0, bool detachable=false);
00032
00033
00034 public slots:
00035 void refresh(const float* data,int n, float min_x, float max_x);
00036 void refresh(const float* data,int n) {refresh (data,n,0.0,0.0);}
00037
00038 void refresh(const double* data,int n, float min_x, float max_x);
00039 void refresh(const double* data,int n) {refresh (data,n,0.0,0.0);}
00040 };
00041
00042
00043 #endif