A chase is a timed sequence of scenes.
|
Public Member Functions |
| (id) | - initWithType: |
| | Initilise a chase with a given type.
|
| (id) | - initWithXML: |
| | Initilise with an XML Element.
|
| (NSXMLElement *) | - XML |
| | Get the Chase details as XML.
|
| (LOChaseType) | - type |
| | Get the type of the chase.
|
| (void) | - setType: |
| | Set the type of the chase.
|
| (BOOL) | - doesFade |
| | Checks if the chase fades between steps.
|
| (void) | - setDoesFade: |
| | Sets if the chase should fade between steps.
|
| (BOOL) | - doesSkipStepOne |
| | Check if the fade on the first step should be skipped.
|
| (void) | - setDoesSkipStepOne: |
| | If the chase is set to fade, then its possible for the fade on the first step to be skipped.
|
| (NSString *) | - name |
| | Get the name of the chase.
|
| (void) | - setName: |
| | Set the name of the chase.
|
| (int) | - number |
| | Get the chase number from the default chase manager.
|
| (unsigned) | - count |
| | Count how many scenes are included in the chase.
|
| (void) | - addScene: |
| | Add a scene to the chase.
|
| (void) | - insertScene:atIndex: |
| | Add a scene at a specific place within the chase.
|
| (void) | - removeSceneAtIndex: |
| | Remove a scene from the chase.
|
| (void) | - removeSceneAtIndexes: |
| | Remove scenes from the chase within the index set.
|
|
(void) | - moveScenesAtIndexs:toIndex: |
| | Move all scenes within the specified index set to the new index.
|
| (NSArray *) | - scenes |
| | Get all the scenes in the chase, in the order they will play.
|
| (LOScene *) | - getSceneAtIndex: |
| | Get a scene from the chase at the given index.
|
| (unsigned char) | - intensity |
| | get the current intensity of the chase.
|
| (void) | - addProvider: |
| | Add a provider.
|
| (void) | - removeProvider: |
| | Remove a provider.
|
|
(void) | - requestIntensityRefreshByProvider: |
| | Let the chase know when a provider has a new value for it.
|
| (float) | - stepTime |
| | Get the current step time.
|
| (void) | - setStepTime: |
| | Set the step time in seconds.
|
| (float) | - fadeTime |
| | Get the current fade time.
|
| (void) | - setFadeTime: |
| | Set the fade time in seconds.
|
| (void) | - setNextStep: |
| | Set the index of the scene to be used at the next step.
|
| (void) | - syncStep |
| | Sync the chase so that the step time in now.
|
| (void) | - step |
| | Step the case to the next scene.
|
| (void) | - start |
| | Start a chase running, this calls step immediatly, and then scehdules an NSTimer in the current thread to call step again after the correct time.
|
| (void) | - pause |
| | Pauses a scene, leaving the currently displayed scene on display.
|
| (void) | - stop |
| | Stops a chase from running, and stop displaying all scenes.
|
| (void) | - adjustTime |
| | Called when the time is changed to adjust the current timer till the next step.
|
| (BOOL) | - isRunning |
| | Returns the running status of the chase.
|
| (BOOL) | - isPaused |
| | Returns the paused status of the chase.
|
| (void) | - updateOutput |
| | Update the output for the channel provider.
|
| (void) | - setProviderID: |
| | Set the provider ID to be something other that the default.
|
Protected Attributes |
|
NSString * | name |
| | The name of the chase.
|
|
NSMutableArray * | scenes |
| | The scenes in the chase.
|
|
LOChaseType | type |
| | The type of chase.
|
|
float | stepTime |
| | Seconds between steps when running.
|
|
float | fadeTime |
| | Seconds for the fade to take place.
|
|
NSMutableArray * | intensityyProviders |
| | Array of LOChaseIntensityProviders.
|
|
NSMutableArray * | runningChases |
| | Array of all chases we have started running.
|
|
BOOL | running |
| | Flag to show current running status.
|
|
BOOL | paused |
| | Flag to show current paused status.
|
|
BOOL | providerSet |
| | Are we set as a provider.
|
|
int | prevIndex |
| | The index of the previous scene displayed, <0 for no scene being displayed.
|
|
int | currIndex |
| | The index of the current scene being displayed, <0 for no scene being displayed.
|
|
int | nextIndex |
| | The index of the next scene to be displayed.
|
|
BOOL | forward |
| | The direction of the chase.
|
|
BOOL | fade |
| | The chase fades between steps, as opposed to snaps.
|
|
BOOL | instantStepOne |
| | Skips the fade on the first step if set.
|
|
unsigned char | intensity |
| | The master intensity for this chase.
|
|
NSTimer * | stepTimer |
|
NSTimer * | fadeTimer |
|
NSDate * | timerSet |
|
LOScene * | cachedScene |
| | Scene to hold the current output values.
|
|
LOChannelManager * | channelManager |
|
LODiplessCrossFadeProvider * | fadeProvider |
| | The provider that will handle the cross fade.
|
|
int | fadeSteps |
| | Number of steps to complete the fade in the given time.
|
|
int | currFadeStep |
| | Current fade step number.
|
|
int | providerID |
| | The ID of this provider.
|
|
LOTimingThread * | timingThread |
| | The thread that the timing will happe in.
|
A chase is a timed sequence of scenes.