The cue manager is a place where cues can be created and stored.
|
Public Member Functions |
| (id) | - initWithName: |
| | Initilise a manager with a specific name.
|
| (NSString *) | - name |
| | Get the name of the manager.
|
| (void) | - setName: |
| | Set the name of the manager.
|
| (unsigned) | - index |
| | Get the index number for this manager in the array of all managers.
|
| (NSXMLElement *) | - XML |
| | Get the cue details as XML.
|
| (BOOL) | - addCue: |
| | Add a cue to the manager.
|
| (void) | - removeCue: |
| | Remove a cue from the cue manager.
|
| (LOLightCue *) | - cueForNumber: |
| | Return the cue for the given cue number.
|
| (BOOL) | - cueExistsForNumber: |
| | Check to see if the scene is being managed.
|
| (BOOL) | - updateCueNumber: |
| | Let the manager know the cue has changed its number.
|
| (void) | - autoNumber |
| | Re number all the cues evenly.
|
| (unsigned) | - count |
| | Returns the current number of cue being managed.
|
| (NSArray *) | - cueList |
| | Get a sorted list of cues numbers (held in NSNumber objects).
|
| (LOLightCue *) | - cueAfterCue: |
| | Return the cue that follows the currentCue in the cue list.
|
| (LOLightCue *) | - cueBeforeCue: |
| | Return the cue that preceeds the currentCue in the cue list.
|
| (BOOL) | - isTracking |
| | Check to see what the default trackign mode is for new cues.
|
| (void) | - setTracking: |
| | Set the default tracking mode for all new cues created in this manager.
|
| (LOScene *) | - sceneForCue: |
| | Get a scene represenation of the cue scene.
|
| (unsigned char) | - master |
| | Get the current master level for this cue manager.
|
| (void) | - setMaster: |
| | Set the master level for this cue manager.
|
| (LOLightCue *) | - currentCue |
| | Get the current cue (either the one that is currently fading or the one that has finished fading if no cue is fading).
|
| (void) | - go: |
| | Fade to the nextCue.
|
| (void) | - go |
| | Fade the next cue up.
|
| (void) | - snap: |
| | Snap to the nextCue.
|
| (void) | - snap |
| | Snap the next cue up.
|
| (BOOL) | - isFading |
| | Check to see if a cue is currently fading.
|
| (void) | - reset |
| | Reset the cue manager, that is delete all the cues currently managed, and set default tracking back to YES.
|
| (BOOL) | - loadConfigurationFromXML: |
| | Perfomrms a reset, then loads the configuration from the XML Element.
|
Static Public Member Functions |
| (LOCueManager *) | + defaultManager |
| | Get the default cue manager for the applications.
|
| (LOCueManager *) | + managerForName: |
| | Get the cue manager for the given name.
|
| (LOCueManager *) | + managerAtIndex: |
| | Get a specific cue manager by index.
|
| (NSArray *) | + managers |
| | Get an array of all managers.
|
| (unsigned) | + count |
| | Return the number of cue managers.
|
| (NSArray *) | + managerNames |
| | Get an array of all manager names.
|
| (unsigned) | + indexOfManager: |
| | Get the index of a cue manager, adding the cue manaeger if not already in the index.
|
| (void) | + removeManager: |
| | Remove the cue manager, and all cues within the cue manager.
|
| (void) | + resetAll |
| | Reset the defualt manager, and remove all other managers.
|
Protected Attributes |
|
NSString * | name |
| | The name for the manager.
|
|
NSMutableDictionary * | cues |
| | Dictionary to hold the LOLightCue objects.
|
|
NSArray * | sortedKeys |
| | An array of sorted keys to make some functions faster.
|
|
float | nextCueNumber |
| | The next cue number to be used when allocating numbers.
|
|
BOOL | isTracking |
| | The default trackign state for new cues.
|
|
LOScene * | emptyScene |
| | An empty scene to be used int he provider when we have no cue.
|
|
LOTimedDiplessCrossFadeProvider * | provider |
| | The provider this cue manager will use show cues.
|
|
LOLightCue * | currentCue |
| | The current cue (or nil if not yet running).
|
|
NSTimer * | followTimer |
| | The timer for fading down.
|
|
LOTimingThread * | timingThread |
| | The thread that the timing will happe in.
|
The cue manager is a place where cues can be created and stored.
Each cue managed by the cue manager is given a cue number, which can be used from the command line etc.
You may also assign your own cue numbers, but they must be unique. A cue number is a floating point number so that you may logicaly group multiple cues together if desired.
Add a cue to the manager.
When the add has occurd a notification LOCueManagerDidAddCue is posted so that all other objects may take apropriate action.
If a cue already has a number, it is added with that number (assuming no other cue is already being managed with the same number). Otehrwise a new number is allocaed by the cue manager, and the cue updated accordingly.
- Returns:
- success if the cue was added.