QtAudioPlot Class Reference

QtAudioPlot: allows the viewing of audio.
#include "QtAudioPlot.hxx"
 

Related Functions

Public Inherited Methods



Function Documentation

QtAudioPlot::QtAudioPlot(QWidget* parent)
Constructs a QtAudioPlot which is a child of parent (the parameter).
The parent is a QWidget object, by default the plot has not parent.
QtAudioPlot::~QtAudioPlot()
Destroys the plot
void QtAudioPlot::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 QtAudioPlot::Hide()
Hides the plot.
void QtAudioPlot::Label(const std::string& label)
Assigns a title label for the plot.
void QtAudioPlot::SetBackgroundColor(Color c)
Assigns the background color.
See VMColor.
void QtAudioPlot::SetData(const Audio& audio)
Assigns the audio data for viewing.
void QtAudioPlot::SetDialColor(Color c)
Assigns a color for the dial (vertical selection line).
See VMColor.
void QtAudioPlot::SetForegroundColor(Color c)
Assigns a color for the audio data.
See VMColor.
void QtAudioPlot::SetRegionColor(Color c)
Assigns a color for the selected region.
See VMColor.
void QtAudioPlot::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 QtAudioPlot::Show()

Shows the plot.


See the example.