27 #ifndef SPECTROGRAMDATA_H
28 #define SPECTROGRAMDATA_H
32 #include "qwt/src/qwt_plot_spectrogram.h"
33 #include "qwt/src/qwt_matrix_raster_data.h"
49 SpectrogramData(QString uavObject, QString uavField,
double samplingFrequency,
50 unsigned int windowWidth,
double timeHorizon);
69 double tmpVal = autoscaleValueUpdated;
70 autoscaleValueUpdated = 0;
85 void resetAxisRanges();
87 QwtPlotSpectrogram *spectrogram;
88 QwtMatrixRasterData *rasterData;
90 double samplingFrequency;
92 unsigned int windowWidth;
93 double autoscaleValueUpdated;
95 QVector<double> plotData;
96 int lastInstanceIndex;
99 #endif // SPECTROGRAMDATA_H
SpectrogramData(QString uavObject, QString uavField, double samplingFrequency, unsigned int windowWidth, double timeHorizon)
SpectrogramData.
bool append(UAVObject *obj)
Append new data to the plot.
virtual void setXMaximum(double val)
void clearPlots()
SpectrogramScopeConfig::clearPlots Clear all plot data.
The Plot3dData class Base class that keeps the data for each curve in the plot.
QwtMatrixRasterData * getRasterData()
virtual void plotNewData(PlotData *, ScopeConfig *, ScopeGadgetWidget *)
SpectrogramScopeConfig::plotNewData Update plot with new data.
The ScopeConfig class The parent class for scope configuration classes data sources.
virtual void setYMaximum(double val)
double readAndResetAutoscaleValue()
readAndResetAutoscaleFlag reads the flag value and resets it
virtual void setZMaximum(double val)
virtual void deletePlots(PlotData *)
SpectrogramScopeConfig::deletePlots Delete all plot data.
The SpectrogramData class The spectrogram plot has a fixed size data buffer. All the curves in one pl...
void setSpectrogram(QwtPlotSpectrogram *val)
virtual void removeStaleData()
Removes the old data from the buffer.