MythTV  master
Public Member Functions | Static Protected Member Functions | Protected Attributes | List of all members
Spectrum Class Reference

#include <visualize.h>

Inheritance diagram for Spectrum:
Inheritance graph
[legend]
Collaboration diagram for Spectrum:
Collaboration graph
[legend]

Public Member Functions

 Spectrum ()
 
 ~Spectrum () override
 
void resize (const QSize &size) override
 
bool process (VisualNode *node) override
 
bool draw (QPainter *p, const QColor &back=Qt::black) override
 
void handleKeyPress (const QString &action) override
 
- Public Member Functions inherited from VisualBase
 VisualBase (bool screensaverenable=false)
 
virtual ~VisualBase (void)
 
virtual bool processUndisplayed (VisualNode *)
 
virtual int getDesiredFPS (void)
 
virtual unsigned long getDesiredSamples (void)
 

Static Protected Member Functions

static double clamp (double cur, double max, double min)
 

Protected Attributes

QColor m_startColor {Qt::blue}
 
QColor m_targetColor {Qt::red}
 
QVector< QRect > m_rects
 
QVector< double > m_magnitudes
 
QSize m_size
 
LogScale m_scale
 
double m_scaleFactor {2.0}
 
double m_falloff {10.0}
 
int m_analyzerBarWidth {6}
 
FFTComplex * m_dftL { nullptr }
 
FFTComplex * m_dftR { nullptr }
 
FFTContext * m_fftContextForward { nullptr }
 
- Protected Attributes inherited from VisualBase
int m_fps {20}
 
bool m_xscreensaverenable {true}
 

Additional Inherited Members

- Static Public Member Functions inherited from VisualBase
static void drawWarning (QPainter *p, const QColor &back, QSize size, const QString &warning, int fontsize=28)
 

Detailed Description

Definition at line 160 of file visualize.h.

Constructor & Destructor Documentation

◆ Spectrum()

Spectrum::Spectrum ( )

Definition at line 592 of file visualize.cpp.

◆ ~Spectrum()

Spectrum::~Spectrum ( )
override

Definition at line 604 of file visualize.cpp.

Member Function Documentation

◆ resize()

void Spectrum::resize ( const QSize &  size)
overridevirtual

Implements VisualBase.

Reimplemented in Squares.

Definition at line 611 of file visualize.cpp.

Referenced by Squares::resize().

◆ process()

bool Spectrum::process ( VisualNode node)
overridevirtual

Implements VisualBase.

Definition at line 649 of file visualize.cpp.

◆ draw()

bool Spectrum::draw ( QPainter *  p,
const QColor &  back = Qt::black 
)
overridevirtual

Implements VisualBase.

Reimplemented in Squares.

Definition at line 761 of file visualize.cpp.

◆ handleKeyPress()

void Spectrum::handleKeyPress ( const QString &  action)
inlineoverridevirtual

Implements VisualBase.

Reimplemented in Squares.

Definition at line 173 of file visualize.h.

◆ clamp()

double Spectrum::clamp ( double  cur,
double  max,
double  min 
)
inlinestaticprotected

Definition at line 752 of file visualize.cpp.

Referenced by draw(), and Squares::drawRect().

Member Data Documentation

◆ m_startColor

QColor Spectrum::m_startColor {Qt::blue}
protected

Definition at line 179 of file visualize.h.

Referenced by draw(), and Squares::drawRect().

◆ m_targetColor

QColor Spectrum::m_targetColor {Qt::red}
protected

Definition at line 180 of file visualize.h.

Referenced by draw(), and Squares::drawRect().

◆ m_rects

QVector<QRect> Spectrum::m_rects
protected

Definition at line 181 of file visualize.h.

Referenced by draw(), Squares::draw(), Squares::drawRect(), process(), and resize().

◆ m_magnitudes

QVector<double> Spectrum::m_magnitudes
protected

Definition at line 182 of file visualize.h.

Referenced by process(), and resize().

◆ m_size

QSize Spectrum::m_size
protected

Definition at line 183 of file visualize.h.

Referenced by draw(), process(), and resize().

◆ m_scale

LogScale Spectrum::m_scale
protected

Definition at line 184 of file visualize.h.

Referenced by process(), and resize().

◆ m_scaleFactor

double Spectrum::m_scaleFactor {2.0}
protected

Definition at line 188 of file visualize.h.

Referenced by process(), and resize().

◆ m_falloff

double Spectrum::m_falloff {10.0}
protected

Definition at line 189 of file visualize.h.

Referenced by process().

◆ m_analyzerBarWidth

int Spectrum::m_analyzerBarWidth {6}
protected

Definition at line 190 of file visualize.h.

Referenced by process(), resize(), and Squares::Squares().

◆ m_dftL

FFTComplex* Spectrum::m_dftL { nullptr }
protected

Definition at line 192 of file visualize.h.

Referenced by process(), Spectrum(), and ~Spectrum().

◆ m_dftR

FFTComplex* Spectrum::m_dftR { nullptr }
protected

Definition at line 193 of file visualize.h.

Referenced by process(), Spectrum(), and ~Spectrum().

◆ m_fftContextForward

FFTContext* Spectrum::m_fftContextForward { nullptr }
protected

Definition at line 194 of file visualize.h.

Referenced by process(), Spectrum(), and ~Spectrum().


The documentation for this class was generated from the following files: