Radio Control  Control Software and GUI for the Panoradio SDR, by DC9ST 2016
waterfalldata.h
1 #ifndef WATERFALLDATA_H
2 #define WATERFALLDATA_H
3 
4 #include <iostream>
5 #include <QTime>
6 
7 using namespace std;
8 
11 {
12  double **data_array_; // 2 dimensional data array
13  double *scroll_pointer_temp_; // temporary pointer to a row, required to implement waterfall "scrolling"
14 
15  int data_array_xsize_; // size of the data array x
16  int data_array_ysize_; // y
17 
18  double background_value_; // value for "background", i.e. areas with no information
19 
20 public:
24  WaterfallData(int data_array_xsize, int data_array_ysize);
25 
27  ~WaterfallData();
28 
31  void set_background_value(double background_value) {background_value_ = background_value;}
32 
35  void set_next_data_line(double *array);
36 
39  double** get_ptr_to_array() {return data_array_;}
40 
43  void shift_data_array (int shift_value);
44 
47  void zoom_data_in(int center_idx);
48 
51  void zoom_data_out(int center_idx);
52 
54  void delete_all_data();
55 };
56 
57 #endif // WATERFALLDATA_H
holds a 2 dimensional array for display in a Waterfall Plot (instanciated by class WaterfallPlot) ...
Definition: waterfalldata.h:10
double ** get_ptr_to_array()
accesses a pointer to the 2 dimensional data array returns pointer
Definition: waterfalldata.h:39
void set_background_value(double background_value)
set the value for "background" areas with no information, which occurs e.g. at zoom out (a default va...
Definition: waterfalldata.h:31