QtSinTracksPlot Class Reference

QtSinTracksPlot: allows the viewing of sinusoidal tracks.
#include "QtSinTracksPlot.hxx"
 

Related Functions

Public Inherited Methods



Function Documentation

QtSinTracksPlot::QtSinTracksPlot(QWidget* parent)
Constructs a QtSinTracksPlot which is a child of parent (the parameter).
The parent is a QWidget object, by default the plot has not parent.
QtSinTracksPlot::~QtSinTracksPlot()
Destroys the plot
void QtSinTracksPlot::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 QtSinTracksPlot::Hide()
Hides the plot.
void QtSinTracksPlot::Label(const std::string& label)
Assigns a title label for the plot.
void QtSinTracksPlot::SetBackgroundColor(Color c)
Assigns the background color.
See VMColor.
void QtSinTracksPlot::SetData(const Segment & segment)
Assigns the data for viewing starting from an object of the segment class.
Segment : segment with the spectral peak data for every frame.
void QtSinTracksPlot::SetData(const Array<SpectralPeakArray>& peakMtx, const TData& sr, const TData& dur)
Assigns the data fro viewing starting from an array - SpectralPeakArray.
peakMtx : array with spectral peaks of every frame.
sr : sample rate.
dur : duration.
void QtSinTracksPlot::SetDialColor(Color c)
Assigns a color for the dial (vertical selection line).
See VMColor.
void QtSinTracksPlot::SetRegionColor(Color c)
Assigns a color for the selected region.
See VMColor.
void QtSinTracksPlot::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 QtSinTracksPlot::Show()

Shows the plot.