RTP Audio System
2.0.0
|
#include <qspectrumanalyzer.h>
Public Slots | |
void | paintEvent (QPaintEvent *) |
void | setDrawAverageLine (const bool drawAverageLine) |
Public Member Functions | |
QSpectrumDisplay (QWidget *parent, const cardinal *array, const cardinal bars, cardinal &max, const bool drawAverageLine=TRUE) | |
~QSpectrumDisplay () | |
Private Member Functions | |
void | drawBar (QPainter *painter, const cardinal x, const cardinal y, const cardinal width, const cardinal height, const cardinal barValue) |
Private Attributes | |
const cardinal * | Array |
cardinal | Bars |
cardinal & | Max |
bool | DrawAverageLine |
Static Private Attributes | |
static const cardinal | BarColors = 12 |
static const cardinal | AverageSteps = 10 |
QSpectrumDisplay::QSpectrumDisplay | ( | QWidget * | parent, |
const cardinal * | array, | ||
const cardinal | bars, | ||
cardinal & | max, | ||
const bool | drawAverageLine = TRUE |
||
) |
Constructor.
parent | Parent widget. |
array | Fourier array. |
bars | Number of fourier bars. |
drawAverageLine | Draw (TRUE) or hide (FALSE) average line. |
Destructor.
void QSpectrumDisplay::drawBar | ( | QPainter * | painter, |
const cardinal | x, | ||
const cardinal | y, | ||
const cardinal | width, | ||
const cardinal | height, | ||
const cardinal | barValue | ||
) | [private] |
void QSpectrumDisplay::paintEvent | ( | QPaintEvent * | ) | [slot] |
Qt slot: Paint event.
void QSpectrumDisplay::setDrawAverageLine | ( | const bool | drawAverageLine | ) | [inline, slot] |
const cardinal* QSpectrumDisplay::Array [private] |
const cardinal QSpectrumDisplay::AverageSteps = 10 [static, private] |
const cardinal QSpectrumDisplay::BarColors = 12 [static, private] |
cardinal QSpectrumDisplay::Bars [private] |
bool QSpectrumDisplay::DrawAverageLine [private] |
cardinal& QSpectrumDisplay::Max [private] |