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
Public Member Functions | List of all members

A class to plot frequency graph. More...

#include <EQGraph.h>

Inheritance diagram for EQGraph:
Inheritance graph
[legend]
Collaboration diagram for EQGraph:
Collaboration graph
[legend]

Public Member Functions

 EQGraph (QWidget *parent=nullptr)
 Construct a new EQGraph object.
 
 ~EQGraph ()
 Destroy the EQGraph object and free any allocated resources.
 
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.
 

Detailed Description

A class to plot frequency graph.

EQGraph is a widget that plots graphs using Qt Charts. The X-axis is logarithmic, making it suitable for frequency response plots.

Constructor & Destructor Documentation

◆ EQGraph()

EQGraph::EQGraph ( QWidget *  parent = nullptr)

Construct a new EQGraph object.

Parameters
parentThe parent widget.

Member Function Documentation

◆ plot()

void EQGraph::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.

The data in the x and y vectors is plotted on the graph. The x-axis is logarithmic.

Parameters
xThe x values.
yThe y values.
magnitudeThe magnitude range.
titleThe title of the graph.
xAxisLabelThe label for the x-axis.
yAxisLabelThe label for the y-axis.

The documentation for this class was generated from the following files: