GNU Radio Manual and C++ API Reference  3.8.1.0
The Free & Open Software Radio Ecosystem
timeRasterGlobalData.h
Go to the documentation of this file.
1 /* -*- c++ -*- */
2 /*
3  * Copyright 2012,2013 Free Software Foundation, Inc.
4  *
5  * This file is part of GNU Radio
6  *
7  * GNU Radio is free software; you can redistribute it and/or modify
8  * it under the terms of the GNU General Public License as published by
9  * the Free Software Foundation; either version 3, or (at your option)
10  * any later version.
11  *
12  * GNU Radio is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  * GNU General Public License for more details.
16  *
17  * You should have received a copy of the GNU General Public License
18  * along with GNU Radio; see the file COPYING. If not, write to
19  * the Free Software Foundation, Inc., 51 Franklin Street,
20  * Boston, MA 02110-1301, USA.
21  */
22 
23 #ifndef TIMERASTER_GLOBAL_DATA_HPP
24 #define TIMERASTER_GLOBAL_DATA_HPP
25 
26 #include <inttypes.h>
27 #include <qwt_raster_data.h>
28 
29 #if QWT_VERSION >= 0x060000
30 #include <qwt_compat.h>
31 #include <qwt_point_3d.h> // doesn't seem necessary, but is...
32 #endif
33 
34 class TimeRasterData : public QwtRasterData
35 {
36 public:
37  TimeRasterData(const double rows, const double cols);
38  virtual ~TimeRasterData();
39 
40  virtual void reset();
41  virtual void copy(const TimeRasterData*);
42 
43  virtual void resizeData(const double rows, const double cols);
44 
45  virtual QwtRasterData* copy() const;
46 
47 #if QWT_VERSION < 0x060000
48  virtual QwtDoubleInterval range() const;
49  virtual void setRange(const QwtDoubleInterval&);
50 #endif
51 
52  virtual double value(double x, double y) const;
53 
54  virtual double getNumCols() const;
55  virtual double getNumRows() const;
56 
57  virtual void addData(const double*, const int);
58 
59  void incrementResidual();
60 
61 protected:
62  double* d_data;
63  double d_rows, d_cols;
64  double d_resid;
66 
67 #if QWT_VERSION < 0x060000
68  QwtDoubleInterval d_intensityRange;
69 #else
70  QwtInterval d_intensityRange;
71 #endif
72 
73 private:
74 };
75 
76 #endif /* TIMERASTER_GLOBAL_DATA_HPP */
virtual void resizeData(const double rows, const double cols)
int d_data_size
Definition: timeRasterGlobalData.h:65
int d_nitems
Definition: timeRasterGlobalData.h:65
double d_cols
Definition: timeRasterGlobalData.h:63
virtual void setRange(const QwtDoubleInterval &)
virtual void reset()
Definition: timeRasterGlobalData.h:34
virtual ~TimeRasterData()
virtual QwtDoubleInterval range() const
double d_rows
Definition: timeRasterGlobalData.h:63
double * d_data
Definition: timeRasterGlobalData.h:62
int d_totalitems
Definition: timeRasterGlobalData.h:65
virtual double getNumRows() const
virtual double getNumCols() const
void incrementResidual()
virtual void addData(const double *, const int)
TimeRasterData(const double rows, const double cols)
QwtDoubleInterval d_intensityRange
Definition: timeRasterGlobalData.h:68
virtual QwtRasterData * copy() const
double d_resid
Definition: timeRasterGlobalData.h:64
virtual double value(double x, double y) const