57 lines
1.1 KiB
C++
57 lines
1.1 KiB
C++
/***************************************************************************
|
|
|
|
source::worx raDIYo
|
|
Copyright © 2020-2022 c.holzheuer
|
|
chris@sourceworx.org
|
|
|
|
This program is free software; you can redistribute it and/or modify
|
|
it under the terms of the GNU General Public License as published by
|
|
the Free Software Foundation; either version 2 of the License, or
|
|
(at your option) any later version.
|
|
|
|
***************************************************************************/
|
|
|
|
|
|
#ifndef SWSPECTRUMWIDGET_H
|
|
#define SWSPECTRUMWIDGET_H
|
|
|
|
#include <QTimer>
|
|
#include <swbarwidget.h>
|
|
|
|
|
|
/**
|
|
* @brief Stellt das per FFT erzeugte Spektrum dar
|
|
*/
|
|
|
|
class SWSpectrumWidget : public SWBarWidget
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
|
|
explicit SWSpectrumWidget( QWidget* parent = nullptr );
|
|
virtual ~SWSpectrumWidget();
|
|
|
|
void paintEvent( QPaintEvent* event ) override;
|
|
void clearValueList();
|
|
|
|
public slots:
|
|
|
|
void onValueListChanged( const SWValVec& freshdata );
|
|
|
|
signals:
|
|
|
|
protected:
|
|
|
|
|
|
// Brainfuck!
|
|
double _minValue = 0.0;
|
|
double _maxValue = 1.0;
|
|
|
|
SWValVec _valueList;
|
|
|
|
};
|
|
|
|
|
|
#endif // SWSPECTRUMWIDGET_H
|