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

#include <mythplugins/mythmusic/mythmusic/visualize.h>

Inheritance diagram for StereoScope:
[legend]
Collaboration diagram for StereoScope:
[legend]

Public Member Functions

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

Protected Attributes

QColor m_startColor {Qt::yellow}
 
QColor m_targetColor {Qt::red}
 
std::vector< double > m_magnitudes
 
QSize m_size
 
bool const m_rubberband {RUBBERBAND}
 
double const m_falloff {1.0}
 
- 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 111 of file visualize.h.

Constructor & Destructor Documentation

◆ StereoScope()

StereoScope::StereoScope ( )

Definition at line 226 of file visualize.cpp.

◆ ~StereoScope()

StereoScope::~StereoScope ( )
overridedefault

Member Function Documentation

◆ draw()

bool StereoScope::draw ( QPainter *  p,
const QColor &  back 
)
overridevirtual

Implements VisualBase.

Reimplemented in MonoScope, and WaveForm.

Definition at line 359 of file visualize.cpp.

Referenced by WaveForm::draw().

◆ process()

bool StereoScope::process ( VisualNode node)
overridevirtual

Implements VisualBase.

Reimplemented in MonoScope, and WaveForm.

Definition at line 241 of file visualize.cpp.

Referenced by WaveForm::process().

◆ resize()

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

Implements VisualBase.

Definition at line 231 of file visualize.cpp.

Member Data Documentation

◆ m_falloff

double const StereoScope::m_falloff {1.0}
protected

Definition at line 127 of file visualize.h.

Referenced by process(), and MonoScope::process().

◆ m_magnitudes

std::vector<double> StereoScope::m_magnitudes
protected

Definition at line 124 of file visualize.h.

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

◆ m_rubberband

bool const StereoScope::m_rubberband {RUBBERBAND}
protected

Definition at line 126 of file visualize.h.

Referenced by process(), and MonoScope::process().

◆ m_size

QSize StereoScope::m_size
protected

Definition at line 125 of file visualize.h.

Referenced by draw(), MonoScope::draw(), WaveForm::draw(), process(), MonoScope::process(), and resize().

◆ m_startColor

QColor StereoScope::m_startColor {Qt::yellow}
protected

Definition at line 122 of file visualize.h.

Referenced by draw(), and MonoScope::draw().

◆ m_targetColor

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

Definition at line 123 of file visualize.h.

Referenced by draw(), and MonoScope::draw().


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