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

#include <visualize.h>

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

Public Member Functions

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

Private Member Functions

 Q_DECLARE_TR_FUNCTIONS (AlbumArt)
 
bool needsUpdate (void)
 
void findFrontCover (void)
 
bool cycleImage (void)
 

Private Attributes

QSize m_size
 
QSize m_cursize
 
ImageType m_currImageType {IT_UNKNOWN}
 
QImage m_image
 
MusicMetadatam_currentMetadata {nullptr}
 
QDateTime m_lastCycle
 

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)
 
- Protected Attributes inherited from VisualBase
int m_fps {20}
 
bool m_xscreensaverenable {true}
 

Detailed Description

Definition at line 298 of file visualize.h.

Constructor & Destructor Documentation

◆ AlbumArt()

AlbumArt::AlbumArt ( void  )

Definition at line 1330 of file visualize.cpp.

◆ ~AlbumArt()

virtual AlbumArt::~AlbumArt ( )
virtualdefault

Member Function Documentation

◆ Q_DECLARE_TR_FUNCTIONS()

AlbumArt::Q_DECLARE_TR_FUNCTIONS ( AlbumArt  )
private

◆ resize()

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

Implements VisualBase.

Definition at line 1385 of file visualize.cpp.

◆ process()

bool AlbumArt::process ( VisualNode node = nullptr)
overridevirtual

Implements VisualBase.

Definition at line 1390 of file visualize.cpp.

◆ draw()

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

Implements VisualBase.

Definition at line 1449 of file visualize.cpp.

◆ handleKeyPress()

void AlbumArt::handleKeyPress ( const QString &  action)
overridevirtual

Implements VisualBase.

Definition at line 1395 of file visualize.cpp.

◆ needsUpdate()

bool AlbumArt::needsUpdate ( void  )
private

Definition at line 1429 of file visualize.cpp.

Referenced by draw().

◆ findFrontCover()

void AlbumArt::findFrontCover ( void  )
private

Definition at line 1337 of file visualize.cpp.

Referenced by AlbumArt(), and needsUpdate().

◆ cycleImage()

bool AlbumArt::cycleImage ( void  )
private

Definition at line 1356 of file visualize.cpp.

Referenced by needsUpdate().

Member Data Documentation

◆ m_size

QSize AlbumArt::m_size
private

Definition at line 316 of file visualize.h.

Referenced by draw(), and resize().

◆ m_cursize

QSize AlbumArt::m_cursize
private

Definition at line 317 of file visualize.h.

Referenced by draw(), and handleKeyPress().

◆ m_currImageType

ImageType AlbumArt::m_currImageType {IT_UNKNOWN}
private

Definition at line 318 of file visualize.h.

Referenced by cycleImage(), draw(), findFrontCover(), and handleKeyPress().

◆ m_image

QImage AlbumArt::m_image
private

Definition at line 319 of file visualize.h.

Referenced by draw().

◆ m_currentMetadata

MusicMetadata* AlbumArt::m_currentMetadata {nullptr}
private

Definition at line 321 of file visualize.h.

Referenced by needsUpdate().

◆ m_lastCycle

QDateTime AlbumArt::m_lastCycle
private

Definition at line 322 of file visualize.h.

Referenced by cycleImage(), and needsUpdate().


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