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

#include <videovisual.h>

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

Public Member Functions

 VideoVisual (AudioPlayer *audio, MythRender *render)
 
 ~VideoVisual ()
 
virtual void Draw (const QRect &area, MythPainter *painter, QPaintDevice *device)=0
 
virtual QString Name (void)=0
 
void add (const void *b, unsigned long b_len, unsigned long w, int c, int p) override
 
void prepare () override
 
- Public Member Functions inherited from MythTV::Visual
 Visual ()
 
virtual ~Visual ()
 
QMutex * mutex ()
 

Static Public Member Functions

static bool CanVisualise (AudioPlayer *audio, MythRender *render)
 
static VideoVisualCreate (const QString &name, AudioPlayer *audio, MythRender *render)
 
static QStringList GetVisualiserList (RenderType type)
 

Protected Member Functions

VisualNodeGetNode (void)
 
void DeleteNodes (void)
 
int64_t SetLastUpdate (void)
 

Protected Attributes

AudioPlayerm_audio {nullptr}
 
bool m_disabled {false}
 
QRect m_area
 
MythRenderm_render {nullptr}
 
QList< VisualNode * > m_nodes
 
QDateTime m_lastUpdate
 

Detailed Description

Definition at line 39 of file videovisual.h.

Constructor & Destructor Documentation

◆ VideoVisual()

VideoVisual::VideoVisual ( AudioPlayer audio,
MythRender render 
)

Definition at line 46 of file videovisual.cpp.

◆ ~VideoVisual()

VideoVisual::~VideoVisual ( )

Definition at line 56 of file videovisual.cpp.

Member Function Documentation

◆ CanVisualise()

bool VideoVisual::CanVisualise ( AudioPlayer audio,
MythRender render 
)
static

Definition at line 7 of file videovisual.cpp.

Referenced by VideoOutput::CanVisualise().

◆ Create()

VideoVisual * VideoVisual::Create ( const QString &  name,
AudioPlayer audio,
MythRender render 
)
static

Definition at line 28 of file videovisual.cpp.

Referenced by VideoOutput::SetupVisualisation().

◆ GetVisualiserList()

QStringList VideoVisual::GetVisualiserList ( RenderType  type)
static

◆ Draw()

virtual void VideoVisual::Draw ( const QRect &  area,
MythPainter painter,
QPaintDevice *  device 
)
pure virtual

◆ Name()

virtual QString VideoVisual::Name ( void  )
pure virtual

◆ add()

void VideoVisual::add ( const void *  b,
unsigned long  b_len,
unsigned long  w,
int  c,
int  p 
)
overridevirtual

Implements MythTV::Visual.

Definition at line 129 of file videovisual.cpp.

◆ prepare()

void VideoVisual::prepare ( void  )
overridevirtual

Implements MythTV::Visual.

Reimplemented in VideoVisualSpectrum.

Definition at line 84 of file videovisual.cpp.

Referenced by VideoVisualSpectrum::prepare().

◆ GetNode()

VisualNode * VideoVisual::GetNode ( void  )
protected

Definition at line 90 of file videovisual.cpp.

Referenced by VideoVisualGoom::Draw(), and VideoVisualSpectrum::Draw().

◆ DeleteNodes()

void VideoVisual::DeleteNodes ( void  )
protected

Definition at line 74 of file videovisual.cpp.

Referenced by add(), prepare(), and ~VideoVisual().

◆ SetLastUpdate()

int64_t VideoVisual::SetLastUpdate ( void  )
protected

Definition at line 65 of file videovisual.cpp.

Referenced by VideoVisualSpectrum::Draw().

Member Data Documentation

◆ m_audio

AudioPlayer* VideoVisual::m_audio {nullptr}
protected

Definition at line 62 of file videovisual.h.

Referenced by GetNode(), VideoVisual(), and ~VideoVisual().

◆ m_disabled

bool VideoVisual::m_disabled {false}
protected

Definition at line 63 of file videovisual.h.

Referenced by add(), VideoVisualGoom::Draw(), and VideoVisualSpectrum::Draw().

◆ m_area

QRect VideoVisual::m_area
protected

◆ m_render

MythRender* VideoVisual::m_render {nullptr}
protected

Definition at line 65 of file videovisual.h.

Referenced by VideoVisualGoom::Draw(), and VideoVisualGoom::~VideoVisualGoom().

◆ m_nodes

QList<VisualNode*> VideoVisual::m_nodes
protected

Definition at line 66 of file videovisual.h.

Referenced by add(), DeleteNodes(), and GetNode().

◆ m_lastUpdate

QDateTime VideoVisual::m_lastUpdate
protected

Definition at line 67 of file videovisual.h.

Referenced by SetLastUpdate(), and VideoVisual().


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