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

#include <visualize.h>

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

Classes

struct  piano_key_data
 

Public Member Functions

 Piano ()
 
virtual ~Piano ()
 
void resize (const QSize &size) override
 
bool process (VisualNode *node) override
 
bool processUndisplayed (VisualNode *node) override
 
unsigned long getDesiredSamples (void) 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 int getDesiredFPS (void)
 

Protected Member Functions

bool process_all_types (VisualNode *node, bool this_will_be_displayed)
 
void zero_analysis (void)
 

Static Protected Member Functions

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

Protected Attributes

QColor m_whiteStartColor {245,245,245}
 
QColor m_whiteTargetColor {Qt::red}
 
QColor m_blackStartColor {10,10,10}
 
QColor m_blackTargetColor {Qt::red}
 
vector< QRect > m_rects
 
QSize m_size
 
unsigned long m_offset_processed {0}
 
piano_key_datam_piano_data {nullptr}
 
piano_audiom_audio_data {nullptr}
 
vector< double > m_magnitude
 
- 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, const QSize &size, const QString &warning, int fontsize=28)
 

Detailed Description

Definition at line 231 of file visualize.h.

Constructor & Destructor Documentation

◆ Piano()

Piano::Piano ( )

Definition at line 885 of file visualize.cpp.

◆ ~Piano()

Piano::~Piano ( )
virtual

Definition at line 931 of file visualize.cpp.

Member Function Documentation

◆ resize()

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

Implements VisualBase.

Definition at line 955 of file visualize.cpp.

◆ process()

bool Piano::process ( VisualNode node)
overridevirtual

Implements VisualBase.

Definition at line 1053 of file visualize.cpp.

◆ processUndisplayed()

bool Piano::processUndisplayed ( VisualNode node)
overridevirtual

Reimplemented from VisualBase.

Definition at line 1047 of file visualize.cpp.

◆ getDesiredSamples()

unsigned long Piano::getDesiredSamples ( void  )
overridevirtual

Reimplemented from VisualBase.

Definition at line 1037 of file visualize.cpp.

◆ draw()

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

Implements VisualBase.

Definition at line 1199 of file visualize.cpp.

◆ handleKeyPress()

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

Implements VisualBase.

Definition at line 274 of file visualize.h.

◆ clamp()

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

Definition at line 1190 of file visualize.cpp.

Referenced by draw().

◆ process_all_types()

bool Piano::process_all_types ( VisualNode node,
bool  this_will_be_displayed 
)
protected

Definition at line 1061 of file visualize.cpp.

Referenced by process(), and processUndisplayed().

◆ zero_analysis()

void Piano::zero_analysis ( void  )
protected

Definition at line 939 of file visualize.cpp.

Referenced by Piano(), process_all_types(), and resize().

Member Data Documentation

◆ m_whiteStartColor

QColor Piano::m_whiteStartColor {245,245,245}
protected

Definition at line 282 of file visualize.h.

Referenced by draw().

◆ m_whiteTargetColor

QColor Piano::m_whiteTargetColor {Qt::red}
protected

Definition at line 283 of file visualize.h.

Referenced by draw().

◆ m_blackStartColor

QColor Piano::m_blackStartColor {10,10,10}
protected

Definition at line 284 of file visualize.h.

Referenced by draw().

◆ m_blackTargetColor

QColor Piano::m_blackTargetColor {Qt::red}
protected

Definition at line 285 of file visualize.h.

Referenced by draw().

◆ m_rects

vector<QRect> Piano::m_rects
protected

Definition at line 287 of file visualize.h.

Referenced by draw(), and resize().

◆ m_size

QSize Piano::m_size
protected

Definition at line 288 of file visualize.h.

Referenced by draw(), and resize().

◆ m_offset_processed

unsigned long Piano::m_offset_processed {0}
protected

Definition at line 290 of file visualize.h.

Referenced by process_all_types(), and zero_analysis().

◆ m_piano_data

piano_key_data* Piano::m_piano_data {nullptr}
protected

Definition at line 292 of file visualize.h.

Referenced by draw(), Piano(), process_all_types(), resize(), zero_analysis(), and ~Piano().

◆ m_audio_data

piano_audio* Piano::m_audio_data {nullptr}
protected

Definition at line 293 of file visualize.h.

Referenced by Piano(), process_all_types(), and ~Piano().

◆ m_magnitude

vector<double> Piano::m_magnitude
protected

Definition at line 295 of file visualize.h.

Referenced by draw(), and resize().


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