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
[legend]
Collaboration diagram for VisualBase:
Collaboration graph
[legend]

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, const QSize &size, const QString &warning, int fontsize=28)
 

Protected Attributes

int m_fps {20}
 
bool m_xscreensaverenable {true}
 

Detailed Description

Definition at line 72 of file visualize.h.

Constructor & Destructor Documentation

◆ VisualBase()

VisualBase::VisualBase ( bool  screensaverenable = false)
explicit

Definition at line 44 of file visualize.cpp.

◆ ~VisualBase()

VisualBase::~VisualBase ( void  )
virtual

Definition at line 51 of file visualize.cpp.

Member Function Documentation

◆ process()

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

◆ processUndisplayed()

virtual bool VisualBase::processUndisplayed ( VisualNode )
inlinevirtual

Reimplemented in Piano.

Definition at line 83 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

◆ getDesiredFPS()

virtual int VisualBase::getDesiredFPS ( void  )
inlinevirtual

Definition at line 91 of file visualize.h.

Referenced by MainVisual::setVisual().

◆ getDesiredSamples()

virtual unsigned long VisualBase::getDesiredSamples ( void  )
inlinevirtual

Reimplemented in Piano.

Definition at line 93 of file visualize.h.

Referenced by MainVisual::setVisual().

◆ drawWarning()

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

Definition at line 63 of file visualize.cpp.

Referenced by AlbumArt::draw().

Member Data Documentation

◆ m_fps

int VisualBase::m_fps {20}
protected

◆ m_xscreensaverenable

bool VisualBase::m_xscreensaverenable {true}
protected

Definition at line 98 of file visualize.h.

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


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