00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #ifndef __TIL_CompOptions_h__
00021 #define __TIL_CompOptions_h__
00022
00023 #include "TIL_API.h"
00024 class TIL_TileManager;
00025 class UT_FileLUT;
00026
00027 class TIL_API TIL_CompOptions
00028 {
00029 public:
00030 TIL_CompOptions();
00031
00032
00033 static void setCookCacheSize(int size);
00034 static int getCookCacheSize();
00035
00036 static void setCacheInactiveReduce(int reduce);
00037 static int getCacheInactiveReduce();
00038
00039 static void setCacheInactiveSize(int size);
00040 static int getCacheInactiveSize();
00041
00042 static void setPerformanceCaching(int on);
00043 static int getPerformanceCaching();
00044
00045 static void setResLimit(int x,int y);
00046 static void getResLimit(int &x, int &y);
00047
00048
00049 static void getRecommendedMemoryUsage(int &cook, int &disp);
00050 static int getRecommendedThreads();
00051
00052
00053 static void setMultithreadedCooking(int on);
00054 static int getMultithreadedCooking();
00055
00056 static void setNumCookThreads(int threads);
00057 static int getNumCookThreads();
00058
00059 static void setUseCollapsableOps(int enable);
00060 static int getUseCollapsableOps();
00061
00062 static void setUseGPUAssist(bool enable);
00063 static bool getUseGPUAssist();
00064 static bool isGPUAssistInitialized();
00065
00066 static void setUseSPUAssist(bool enable);
00067 static bool getUseSPUAssist();
00068
00069 static void setCookOnStart(int enable);
00070 static int getCookOnStart();
00071
00072 static void setIncrementalCook(int type);
00073 static int getIncrementalCook();
00074
00075 static void setIncrementalCookStyle(int type);
00076 static int getIncrementalCookStyle();
00077
00078
00079 static void setProxyGeneration(int on);
00080 static int getProxyGeneration();
00081
00082 static void setProxyLimit(int on);
00083 static int getProxyLimit();
00084
00085 static void setProxyDiskLimit(int size);
00086 static int getProxyDiskLimit();
00087
00088 static void setProxyDir(const char *dir);
00089 static const char *getProxyDir();
00090
00091 static void setTileSize(int x, int y);
00092 static void getTileSize(int &x, int &y);
00093
00094
00095 static void setColorName(const char *n);
00096 static const char *getColorName();
00097
00098 static void setAlphaName(const char *n);
00099 static const char *getAlphaName();
00100
00101 static void setMaskName(const char *n);
00102 static const char *getMaskName();
00103
00104 static void setDepthName(const char *n);
00105 static const char *getDepthName();
00106
00107 static void setLumName(const char *n);
00108 static const char *getLumName();
00109
00110 static void setBumpName(const char *n);
00111 static const char *getBumpName();
00112
00113 static void setPointName(const char *n);
00114 static const char *getPointName();
00115
00116 static void setNormalName(const char *n);
00117 static const char *getNormalName();
00118
00119 static void setVelocityName(const char *n);
00120 static const char *getVelocityName();
00121
00122
00123 static void setSelectorNoOptional(int noopt);
00124 static int getSelectorNoOptional();
00125
00126 static void setSelectorNoGenInputs(int nogen);
00127 static int getSelectorNoGenInputs();
00128
00129 static void setSelectorPlaceCurrent(int placecurrent);
00130 static int getSelectorPlaceCurrent();
00131
00132 static void setSelectorGenNewView(int newview);
00133 static int getSelectorGenNewView();
00134
00135
00136 static void setUseCopColoring(int use);
00137 static int getUseCopColoring();
00138
00139 static void setGeneratorColorEnable(int use);
00140 static int getGeneratorColorEnable();
00141
00142 static void setGeneratorColor(float r, float g, float b);
00143 static void getGeneratorColor(float &r, float &g, float &b);
00144
00145 static void setPixelColorEnable(int use);
00146 static int getPixelColorEnable();
00147
00148 static void setPixelColor(float r, float g, float b);
00149 static void getPixelColor(float &r, float &g, float &b);
00150
00151 static void setTimingColorEnable(int use);
00152 static int getTimingColorEnable();
00153
00154 static void setTimingColor(float r, float g, float b);
00155 static void getTimingColor(float &r, float &g, float &b);
00156
00157 static void setVexColorEnable(int use);
00158 static int getVexColorEnable();
00159
00160 static void setVexColor(float r, float g, float b);
00161 static void getVexColor(float &r, float &g, float &b);
00162
00163
00164 static void setFastInteractive(bool enable);
00165 static bool getFastInteractive();
00166
00167 static void setFastInteractiveOnSlow(bool enable);
00168 static bool getFastInteractiveOnSlow();
00169
00170 static void setFastInteractiveQuality(int resdownby);
00171 static int getFastInteractiveQuality();
00172
00173 static void setFastInteractiveMinSize(int x, int y);
00174 static void getFastInteractiveMinSize(int &x, int &y);
00175
00176
00177 static void initCineon();
00178
00179
00180 static void setCineonParms(bool convert, const char *lut,
00181 int white, float gamma, int black);
00182 static void getCineonParms(bool &convert, const char *&lut,
00183 int &white, float &gamma, int &black);
00184
00185
00186 static UT_FileLUT *buildReadLUT(bool convert, const char *lut,
00187 int white, float gamma, int black);
00188 static UT_FileLUT *buildWriteLUT(bool convert, const char *lut,
00189 int white, float gamma, int black);
00190
00191
00192
00193 static void buildCineonLUTs(bool read,
00194 bool write,
00195 UT_FileLUT *&rlut,
00196 UT_FileLUT *&wlut);
00197
00198
00199 static void createCineonLUT(bool convert, const char *lut,
00200 int white, float gamma, int iwhite,
00201 bool read, bool write,
00202 UT_FileLUT *&rlut,
00203 UT_FileLUT *&wlut);
00204
00205 static UT_FileLUT * defaultLUTcreator(bool dowrite);
00206
00207
00208 static void setLumForSingle(int en);
00209 static int getLumForSingle();
00210
00211
00212 static int isInitialized();
00213 static void setTileManager(TIL_TileManager *);
00214
00215 static const char *getPrefFileName();
00216 static void loadPreferences();
00217 static void savePreferences();
00218 };
00219
00220 #endif