Loading...
Searching...
No Matches
waterfallGlobalData.h
Go to the documentation of this file.
/* -*- c++ -*- */
/*
* Copyright 2012 Free Software Foundation, Inc.
*
* This file is part of GNU Radio
*
* SPDX-License-Identifier: GPL-3.0-or-later
*
*/
#ifndef WATERFALL_GLOBAL_DATA_HPP
#define WATERFALL_GLOBAL_DATA_HPP
#include <qwt_raster_data.h>
#include <cinttypes>
#include <qwt_interval.h>
class WaterfallData : public QwtRasterData
{
public:
WaterfallData(const double, const double, const uint64_t, const unsigned int);
~WaterfallData() override;
virtual void reset();
virtual void copy(const WaterfallData*);
virtual void
resizeData(const double, const double, const uint64_t, const int history = 0);
virtual QwtRasterData* copy() const;
#if QWT_VERSION >= 0x060200
QwtInterval interval(Qt::Axis) const override;
void setInterval(Qt::Axis, const QwtInterval&);
#endif
double value(double x, double y) const override;
virtual uint64_t getNumFFTPoints() const;
virtual void addFFTData(const double*, const uint64_t, const int);
virtual const double* getSpectrumDataBuffer() const;
virtual void setSpectrumDataBuffer(const double*);
virtual int getNumLinesToUpdate() const;
virtual void setNumLinesToUpdate(const int);
virtual void incrementNumLinesToUpdate();
protected:
std::vector<double> _spectrumData;
uint64_t _fftPoints;
uint64_t _historyLength;
int _numLinesToUpdate;
QwtInterval _intensityRange;
#if QWT_VERSION >= 0x060200
QwtInterval d_intervals[3];
#endif
private:
};
#endif /* WATERFALL_GLOBAL_DATA_HPP */
WaterfallData::WaterfallData
WaterfallData(const double, const double, const uint64_t, const unsigned int)
WaterfallData::_numLinesToUpdate
int _numLinesToUpdate
Definition waterfallGlobalData.h:54
WaterfallData::getNumLinesToUpdate
virtual int getNumLinesToUpdate() const
WaterfallData::reset
virtual void reset()
WaterfallData::getSpectrumDataBuffer
virtual const double * getSpectrumDataBuffer() const
WaterfallData::~WaterfallData
~WaterfallData() override
WaterfallData::copy
virtual void copy(const WaterfallData *)
WaterfallData::_historyLength
uint64_t _historyLength
Definition waterfallGlobalData.h:53
WaterfallData::resizeData
virtual void resizeData(const double, const double, const uint64_t, const int history=0)
WaterfallData::_fftPoints
uint64_t _fftPoints
Definition waterfallGlobalData.h:52
WaterfallData::value
double value(double x, double y) const override
WaterfallData::_intensityRange
QwtInterval _intensityRange
Definition waterfallGlobalData.h:56
WaterfallData::incrementNumLinesToUpdate
virtual void incrementNumLinesToUpdate()
WaterfallData::addFFTData
virtual void addFFTData(const double *, const uint64_t, const int)
WaterfallData::copy
virtual QwtRasterData * copy() const
WaterfallData::setNumLinesToUpdate
virtual void setNumLinesToUpdate(const int)
WaterfallData::getNumFFTPoints
virtual uint64_t getNumFFTPoints() const
WaterfallData::setSpectrumDataBuffer
virtual void setSpectrumDataBuffer(const double *)
WaterfallData::_spectrumData
std::vector< double > _spectrumData
Definition waterfallGlobalData.h:51