PlotFactory: offers a mechanism for the quick creation of plots, and is used
in combination with QtPlotter for viewing various plots simultaneously.
|
#include "PlotFactory.hxx" |
|
Related Functions
|
-
static QtAudioPlot* GetAudioPlot( const Audio& audio,
const std::string& label="",
int x=100,
int y=100,
int w=500,
int h=225,
bool sc=true);
-
static QtAudioPlot* GetAudioPlot( QWidget* parent,
const Audio& audio,
const std::string& label="",
int x=100,
int y=100,
int w=500,
int h=225,
bool sc=true);
-
static QtFundFreqPlot* GetFundFreqPlot( const Segment& segment,
const std::string& label="",
int x=100,
int y=100,
int w=500,
int h=225,
bool sc=true);
-
static QtFundFreqPlot* GetFundFreqPlot( QWidget* parent,
const Segment& segment,
const std::string& label="",
int x=100,
int y=100,
int w=500,
int h=225,
bool sc=true);
-
static QtSegAudioPlot* GetSegAudioPlot( const Audio& audio,
std::list<unsigned>& marks,
const std::string& label="",
int x=100,
int y=100,
int w=500,
int h=225,
bool sc=true);
-
static QtSegAudioPlot* GetSegAudioPlot( QWidget* parent,
const Audio& audio,
std::list<unsigned>& marks,
const std::string& label="",
int x=100,
int y=100,
int w=500,
int h=225,
bool sc=true);
-
static QtSinTracksPlot* GetSinTracksPlot( const Segment& segment,
const std::string& label="",
int x=100,
int y=100,
int w=500,
int h=225,
bool sc=true);
-
static QtSinTracksPlot* GetSinTracksPlot( QWidget* parent,
const Segment& segment,
const std::string& label="",
int x=100,
int y=100,
int w=500,
int h=225,
bool sc=true);
-
static QtSinTracksPlot* GetSinTracksPlot( const Array< SpectralPeakArray >& peakMtx,
const TData& sr,
const TData& dur,
const std::string& label="",
int x=100,
int y=100,
int w=500,
int h=225,
bool sc=true);
-
static QtSinTracksPlot* GetSinTracksPlot( QWidget* parent,
const Array< SpectralPeakArray >& peakMtx,
const TData& sr,
const TData& dur,
const std::string& label="",
int x=100,
int y=100,
int w=500,
int h=225,
bool sc=true);
-
static QtSpectrumAndPeaksPlot* GetSpectrumAndPeaksPlot( const Spectrum& spec,
const SpectralPeakArray& peaks,
const std::string& label="",
int x=100,
int y=100,
int w=500,
int h=225,
bool sc=true);
-
static QtSpectrumAndPeaksPlot* GetSpectrumAndPeaksPlot( QWidget* parent,
const Spectrum& spec,
const SpectralPeakArray& peaks,
const std::string& label="",
int x=100,
int y=100,
int w=500,
int h=225,
bool sc=true);
-
static QtSpectrumPlot* GetSpectrumPlot( const Spectrum& spec,
const std::string& label="",
int x=100,
int y=100,
int w=500,
int h=225,
bool sc=true);
-
static QtSpectrumPlot* GetSpectrumPlot( QWidget* parent,
const Spectrum& spec,
const std::string& label="",
int x=100,
int y=100,
int w=500,
int h=225,
bool sc=true);
|
|
Function Documentation
|
QtAudioPlot* PlotFactory::GetAudioPlot( const Audio& audio,
const std::string& label,
int x, int y, int w, int h,
bool sc )
|
Returns a QtAudioPlot.
audio : audio object.
label : title label for the plot, default="" (an empty string).
x : x-coordinate of the upper left corner, default=100.
y : y-coordinate of the upper left corner, default=100.
w : width, default=500.
h : height, default=225.
sc : enables/disables control for switch colors.
|
QtAudioPlot* PlotFactory::GetAudioPlot( QWidget* parent,
const Audio& audio,
const std::string& label,
int x, int y, int w, int h,
bool sc )
|
As the above method but assigning a parent for this widget.
The parent is a QWidget.
|
QtFundFreqPlot* PlotFactory::GetFundFreqPlot( const Segment& segment,
const std::string& label,
int x, int y, int w, int h,
bool sc )
|
Returns a QtFundFreqPlot.
segment : object of the Segment class with F0 data.
label : title label for the plot, default="" (an empty string).
x : x-coordinate of the upper left corner, default=100.
y : y-coordinate of the upper left corner, default=100.
w : width, default=500.
h : height, default=225.
sc : enables/disables control for switch colors.
|
QtFundFreqPlot* PlotFactory::GetFundFreqPlot( QWidget* parent,
const Segment& segment,
const std::string& label,
int x, int y, int w, int h,
bool sc )
|
As the above method but assigning a parent for this widget.
The parent is a QWidget.
|
QtSegAudioPlot* PlotFactory::GetSegAudioPlot( const Audio& audio,
std::list<unsigned>& marks,
const std::string& label,
int x, int y, int w, int h,
bool sc )
|
Returns a QtSegAudioPlot.
audio : audio object.
marks : list of values with segmentation marks (sample indexex).
label : title label for the plot, default="" (an empty string).
x : x-coordinate of the upper left corner, default=100.
y : y-coordinate of the upper left corner, default=100.
w : width, default=500.
h : height, default=225.
sc : enables/disables control for switch colors.
|
QtSegAudioPlot* PlotFactory::GetSegAudioPlot( QWidget* parent,
const Audio& audio,
std::list<unsigned>& marks,
const std::string& label,
int x, int y, int w, int h,
bool sc )
|
As the above method but assigning a parent for this widget.
The parent is a QWidget.
|
QtSinTracksPlot* PlotFactory::GetSinTracksPlot( const Segment& segment,
const std::string& label,
int x, int y, int w, int h,
bool sc )
|
Returns a QtSinTracksPlot.
Segment : segment with the spectral peak data for every frame.
label : title label for the plot, default="" (an empty string).
x : x-coordinate of the upper left corner, default=100.
y : y-coordinate of the upper left corner, default=100.
w : width, default=500.
h : height, default=225.
sc : enables/disables control for switch colors.
|
QtSinTracksPlot* PlotFactory::GetSinTracksPlot( QWidget* parent,
const Segment& segment,
const std::string& label,
int x, int y, int w, int h,
bool sc )
|
As the above method but assigning a parent for this widget.
The parent is a QWidget.
|
QtSinTracksPlot* PlotFactory::GetSinTracksPlot( const Array< SpectralPeakArray >& peakMtx,
const TData& sr,
const TData& dur,
const std::string& label,
int x, int y, int w, int h,
bool sc )
|
Returns a QtSinTracksPlot.
peakMtx : array with spectral peaks of every frame.
sr : sample rate.
dur : duration.
label : title label for the plot, default="" (an empty string).
x : x-coordinate of the upper left corner, default=100.
y : y-coordinate of the upper left corner, default=100.
w : width, default=500.
h : height, default=225.
sc : enables/disables control for switch colors.
|
QtSinTracksPlot* PlotFactory::GetSinTracksPlot( QWidget* parent,
const Array< SpectralPeakArray >& peakMtx,
const TData& sr,
const TData& dur,
const std::string& label,
int x, int y, int w, int h,
bool sc )
|
As the above method but assigning a parent for this widget.
The parent is a QWidget.
|
QtSpectrumAndPeaksPlot* PlotFactory::GetSpectrumAndPeaksPlot( const Spectrum& spec,
const SpectralPeakArray& peaks,
const std::string& label,
int x, int y, int w, int h,
bool sc )
|
Returns a QtSpectrumAndPeaksPlot.
spec : spectrum.
peaks : spectral peaks.
label : title label for the plot, default="" (an empty string).
x : x-coordinate of the upper left corner, default=100.
y : y-coordinate of the upper left corner, default=100.
w : width, default=500.
h : height, default=225.
sc : enables/disables control for switch colors.
|
QtSpectrumAndPeaksPlot* PlotFactory::GetSpectrumAndPeaksPlot( QWidget* parent,
const Spectrum& spec,
const SpectralPeakArray& peaks,
const std::string& label,
int x, int y, int w, int h,
bool sc )
|
As the above method but assigning a parent for this widget.
The parent is a QWidget.
|
QtSpectrumPlot* PlotFactory::GetSpectrumPlot( const Spectrum& spec,
const std::string& label,
int x, int y, int w, int h,
bool sc )
|
Returns a QtSpectrumPlot.
spec : spectrum.
peaks : spectral peaks.
label : title label for the plot, default="" (an empty string).
x : x-coordinate of the upper left corner, default=100.
y : y-coordinate of the upper left corner, default=100.
w : width, default=500.
h : height, default=225.
sc : enables/disables control for switch colors.
|
QtSpectrumPlot* PlotFactory::GetSpectrumPlot( QWidget* parent,
const Spectrum& spec,
const std::string& label,
int x, int y, int w, int h,
bool sc )
|
As the above method but assigning a parent for this widget.
The parent is a QWidget. |