VizKit
3.3.7
|
A visual representation of the album cover art data included with the audio track. More...
#include <CoverArtActor.h>
Public Member Functions | |
CoverArtActor () | |
The constructor. | |
~CoverArtActor () | |
The destructor. | |
virtual void | init (void) |
Initialization. | |
virtual void | show (const VisualPlayerState &visualPlayerState) |
Performs the show of the cover art. | |
virtual void | handleNotification (VisualNotification &aNotification) |
The actor receives a notification about an event that occured. | |
Private Attributes | |
CoverArt * | coverArt |
A pointer to the cover art action. | |
bool | currentAudioTrackHasCoverArt |
True if current audio track has album cover art data. |
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.
The constructor.
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.