AudibleT 0.0.1
A real-time A/B/X audio testing tool for subjective assessment of various audio parameters, compatible for general purpose computer as well as embedded systems.
Loading...
Searching...
No Matches
EQGraph.h
Go to the documentation of this file.
1//=======================================================================
29//=======================================================================
30
31#ifndef EQGRAPH_H
32#define EQGRAPH_H
33
34#include <QChartView>
35#include <QChart>
36#include <QLineSeries>
37#include <QValueAxis>
38#include <QCategoryAxis>
39#include <QVBoxLayout>
40#include <QLogValueAxis>
41
50class EQGraph : public QWidget
51{
52public:
58 EQGraph(QWidget *parent = nullptr);
59
63 ~EQGraph();
64
77 void plot(const std::vector<double>& x,
78 const std::vector<double>& y,
79 int magnitude,
80 const QString& title,
81 const QString& xAxisLabel,
82 const QString& yAxisLabel);
83
84private:
85 QChart *m_chart;
86 QChartView *m_chartView;
87 QLineSeries *m_series;
88 QLogValueAxis *m_axisX;
89 QValueAxis *m_axisY;
90};
91
92#endif // EQGRAPH_H
A class to plot frequency graph.
Definition: EQGraph.h:51
~EQGraph()
Destroy the EQGraph object and free any allocated resources.
Definition: EQGraph.cpp:49
void plot(const std::vector< double > &x, const std::vector< double > &y, int magnitude, const QString &title, const QString &xAxisLabel, const QString &yAxisLabel)
Plot a graph.
Definition: EQGraph.cpp:58