GNU Radio Manual and C++ API Reference 3.8.5.0
The Free & Open Software Radio Ecosystem
 
Loading...
Searching...
No Matches
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_interval.h>
31
32typedef QwtInterval QwtDoubleInterval;
33#endif
34
35class TimeRasterData : public QwtRasterData
36{
37public:
38 TimeRasterData(const double rows, const double cols);
39 virtual ~TimeRasterData();
40
41 virtual void reset();
42 virtual void copy(const TimeRasterData*);
43
44 virtual void resizeData(const double rows, const double cols);
45
46 virtual QwtRasterData* copy() const;
47
48#if QWT_VERSION < 0x060000
49 virtual QwtDoubleInterval range() const;
50 virtual void setRange(const QwtDoubleInterval&);
51#elif QWT_VERSION >= 0x060200
52 virtual QwtInterval interval(Qt::Axis) const;
53 void setInterval(Qt::Axis, const QwtInterval&);
54#endif
55
56 virtual double value(double x, double y) const;
57
58 virtual double getNumCols() const;
59 virtual double getNumRows() const;
60
61 virtual void addData(const double*, const int);
62
64
65protected:
66 double* d_data;
67 double d_rows, d_cols;
68 double d_resid;
70
71#if QWT_VERSION < 0x060000
72 QwtDoubleInterval d_intensityRange;
73#else
74 QwtInterval d_intensityRange;
75#endif
76
77#if QWT_VERSION >= 0x060200
78 QwtInterval d_intervals[3];
79#endif
80
81private:
82};
83
84#endif /* TIMERASTER_GLOBAL_DATA_HPP */
Definition timeRasterGlobalData.h:36
void incrementResidual()
virtual QwtRasterData * copy() const
virtual void addData(const double *, const int)
int d_data_size
Definition timeRasterGlobalData.h:69
virtual void setRange(const QwtDoubleInterval &)
virtual void copy(const TimeRasterData *)
double d_rows
Definition timeRasterGlobalData.h:67
double d_cols
Definition timeRasterGlobalData.h:67
virtual double value(double x, double y) const
int d_totalitems
Definition timeRasterGlobalData.h:69
int d_nitems
Definition timeRasterGlobalData.h:69
QwtDoubleInterval d_intensityRange
Definition timeRasterGlobalData.h:72
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:68
double * d_data
Definition timeRasterGlobalData.h:66
virtual double getNumCols() const
TimeRasterData(const double rows, const double cols)