21 #include <qgroupbox.h>
25 #define SYMBOL_MAX_NUMOF_POINTS 20
29 class DetachedComplexfloatBox1D;
38 complexfloatBox1D(
const float *data1,
const float *data2,
int n,QWidget *parent,
const char *name,
bool fixed_size,
const char *xAxisLabel=0,
const char *yAxisLabelLeft=0,
const char *yAxisLabelRight=0,
float min_x=0.0,
float max_x=0.0,
bool detachable=
false);
39 complexfloatBox1D(
const double *data1,
const double *data2,
int n,QWidget *parent,
const char *name,
bool fixed_size,
const char *xAxisLabel=0,
const char *yAxisLabelLeft=0,
const char *yAxisLabelRight=0,
float min_x=0.0,
float max_x=0.0,
bool detachable=
false);
44 void refresh(
const float *data1,
const float *data2,
int n,
float min_x,
float max_x);
45 void refresh(
const float *data1,
const float *data2,
int n) {refresh(data1,data2,n,0.0,0.0);}
47 void refresh(
const double *data1,
const double *data2,
int n,
float min_x,
float max_x);
48 void refresh(
const double *data1,
const double *data2,
int n) {refresh(data1,data2,n,0.0,0.0);}
56 void mousePressedInPlot(
const QMouseEvent& qme);
57 void mouseReleasedInPlot(
const QMouseEvent& qme);
61 void common_init(
const char *name,
bool fixed_size,
bool data1,
bool data2,
const char *xAxisLabel,
const char *yAxisLabelLeft,
const char *yAxisLabelRight,
bool detachable);
63 void create_x_cache(
float min_x,
float max_x,
int n);
72 const double* data1_ptr;
73 const double* data2_ptr;
76 STD_string name_cache;
77 STD_string xAxisLabel_cache;
78 STD_string yAxisLabelLeft_cache;
79 STD_string yAxisLabelRight_cache;
83 bool detachable_cache;
89 int x_pressed,y_pressed;
91 DetachedComplexfloatBox1D* detached;
98 class DetachedComplexfloatBox1D :
public GuiDialog {
101 DetachedComplexfloatBox1D(
const double *data1,
const double *data2,
int n,
complexfloatBox1D *parent,
const char *name,
bool fixed_size,
const char *xAxisLabel,
const char *yAxisLabelLeft,
const char *yAxisLabelRight,
float min_x,
float max_x);
103 ~DetachedComplexfloatBox1D();
105 void refresh(
const double *data1,
const double *data2,
int n,
float min_x,
float max_x);