#include <VisualEnsemble.h>
List of all members.
Detailed Description
The VisualEnsemble is a group of all actors. The one and only VisualEnsemble of VizKit is owned by the VisualStageControl. With its main method showEnsemble(), the VisualEnsemble calls each VisualActor to show(). The VisualEnsemble also passes VisualNotifications to VisualActors that are registered as observers.
Member Typedef Documentation
The ObserverMap is a multimap of notifications (event types) and actors.
The ObserverMapIterator is an iterator of the ObserverMap.
VisualEnsembleActors are collected as a vector of pointers to VisualActors.
The VisualEnsembleActorsIterator is an iterator of the VisualEnsembleActors.
Constructor & Destructor Documentation
| VisualEnsemble::VisualEnsemble |
( |
|
) |
|
| VisualEnsemble::~VisualEnsemble |
( |
|
) |
|
Member Function Documentation
| void VisualEnsemble::addEnsembleMember |
( |
VisualActor * |
aVisualActor |
) |
|
Copy method for assignment operator and copy constructor.
- Parameters:
-
The VisualEnsemble receives notifications that are passed to the actors of the ensemble. Notifications ensure loose connections between external processes and the VisualEnsemble. External processes can package and send a notification to the VisualEnsemble. The VisualEnsemble processes the notification and each registered actor receives the notification (event/message).
- Parameters:
-
| aNotification | A notification object. |
| VisualActor * VisualEnsemble::getVisualActorByName |
( |
const char *const |
aVisualActorName |
) |
|
Returns a pointer to a VisualActor whose name is aVisualActorName.
- Parameters:
-
| aVisualActorName | The name of the visual actor. |
- Returns:
- A pointer to a VisualActor whose name is aVisualActorName or NULL if none is found.
Registers a VisualActor for a specific notification (event/message).
- Parameters:
-
| aVisualActor | A visual actor. |
| aNotificationKey | An enum that denotes a notification. |
Removes a VisualActor from the list of observers for a specific notification (event/message).
- Parameters:
-
| aVisualActor | A visual actor. |
| aNotificationKey | An enum that denotes a notification. |
Shows the show of the ensemble. The show method of all active actors is called.
- Parameters:
-
- Returns:
- 0 for no error. 1 if error occured.
Member Data Documentation
Multimap of all actors of the ensemble that are registered as observers.
Current index of internal iterator.
Vector of all actors of the ensemble.
The documentation for this class was generated from the following files: