GNU Radio Manual and C++ API Reference 3.7.14.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// clang-format off
31#include <qwt_point_3d.h> // doesn't seem necessary, but is...
32#include <qwt_compat.h>
33// clang-format on
34#endif
35
36class TimeRasterData : public QwtRasterData
37{
38public:
39 TimeRasterData(const double rows, const double cols);
40 virtual ~TimeRasterData();
41
42 virtual void reset();
43 virtual void copy(const TimeRasterData*);
44
45 virtual void resizeData(const double rows, const double cols);
46
47 virtual QwtRasterData* copy() const;
48
49#if QWT_VERSION < 0x060000
50 virtual QwtDoubleInterval range() const;
51 virtual void setRange(const QwtDoubleInterval&);
52#endif
53
54 virtual double value(double x, double y) const;
55
56 virtual double getNumCols() const;
57 virtual double getNumRows() const;
58
59 virtual void addData(const double*, const int);
60
62
63protected:
64 double* d_data;
65 double d_rows, d_cols;
66 double d_resid;
68
69#if QWT_VERSION < 0x060000
70 QwtDoubleInterval d_intensityRange;
71#else
72 QwtInterval d_intensityRange;
73#endif
74
75private:
76};
77
78#endif /* TIMERASTER_GLOBAL_DATA_HPP */
Definition: timeRasterGlobalData.h:37
void incrementResidual()
virtual QwtRasterData * copy() const
virtual void addData(const double *, const int)
int d_data_size
Definition: timeRasterGlobalData.h:67
virtual void setRange(const QwtDoubleInterval &)
virtual void copy(const TimeRasterData *)
double d_rows
Definition: timeRasterGlobalData.h:65
double d_cols
Definition: timeRasterGlobalData.h:65
virtual double value(double x, double y) const
int d_totalitems
Definition: timeRasterGlobalData.h:67
int d_nitems
Definition: timeRasterGlobalData.h:67
QwtDoubleInterval d_intensityRange
Definition: timeRasterGlobalData.h:70
virtual void resizeData(const double rows, const double cols)
virtual QwtDoubleInterval range() const
virtual ~TimeRasterData()
virtual double getNumRows() const
virtual void reset()
double d_resid
Definition: timeRasterGlobalData.h:66
double * d_data
Definition: timeRasterGlobalData.h:64
virtual double getNumCols() const
TimeRasterData(const double rows, const double cols)