GNU Radio Manual and C++ API Reference 3.10.5.1
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 * SPDX-License-Identifier: GPL-3.0-or-later
8 *
9 */
10
11#ifndef TIMERASTER_GLOBAL_DATA_HPP
12#define TIMERASTER_GLOBAL_DATA_HPP
13
14#include <qwt_raster_data.h>
15#include <cinttypes>
16
17#include <qwt_interval.h>
18
19class TimeRasterData : public QwtRasterData
20{
21public:
22 TimeRasterData(const double rows, const double cols);
23 ~TimeRasterData() override;
24
25 virtual void reset();
26 virtual void copy(const TimeRasterData*);
27
28 virtual void resizeData(const double rows, const double cols);
29
30 virtual QwtRasterData* copy() const;
31
32#if QWT_VERSION >= 0x060200
33 virtual QwtInterval interval(Qt::Axis) const override;
34 void setInterval(Qt::Axis, const QwtInterval&);
35#endif
36
37 double value(double x, double y) const override;
38
39 virtual double getNumCols() const;
40 virtual double getNumRows() const;
41
42 virtual void addData(const double*, const int);
43
45
46protected:
47 std::vector<double> d_data;
48 double d_rows, d_cols;
49 double d_resid;
51
52 QwtInterval d_intensityRange;
53
54#if QWT_VERSION >= 0x060200
55 QwtInterval d_intervals[3];
56#endif
57
58private:
59};
60
61#endif /* TIMERASTER_GLOBAL_DATA_HPP */
Definition: timeRasterGlobalData.h:20
void incrementResidual()
virtual QwtRasterData * copy() const
virtual void addData(const double *, const int)
double value(double x, double y) const override
virtual void copy(const TimeRasterData *)
double d_rows
Definition: timeRasterGlobalData.h:48
double d_cols
Definition: timeRasterGlobalData.h:48
int d_totalitems
Definition: timeRasterGlobalData.h:50
int d_nitems
Definition: timeRasterGlobalData.h:50
QwtInterval d_intensityRange
Definition: timeRasterGlobalData.h:52
~TimeRasterData() override
virtual void resizeData(const double rows, const double cols)
virtual double getNumRows() const
virtual void reset()
double d_resid
Definition: timeRasterGlobalData.h:49
std::vector< double > d_data
Definition: timeRasterGlobalData.h:47
virtual double getNumCols() const
TimeRasterData(const double rows, const double cols)