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

< LOChannelProvider > Protocol Reference

Formal protocol for objects that are able to update a channel. More...

#import <LOChannelProvider.h>

Inheritance diagram for < LOChannelProvider >:

LOChase LOCueFader LODiplessCrossFadeProvider LODirectProvider LOMultiSceneProvider LOScene LOSceneProvider LOTimedDiplessCrossFadeProvider LODirectProvider

Public Member Functions

(int) - valueForChannel:
 Provide the channel value for a given channel.
(int) - providerID
 This is used to allow other objects to identify the type, or specific provider, used when an update has occued.

Detailed Description

Formal protocol for objects that are able to update a channel.

Example objects that might implement this would be the Shape Generator and the Stack etc.


Member Function Documentation

- (int) providerID  

This is used to allow other objects to identify the type, or specific provider, used when an update has occued.

There are a number of predefined IDs, and all other values may be used within applications using the LightsOn framework

- (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 in LOCueFader, and LOScene.


The documentation for this protocol was generated from the following file: