RTP Audio System  2.0.0
QSpectrumDisplay Class Reference

QSpectrumAnalyzer. More...

#include <qspectrumanalyzer.h>

List of all members.

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 cardinalArray
cardinal Bars
cardinalMax
bool DrawAverageLine

Static Private Attributes

static const cardinal BarColors = 12
static const cardinal AverageSteps = 10

Detailed Description

QSpectrumAnalyzer.

This class is the spectrum display widget for the spectrum analyzer.

Author:
Thomas Dreibholz
Version:
1.0

Constructor & Destructor Documentation

QSpectrumDisplay::QSpectrumDisplay ( QWidget *  parent,
const cardinal array,
const cardinal  bars,
cardinal max,
const bool  drawAverageLine = TRUE 
)

Constructor.

Parameters:
parentParent widget.
arrayFourier array.
barsNumber of fourier bars.
drawAverageLineDraw (TRUE) or hide (FALSE) average line.

Member Function Documentation

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]

Member Data Documentation

const cardinal QSpectrumDisplay::AverageSteps = 10 [static, private]
const cardinal QSpectrumDisplay::BarColors = 12 [static, private]

The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines