LOColorMixFixtureAttribute.h
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036 #import <Cocoa/Cocoa.h>
00037 #import "LOProportionalFixtureAttribute.h"
00038
00039 typedef enum LOColorMixType
00040 {
00041 LOColorMixTypeCMY = 0,
00042 LOColorMixTypeRGB,
00043 LOColorMixTypeHSV
00044 } LOColorMixType;
00045
00046
00054 @interface LOColorMixFixtureAttribute : LOProportionalFixtureAttribute
00055 {
00056 LOColorMixType colorMixType;
00057
00058 BOOL hasIntensity;
00059 unsigned char intensity;
00060 NSColor *color;
00061 }
00062
00063
00071 - (id)initWithName:(NSString *)aName mixType:(LOColorMixType)aType;
00072
00073
00081 - (LOColorMixType)colorMixType;
00082
00083
00091 - (void)setColorMixType:(LOColorMixType)theType;
00092
00093
00106 - (void)setRange:(LOFixtureRange *)theRange atIndex:(unsigned)theIndex forByte:(LOFixtureAttributeByteType)byte;
00107
00108
00114 - (void)setChannelNames;
00115
00116
00125 - (BOOL)updateOutputWithObject:(id)anObject;
00126
00127
00139 - (BOOL)hasIntensity;
00140
00141
00151 - (void)setHasIntensity:(BOOL)flag;
00152
00153
00166 - (BOOL)updateIntensityValue:(unsigned char)theValue;
00167
00168
00178 - (BOOL)updateOutputToValue:(unsigned)theValue;
00179
00180
00181 #pragma mark Deprecated Fucntions
00182
00190 - (void)updateOutputToColor:(NSColor *)color;
00191
00192
00193 @end
00194
00195
00196
00197
00198
00199
00200
00201
00202
00203
00204
00205
00206
00207
00208
00209
00210
00211
00212
00213
00214
00215
00216
00217