#include <CoverArtActor.h>
Inherits VizKit::VisualActor.

Public Member Functions | |
| CoverArtActor () | |
| ~CoverArtActor () | |
| virtual void | init (void) |
| virtual void | show (const VisualPlayerState &visualPlayerState) |
| virtual void | handleNotification (VisualNotification &aNotification) |
Private Attributes | |
| CoverArt * | coverArt |
| bool | currentAudioTrackHasCoverArt |
A visual representation of the album cover art data included with the audio track. The cover rotates slowly around the y-axis. iTunes can handle embedded cover art data. The CoverArtActor is responsible for displaying cover art data if there exists any with the current track. The visual representation of the cover art data is created as a texture. The texture of the cover art can be manipulated in various ways. The rotation is a basic example for simplicity's sake.
| CoverArtActor::CoverArtActor | ( | ) |
The constructor.
| CoverArtActor::~CoverArtActor | ( | ) |
The destructor.
| void CoverArtActor::handleNotification | ( | VisualNotification & | aNotification | ) | [virtual] |
The actor receives a notification about an event that occured.
| aNotification | The notification passed in. |
Reimplemented from VizKit::VisualActor.
| void CoverArtActor::init | ( | void | ) | [virtual] |
Initialization.
Reimplemented from VizKit::VisualActor.
| void CoverArtActor::show | ( | const VisualPlayerState & | visualPlayerState | ) | [virtual] |
Performs the show of the cover art.
| visualPlayerState | Read-only access to the VisualPlayerState. |
Reimplemented from VizKit::VisualActor.
CoverArt* VizKit::CoverArtActor::coverArt [private] |
A pointer to the cover art action.
bool VizKit::CoverArtActor::currentAudioTrackHasCoverArt [private] |
True if current audio track has album cover art data.