VizKit  3.3.7
Static Public Member Functions | Private Member Functions | Static Private Member Functions | Private Attributes | Static Private Attributes
VizKit::VisualStageControl Class Reference

Singleton mediator that controls the show of the VisualEnsemble. More...

#include <VisualStageControl.h>

List of all members.

Static Public Member Functions

static void dispose (void)
 Disposes the VisualStageControl.
static void addEnsembleMember (VisualActor *aVisualActor)
 Adds a VisualActor to the VisualEnsemble.
static void doEnsembleShow (const VisualPlayerState &visualPlayerState)
 Sends each actor a message to prepare, perform and finish show.
static VisualActorgetVisualActorByName (const char *const aVisualActorName)
 Returns a pointer to a VisualActor whose name is aVisualActorName.
static void registerObserverForNotification (VisualActor *aVisualActor, const VisualNotificationKey aNotificationKey)
 Registers a VisualActor for a specific notification (event/message).
static void removeObserverOfNotification (VisualActor *aVisualActor, const VisualNotificationKey aNotificationKey)
 Removes a VisualActor from the list of observers for a specific notification (event/message).
static void dispatchNotification (VisualNotification &aNotification)
 Dispatches a VisualNotification.
static void checkForFadeOutEvent (void)
 Checks whether the fade out event should be sent.

Private Member Functions

 VisualStageControl ()
 The constructor.
 ~VisualStageControl ()
 The destructor.
 VisualStageControl (const VisualStageControl &other)
 Copy constructor.
VisualStageControloperator= (const VisualStageControl &other)
 Assignment operator.
void init (void)
 Initializes the VisualStageControl.

Static Private Member Functions

static VisualStageControlgetInstance (void)
 Initializes the VisualStageControl if neccessary.

Private Attributes

VisualEnsemblevisualEnsemble
 A pointer to a visual ensemble.

Static Private Attributes

static VisualStageControltheVisualStageControl = NULL
 VisualStageControl is a singleton class.

Detailed Description

Singleton mediator that controls the show of the VisualEnsemble.

All public methods are declared static. Controls the show of the VisualEnsemble and communicates with individual actors. The VisualStageControl can manipulate the behaviour of individual VisualActors.


Constructor & Destructor Documentation

The constructor.

VisualStageControl is a singleton class. The constructor is private. New instance of class can only be created internally.

The destructor.

VisualStageControl is a singleton class. The destructor is private. Instance of class can only be destructed internally.

Copy constructor.

Parameters:
otherAnother VisualStageControl.
Remarks:
Explicitely declared in private section and not implemented to enforce uniqueness of singleton pattern.

Member Function Documentation

void VisualStageControl::addEnsembleMember ( VisualActor aVisualActor) [static]

Adds a VisualActor to the VisualEnsemble.

void VisualStageControl::checkForFadeOutEvent ( void  ) [static]

Checks whether the fade out event should be sent.

If it should, a notification is added to the queue.

Remarks:
The kAudioPlayReachedFadeOutTimeEvt event is sent if remaining audio time of track is less than kFadeOutTimeBeforeEndOfTrackInMS.

Dispatches a VisualNotification.

Parameters:
aNotificationA notification.
void VisualStageControl::dispose ( void  ) [static]

Disposes the VisualStageControl.

void VisualStageControl::doEnsembleShow ( const VisualPlayerState visualPlayerState) [static]

Sends each actor a message to prepare, perform and finish show.

Parameters:
visualPlayerStateRead-only access to the VisualPlayerState.
VisualStageControl * VisualStageControl::getInstance ( void  ) [static, private]

Initializes the VisualStageControl if neccessary.

Returns a pointer to the VisualStageControl. The VisualStageControl is a singleton.

Returns:
A pointer to the VisualStageControl.
VisualActor * VisualStageControl::getVisualActorByName ( const char *const  aVisualActorName) [static]

Returns a pointer to a VisualActor whose name is aVisualActorName.

Parameters:
aVisualActorNameThe name of the visual actor.
Returns:
A pointer to a VisualActor whose name is aVisualActorName or NULL if none is found.
void VisualStageControl::init ( void  ) [private]

Initializes the VisualStageControl.

Remarks:
In VisualStageControl's init() the VisualActors are constructed and added to the VisualEnsemble.
VisualStageControl& VizKit::VisualStageControl::operator= ( const VisualStageControl other) [private]

Assignment operator.

Remarks:
Explicitely declared in private section and not implemented to enforce uniqueness of singleton pattern.
void VisualStageControl::registerObserverForNotification ( VisualActor aVisualActor,
const VisualNotificationKey  aNotificationKey 
) [static]

Registers a VisualActor for a specific notification (event/message).

Parameters:
aVisualActorA visual actor.
aNotificationKeyAn enum that denotes a notification.
void VisualStageControl::removeObserverOfNotification ( VisualActor aVisualActor,
const VisualNotificationKey  aNotificationKey 
) [static]

Removes a VisualActor from the list of observers for a specific notification (event/message).

Parameters:
aVisualActorA visual actor.
aNotificationKeyAn enum that denotes a notification.

Member Data Documentation

VisualStageControl is a singleton class.

Pointer to private instance is handled internally.

A pointer to a visual ensemble.


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

Generated on Sun May 3 2015 20:26:32 for VizKit by doxygen 1.8.0