00001 #ifndef __AICustomColor__
00002 #define __AICustomColor__
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 #ifndef __AITypes__
00031 #include "AITypes.h"
00032 #endif
00033
00034 #ifndef __AIColor__
00035 #include "AIColor.h"
00036 #endif
00037
00038 #ifndef __AIColorConversion__
00039 #include "AIColorConversion.h"
00040 #endif
00041
00042 #include "IAIUnicodeString.h"
00043
00044
00045 #include "AIHeaderBegin.h"
00046
00049
00050
00051
00052
00053
00054
00055 #define kAICustomColorSuite "AI Custom Color Suite"
00056 #define kAICustomColorSuiteVersion AIAPI_VERSION(8)
00057 #define kAICustomColorVersion kAICustomColorSuiteVersion
00058
00063 #define kAIArtCustomColorChangedNotifier "AI Art Custom Color Changed Notifier"
00064
00065
00066
00067
00068
00069
00070
00071
00079 typedef struct {
00080
00088 AIAPI AIErr (*NewCustomColor) ( AICustomColor *color, const ai::UnicodeString& name, AICustomColorHandle *customColor );
00089
00094 AIAPI AIErr (*DeleteCustomColor) ( AICustomColorHandle customColor );
00095
00101 AIAPI AIErr (*GetCustomColor) ( AICustomColorHandle customColor, AICustomColor *color );
00107 AIAPI AIErr (*SetCustomColor) ( AICustomColorHandle customColor, AICustomColor *color );
00108
00113 AIAPI AIErr (*GetCustomColorName) ( AICustomColorHandle customColor, ai::UnicodeString& name );
00114
00121 AIAPI AIErr (*SetCustomColorName) ( AICustomColorHandle customColor, const ai::UnicodeString& name );
00122
00127 AIAPI AIErr (*CountCustomColors) ( ai::int32 *count );
00128
00134 AIAPI AIErr (*GetNthCustomColor) ( ai::int32 n, AICustomColorHandle *customColor );
00135
00140 AIAPI AIErr (*GetCustomColorByName) ( const ai::UnicodeString& name, AICustomColorHandle *customColor );
00141
00150 AIAPI AIErr (*NewCustomColorName) ( ai::UnicodeString& name );
00151
00154 AIAPI AIErr (*GetCustomColorDisplayName) ( ai::UnicodeString& name );
00155
00159 AIAPI AIErr (*GetCurrentRegistrationColor) ( AICustomColorHandle *customColor );
00160
00167 AIAPI AIErr (*NewRegistrationColor)(AICustomColorHandle *customColor, AIReal cyan ,
00168 AIReal magenta ,AIReal yellow, AIReal black, AICustomColorTag kind);
00169
00176 AIAPI AIBoolean (*ValidateCustomColor)(AICustomColorHandle customColor);
00183 AIAPI AIBoolean (*HasExternalUses)(AICustomColorHandle customColor);
00184
00203 AIAPI AIErr (*ConvertToNonGlobal)(AICustomColorHandle customColor, AIReal tint, AIColor* color);
00204
00220 AIAPI AIErr (*GetAppearanceApproximation)(AICustomColorHandle customColor, AIReal tint,
00221 ai::int32* space, AIFloatSampleComponent* values);
00222
00228 AIAPI AIErr (*SetCustomColorBookID)(AICustomColorHandle customColor, ai::int32 bookid);
00229
00230
00235 AIAPI ai::int32 (*GetCustomColorBookID)(AICustomColorHandle customColor);
00236
00237
00238 } AICustomColorSuite;
00239
00240
00241 #include "AIHeaderEnd.h"
00242
00243
00244 #endif