#include <VisualActor.h>
Inherited by VizKit::BeatlightActor, VizKit::CoverArtActor, VizKit::ProcessMonitorActor, VizKit::TemplateActor, VizKit::TrackLyricsActor, VizKit::TrackTitleActor, and VizKit::UpdateServiceActor.
Public Member Functions | |
| VisualActor () | |
| virtual | ~VisualActor () |
| VisualActor (const VisualActor &other) | |
| VisualActor & | operator= (const VisualActor &other) |
| virtual VisualActor * | clone (void) const |
| virtual void | init (void) |
| virtual const char *const | getName (void) |
| virtual void | show (const VisualPlayerState &visualPlayerState) |
| virtual VisualActorState | getState (void) |
| virtual void | setState (VisualActorState actorState) |
| virtual void | handleNotification (VisualNotification &aNotification) |
| virtual uint8 | getError (char *errorString) |
Protected Member Functions | |
| void | copy (const VisualActor &other) |
Protected Attributes | |
| VisualActorState | state |
| char | actorName [64] |
VisualActor defines the interface for each specific actor. VisualActor is an abstract class each actor has to implement. Some virtual methods are pure abstract interface methods which must be overridden by the concrete actor. Some virtual methods provide a default implementation which can be overridden by the concrete actor.
| VisualActor::VisualActor | ( | ) |
The constructor. Each actor should implement its own constructor that is called additionally.
| VisualActor::~VisualActor | ( | ) | [virtual] |
The destructor. Each actor can implement its own destructor.
| VisualActor::VisualActor | ( | const VisualActor & | other | ) |
Copy constructor.
| VisualActor * VisualActor::clone | ( | void | ) | const [virtual] |
Copies the current VisualActor and returns a pointer to a new VisualActor.
| void VisualActor::copy | ( | const VisualActor & | other | ) | [protected] |
Copy method for assignment operator and copy constructor.
| other | Another VisualActor. |
| uint8 VisualActor::getError | ( | char * | errorString | ) | [virtual] |
After the completion of the show, the actor is called to see if any errors occured. This method is implemented by the VisualActor interface class. It calls the OpenGL error handler. Should not be overridden by subclass. Subclasses can implement the method but should then call the superclass implementation inside the subclass implementation also.
| [out] | errorString | The error c-string. |
| const char *const VisualActor::getName | ( | void | ) | [virtual] |
Returns the name of the actor. The name is used as identifier by the VisualStageControl.
| VisualActorState VisualActor::getState | ( | void | ) | [virtual] |
Returns the state of the actor. Interface method that does not need to be implemented by subclass. Default implementation returns the value of the state variable.
| void VisualActor::handleNotification | ( | VisualNotification & | aNotification | ) | [virtual] |
The actor receives a notification. Each actor can register for a notification (event/message) by calling VisualNotification's registerNotification(). This function receives the notification. Hook method that can be implemented by subclass.
| aNotification | The notification package. |
Reimplemented in VizKit::BeatlightActor, VizKit::CoverArtActor, VizKit::ProcessMonitorActor, VizKit::TemplateActor, VizKit::TrackLyricsActor, VizKit::TrackTitleActor, and VizKit::UpdateServiceActor.
| void VisualActor::init | ( | void | ) | [virtual] |
Initialization method called immediately after construction.
Reimplemented in VizKit::BeatlightActor, VizKit::CoverArtActor, VizKit::ProcessMonitorActor, VizKit::TemplateActor, VizKit::TrackLyricsActor, and VizKit::TrackTitleActor.
| VisualActor & VisualActor::operator= | ( | const VisualActor & | other | ) |
Assignment operator.
| void VisualActor::setState | ( | VisualActorState | actorState | ) | [virtual] |
Sets the state of the actor. Interface method that does not need to be implemented by subclass. Default implementation sets the value of the state variable.
| actorState | The requested state of the actor expressed as VisualActorState. |
Reimplemented in VizKit::ProcessMonitorActor, and VizKit::UpdateServiceActor.
| void VisualActor::show | ( | const VisualPlayerState & | visualPlayerState | ) | [virtual] |
Asks the actor to perform individual show. This is the main method of the actor.
| visualPlayerState | Read-only access to the VisualPlayerState. |
Reimplemented in VizKit::BeatlightActor, VizKit::CoverArtActor, VizKit::ProcessMonitorActor, VizKit::TemplateActor, VizKit::TrackLyricsActor, VizKit::TrackTitleActor, and VizKit::UpdateServiceActor.
char VizKit::VisualActor::actorName[64] [protected] |
The name of the VisualActor.
VisualActorState VizKit::VisualActor::state [protected] |
The state of the VisualActor.