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

LOTimedDiplessCrossFadeProvider Class Reference

A channel provider that automatically runs a cross fade given fade up and fade down, or cross fade time. More...

#import <LOTimedDiplessCrossFadeProvider.h>

Inheritance diagram for LOTimedDiplessCrossFadeProvider:

LODiplessCrossFadeProvider < LOChannelProvider >

Public Member Functions

(float) - fadeUpTime
 Get the fade up time in seconds.
(void) - setFadeUpTime:
 Set the fade up time.
(float) - fadeDownTime
 Get the fade down time in seconds.
(void) - setFadeDownTime:
 Set the fade up time.
(void) - setCrossFadeTime:
 Set the cross fade time.
(void) - start
 Start a fade from whatever position the current fade values are at.
(void) - stop
 Stop a fade that is in progress.
(BOOL) - isRunning
 Check to see if a fade is currently in progress.

Protected Attributes

float fadeUpTime
 The time to fade up.
float fadeDownTime
 The time to fade down.
int fadeUpSteps
 The number of steps needed for the fade up.
int fadeDownSteps
 The number of steps needed for the fade down.
int currUpStep
 The current up step.
int currDownStep
 The current down step.
NSTimer * stepUpTimer
 The timer for fading up.
NSTimer * stepDownTimer
 The timer for fading down.
LOTimingThreadtimingThread
 The thread that the timing will happe in.
BOOL downRunning
 Flag to see if we are currently running a fade.
BOOL upRunning
 Flag to see if we are currently running a fade.
NSLock * runningLock
 Lock to help us wait for the timing thread to.

Detailed Description

A channel provider that automatically runs a cross fade given fade up and fade down, or cross fade time.

Member Function Documentation

- (float) fadeDownTime  

Get the fade down time in seconds.

See also:
- setFadeDownTime:

- (float) fadeUpTime  

Get the fade up time in seconds.

See also:
- setFadeUpTime:

- (BOOL) isRunning  

Check to see if a fade is currently in progress.

- (void) setCrossFadeTime: (float)  seconds  

Set the cross fade time.

This is the same as settings both the fade up and fade times to the same value.

Parameters:
seconds The number of seconds the cross fade should happen over
See also:
fadeUpTime

- setCrossFadeTime:

- (void) setFadeDownTime: (float)  seconds  

Set the fade up time.

Parameters:
seconds The number of seconds the fade down should happen over
See also:
fadeDownTime

- setCrossFadeTime:

- (void) setFadeUpTime: (float)  seconds  

Set the fade up time.

Parameters:
seconds The number of seconds the fade up should happen over
See also:
fadeUpTime

- setCrossFadeTime:

- (void) start  

Start a fade from whatever position the current fade values are at.

If both fade value are already at 255 then the fade will not start.

When the fade has completed an LODiplessCrossFadeCompletedNotification is posted.

- (void) stop  

Stop a fade that is in progress.

If no fade is running, then nothing is done


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