GNU Radio Manual and C++ API Reference  3.7.9.2
The Free & Open Software Radio Ecosystem
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
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 <qwt_raster_data.h>
27 #include <inttypes.h>
28 
29 #if QWT_VERSION >= 0x060000
30 #include <qwt_point_3d.h> // doesn't seem necessary, but is...
31 #include <qwt_compat.h>
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 
63  double* d_data;
64  double d_rows, d_cols;
65  double d_resid;
67 
68 #if QWT_VERSION < 0x060000
69  QwtDoubleInterval d_intensityRange;
70 #else
71  QwtInterval d_intensityRange;
72 #endif
73 
74 private:
75 
76 };
77 
78 #endif /* TIMERASTER_GLOBAL_DATA_HPP */
virtual void resizeData(const double rows, const double cols)
int d_data_size
Definition: timeRasterGlobalData.h:66
int d_nitems
Definition: timeRasterGlobalData.h:66
double d_cols
Definition: timeRasterGlobalData.h:64
virtual void setRange(const QwtDoubleInterval &)
virtual void reset()
Definition: timeRasterGlobalData.h:34
virtual ~TimeRasterData()
virtual double getNumRows() const
double d_rows
Definition: timeRasterGlobalData.h:64
double * d_data
Definition: timeRasterGlobalData.h:63
int d_totalitems
Definition: timeRasterGlobalData.h:66
virtual double getNumCols() const
virtual QwtRasterData * copy() const
virtual double value(double x, double y) const
void incrementResidual()
virtual void addData(const double *, const int)
TimeRasterData(const double rows, const double cols)
QwtDoubleInterval d_intensityRange
Definition: timeRasterGlobalData.h:69
virtual QwtDoubleInterval range() const
double d_resid
Definition: timeRasterGlobalData.h:65