MythTV  master
Public Member Functions | Static Public Member Functions | Protected Attributes | List of all members
VisualBase Class Referenceabstract

#include <visualize.h>

Inheritance diagram for VisualBase:
Inheritance graph
Collaboration diagram for VisualBase:
Collaboration graph

Public Member Functions

 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)=0
virtual int getDesiredFPS (void)
virtual unsigned long getDesiredSamples (void)

Static Public Member Functions

static void drawWarning (QPainter *p, const QColor &back, QSize size, const QString &warning, int fontsize=28)

Protected Attributes

int m_fps {20}
bool m_xscreensaverenable {true}

Detailed Description

Definition at line 62 of file visualize.h.

Constructor & Destructor Documentation

◆ VisualBase()

VisualBase::VisualBase ( bool  screensaverenable = false)

Definition at line 42 of file visualize.cpp.

◆ ~VisualBase()

VisualBase::~VisualBase ( void  )

Definition at line 49 of file visualize.cpp.

Member Function Documentation

◆ process()

virtual bool VisualBase::process ( VisualNode node)
pure virtual

◆ processUndisplayed()

virtual bool VisualBase::processUndisplayed ( VisualNode )

Reimplemented in Piano, Spectrum, Spectrogram, and WaveForm.

Definition at line 74 of file visualize.h.

Referenced by MainVisual::timeout().

◆ draw()

virtual bool VisualBase::draw ( QPainter *  ,
const QColor &   
pure virtual

◆ resize()

virtual void VisualBase::resize ( const QSize &  size)
pure virtual

◆ handleKeyPress()

virtual void VisualBase::handleKeyPress ( const QString &  action)
pure virtual

Implemented in AlbumArt, Spectrogram, and WaveForm.

◆ getDesiredFPS()

virtual int VisualBase::getDesiredFPS ( void  )

Definition at line 82 of file visualize.h.

Referenced by MainVisual::setVisual().

◆ getDesiredSamples()

virtual unsigned long VisualBase::getDesiredSamples ( void  )

Reimplemented in Piano, Spectrogram, and WaveForm.

Definition at line 84 of file visualize.h.

Referenced by MainVisual::setVisual().

◆ drawWarning()

void VisualBase::drawWarning ( QPainter *  p,
const QColor &  back,
QSize  size,
const QString &  warning,
int  fontsize = 28 

Definition at line 61 of file visualize.cpp.

Referenced by AlbumArt::draw().

Member Data Documentation

◆ m_fps

int VisualBase::m_fps {20}

◆ m_xscreensaverenable

bool VisualBase::m_xscreensaverenable {true}

Definition at line 89 of file visualize.h.

Referenced by VisualBase(), and ~VisualBase().

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