MythTV  master
Public Member Functions | Private Member Functions | Private Attributes | List of all members
Squares Class Reference

#include <visualize.h>

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

Public Member Functions

 Squares ()
 
 ~Squares () override=default
 
void resize (const QSize &newsize) override
 
bool draw (QPainter *p, const QColor &back=Qt::black) override
 
void handleKeyPress (const QString &action) override
 
- Public Member Functions inherited from Spectrum
 Spectrum ()
 
 ~Spectrum () override
 
bool process (VisualNode *node) 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)
 

Private Member Functions

void drawRect (QPainter *p, QRect *rect, int i, int c, int w, int h)
 

Private Attributes

QSize m_actualSize {0,0}
 
int m_fakeHeight {0}
 
int m_numberOfSquares {16}
 

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)
 
- Static Protected Member Functions inherited from Spectrum
static double clamp (double cur, double max, double min)
 
- Protected Attributes inherited from Spectrum
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}
 

Detailed Description

Definition at line 197 of file visualize.h.

Constructor & Destructor Documentation

◆ Squares()

Squares::Squares ( )

Definition at line 822 of file visualize.cpp.

◆ ~Squares()

Squares::~Squares ( )
overridedefault

Member Function Documentation

◆ resize()

void Squares::resize ( const QSize &  newsize)
overridevirtual

Reimplemented from Spectrum.

Definition at line 827 of file visualize.cpp.

◆ draw()

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

Reimplemented from Spectrum.

Definition at line 868 of file visualize.cpp.

◆ handleKeyPress()

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

Reimplemented from Spectrum.

Definition at line 205 of file visualize.h.

◆ drawRect()

void Squares::drawRect ( QPainter *  p,
QRect *  rect,
int  i,
int  c,
int  w,
int  h 
)
private

Definition at line 834 of file visualize.cpp.

Referenced by draw().

Member Data Documentation

◆ m_actualSize

QSize Squares::m_actualSize {0,0}
private

Definition at line 210 of file visualize.h.

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

◆ m_fakeHeight

int Squares::m_fakeHeight {0}
private

Definition at line 211 of file visualize.h.

Referenced by drawRect(), resize(), and Squares().

◆ m_numberOfSquares

int Squares::m_numberOfSquares {16}
private

Definition at line 212 of file visualize.h.

Referenced by Squares().


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