MythTV  master
Public Slots | Public Member Functions | Private Attributes | List of all members
MainVisual Class Reference

#include <mainvisual.h>

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

Public Slots

void timeout ()
 

Public Member Functions

 MainVisual (MythUIVideo *visualizer)
 
virtual ~MainVisual ()
 
VisualBasevisual (void) const
 
void setVisual (const QString &name)
 
void stop (void)
 
void resize (const QSize &size)
 
void add (const void *, unsigned long, unsigned long, int, int) override
 
void prepare (void) override
 
void customEvent (QEvent *) override
 
void setFrameRate (int newfps)
 
int frameRate (void) const
 
QStringList getVisualizations (void)
 
int getCurrentVisual (void)
 
- Public Member Functions inherited from MythTV::Visual
 Visual ()
 
virtual ~Visual ()
 
QMutex * mutex ()
 

Private Attributes

MythUIVideom_visualizerVideo {nullptr}
 
QStringList m_visualizers
 
int m_currentVisualizer {0}
 
VisualBasem_vis {nullptr}
 
QPixmap m_pixmap
 
QList< VisualNode * > m_nodes
 
bool m_playing {false}
 
int m_fps {20}
 
unsigned long m_samples {SAMPLES_DEFAULT_SIZE}
 
QTimer * m_updateTimer {nullptr}
 

Detailed Description

Definition at line 33 of file mainvisual.h.

Constructor & Destructor Documentation

◆ MainVisual()

MainVisual::MainVisual ( MythUIVideo visualizer)
explicit

Definition at line 35 of file mainvisual.cpp.

◆ ~MainVisual()

MainVisual::~MainVisual ( )
virtual

Definition at line 57 of file mainvisual.cpp.

Member Function Documentation

◆ visual()

VisualBase* MainVisual::visual ( void  ) const
inline

Definition at line 41 of file mainvisual.h.

◆ setVisual()

void MainVisual::setVisual ( const QString &  name)

Definition at line 81 of file mainvisual.cpp.

Referenced by MusicCommon::switchVisualizer(), and MusicCommon::updateTrackInfo().

◆ stop()

void MainVisual::stop ( void  )

Definition at line 70 of file mainvisual.cpp.

Referenced by timeout().

◆ resize()

void MainVisual::resize ( const QSize &  size)

Definition at line 247 of file mainvisual.cpp.

Referenced by MainVisual().

◆ add()

void MainVisual::add ( const void *  buffer,
unsigned long  b_len,
unsigned long  timecode,
int  source_channels,
int  bits_per_sample 
)
overridevirtual

Implements MythTV::Visual.

Definition at line 148 of file mainvisual.cpp.

◆ prepare()

void MainVisual::prepare ( void  )
overridevirtual

Implements MythTV::Visual.

Definition at line 139 of file mainvisual.cpp.

Referenced by PlaylistEditorView::keyPressEvent(), MusicCommon::seek(), and setVisual().

◆ customEvent()

void MainVisual::customEvent ( QEvent *  event)
override

Definition at line 256 of file mainvisual.cpp.

◆ setFrameRate()

void MainVisual::setFrameRate ( int  newfps)

◆ frameRate()

int MainVisual::frameRate ( void  ) const
inline

Definition at line 54 of file mainvisual.h.

◆ getVisualizations()

QStringList MainVisual::getVisualizations ( void  )
inline

Definition at line 56 of file mainvisual.h.

Referenced by MusicCommon::init().

◆ getCurrentVisual()

int MainVisual::getCurrentVisual ( void  )
inline

Definition at line 58 of file mainvisual.h.

Referenced by MusicCommon::init().

◆ timeout

void MainVisual::timeout ( void  )
slot

Definition at line 209 of file mainvisual.cpp.

Referenced by MainVisual().

Member Data Documentation

◆ m_visualizerVideo

MythUIVideo* MainVisual::m_visualizerVideo {nullptr}
private

Definition at line 64 of file mainvisual.h.

Referenced by MainVisual(), resize(), setVisual(), and timeout().

◆ m_visualizers

QStringList MainVisual::m_visualizers
private

Definition at line 65 of file mainvisual.h.

Referenced by MainVisual(), and setVisual().

◆ m_currentVisualizer

int MainVisual::m_currentVisualizer {0}
private

Definition at line 66 of file mainvisual.h.

Referenced by MainVisual(), setVisual(), and ~MainVisual().

◆ m_vis

VisualBase* MainVisual::m_vis {nullptr}
private

Definition at line 67 of file mainvisual.h.

Referenced by resize(), setVisual(), stop(), timeout(), and ~MainVisual().

◆ m_pixmap

QPixmap MainVisual::m_pixmap
private

Definition at line 68 of file mainvisual.h.

Referenced by resize(), setVisual(), and timeout().

◆ m_nodes

QList<VisualNode*> MainVisual::m_nodes
private

Definition at line 69 of file mainvisual.h.

Referenced by add(), prepare(), timeout(), and ~MainVisual().

◆ m_playing

bool MainVisual::m_playing {false}
private

Definition at line 70 of file mainvisual.h.

Referenced by customEvent(), and timeout().

◆ m_fps

int MainVisual::m_fps {20}
private

Definition at line 71 of file mainvisual.h.

Referenced by MainVisual(), and setVisual().

◆ m_samples

unsigned long MainVisual::m_samples {SAMPLES_DEFAULT_SIZE}
private

Definition at line 72 of file mainvisual.h.

Referenced by add(), and setVisual().

◆ m_updateTimer

QTimer* MainVisual::m_updateTimer {nullptr}
private

Definition at line 73 of file mainvisual.h.

Referenced by customEvent(), MainVisual(), setVisual(), stop(), timeout(), and ~MainVisual().


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