QtSpectrumAndPeaksPlot Class Reference

QtSpectrumAndPeaksPlot: allows the viewing of spectra with spectral peaks.
#include "QtSpectrumAndPeaksPlot.hxx"
 

Related Functions

Public Inherited Methods



Function Documentation

QtSpectrumAndPeaksPlot::QtSpectrumAndPeaksPlot(QWidget* parent)
Constructs a QtSpectrumAndPeaksPlot which is a child of parent (the parameter).
The parent is a QWidget object, by default the plot has not parent.
QtSpectrumAndPeaksPlot::~QtSpectrumAndPeaksPlot()
Destroys the plot
void QtSpectrumAndPeaksPlot::Geometry(int x,int y,int w,int h)
Assigns the positions and dimensions of the plot.
x : x-coordinate of the upper left corner.
y : y-coordinate of the upper left corner.
w : width.
h : height.
void QtSpectrumAndPeaksPlot::Hide()
Hides the plot.
void QtSpectrumAndPeaksPlot::Label(const std::string& label)
Assigns a title label for the plot.
void QtSpectrumAndPeaksPlot::SetBackgroundColor(Color c)
Assigns the background color.
See VMColor.
void QtSpectrumAndPeaksPlot::SetData(const Spectrum& spec, const SpectralPeakArray& peaks)
Assigns the data for viewing.
spec : spectrum.
peaks : spectral peaks.
void QtSpectrumAndPeaksPlot::SetForegroundColor(Color c)
Assigns a color for the audio data.
See VMColor.
void QtSpectrumAndPeaksPlotSetPeaksColor(Color cline, Color cpoint)
Assigns a color for the spectral peaks.
See VMColor.
void QtSpectrumAndPeaksPlot::SetVLineColor(Color c)
Assigns a color for the vertical selection line.
See VMColor.
void QtSpectrumAndPeaksPlot::SwitchDisplayColors(bool b)
Allows to have a control for changing the display colors.
There are two modes: black or white background.
If b is true the color change feature is available and not if false.
void QtSpectrumAndPeaksPlot::Show()

Shows the plot.