usbdmx.com Home of the opto isolated, bus powered, DMX512 interface with both in and out universes. Cheap and simple to build. USBDMX logo

LOCueFader Class Reference

A class for fading from one look to another. More...

#import <LOCueFader.h>

Inheritance diagram for LOCueFader:

< LOChannelProvider >

Public Member Functions

(id) - initWithFaderNumber:
 init the fader and assign a fader number for later tracking of notifications of complete fades.
(void) - fadeFromScene:toCue:
 starts a fade from the current look on stage to the next cue.
(void) - holdFade
 To pause the fade.
(void) - resumeFade
 To resume the fade.
(int) - valueForChannel:
 Provide the channel value for a given channel.

Protected Attributes

BOOL fading
BOOL upComplete
BOOL downComplete
int upFadeSteps
int downFadeSteps
int fadeStep
int faderNumber
float targetCue
unsigned char * increasingLevels
unsigned char * decreasingLevels
LOScenecachedScene
LOChannelManagerchannelManager
NSTimer * fadeTimer

Detailed Description

A class for fading from one look to another.

Member Function Documentation

- (void) fadeFromScene: (LOScene *)  aScene
toCue: (LOLightCue *)  aCue 

starts a fade from the current look on stage to the next cue.

It is designed as a cue only fader not a tracking fader. When the fade is complete a "LOCueFaderComplete" notification will be sent. It will include a user dict with the fader number under the key'faderNumber'

- (int) valueForChannel: (unsigned)  aChannel  

Provide the channel value for a given channel.

Parameters:
aChannel The channel number that the value should be provide for.
Returns:
The channel value, or < 0 if this provider does not have data for this channel

Reimplemented from < LOChannelProvider >.


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