11 #ifndef __TIL_CompOptions_h__
12 #define __TIL_CompOptions_h__
28 static void setCookCacheSize(
int size);
29 static int getCookCacheSize();
31 static void setCacheInactiveReduce(
int reduce);
32 static int getCacheInactiveReduce();
34 static void setCacheInactiveSize(
int size);
35 static int getCacheInactiveSize();
37 static void setPerformanceCaching(
int on);
38 static int getPerformanceCaching();
40 static void setResLimit(
int x,
int y);
41 static void getResLimit(
int &x,
int &y);
44 static void getRecommendedMemoryUsage(
int64 &cook,
int64 &disp);
45 static int getRecommendedThreads();
48 static void setMultithreadedCooking(
int on);
49 static int getMultithreadedCooking();
51 static void setNumCookThreads(
int threads);
52 static int getNumCookThreads();
54 static void setUseCollapsableOps(
int enable);
55 static int getUseCollapsableOps();
57 static void setUseGPUAssist(
bool enable);
58 static bool getUseGPUAssist(
bool check_for_hardware_support=
true);
59 static bool isGPUAssistInitialized();
61 static void setCookOnStart(
int enable);
62 static int getCookOnStart();
64 static void setIncrementalCook(
int type);
65 static int getIncrementalCook();
67 static void setIncrementalCookStyle(
int type);
68 static int getIncrementalCookStyle();
71 static void setProxyGeneration(
int on);
72 static int getProxyGeneration();
74 static void setProxyLimit(
int on);
75 static int getProxyLimit();
77 static void setProxyDiskLimit(
int size);
78 static int getProxyDiskLimit();
80 static void setProxyDir(
const char *dir);
81 static const char *getProxyDir();
83 static void setTileSize(
int x,
int y);
84 static void getTileSize(
int &x,
int &y);
87 static void setColorName(
const char *
n);
88 static const char *getColorName();
90 static void setAlphaName(
const char *n);
91 static const char *getAlphaName();
93 static void setMaskName(
const char *n);
94 static const char *getMaskName();
96 static void setDepthName(
const char *n);
97 static const char *getDepthName();
99 static void setLumName(
const char *n);
100 static const char *getLumName();
102 static void setBumpName(
const char *n);
103 static const char *getBumpName();
105 static void setPointName(
const char *n);
106 static const char *getPointName();
108 static void setNormalName(
const char *n);
109 static const char *getNormalName();
111 static void setVelocityName(
const char *n);
112 static const char *getVelocityName();
115 static void setSelectorNoOptional(
int noopt);
116 static int getSelectorNoOptional();
118 static void setSelectorNoGenInputs(
int nogen);
119 static int getSelectorNoGenInputs();
121 static void setSelectorPlaceCurrent(
int placecurrent);
122 static int getSelectorPlaceCurrent();
124 static void setSelectorGenNewView(
int newview);
125 static int getSelectorGenNewView();
128 static void setUseCop2Coloring(
int use);
129 static int getUseCop2Coloring();
131 static void setGeneratorColorEnable(
int use);
132 static int getGeneratorColorEnable();
134 static void setGeneratorColor(
float r,
float g,
float b);
135 static void getGeneratorColor(
float &r,
float &g,
float &b);
137 static void setPixelColorEnable(
int use);
138 static int getPixelColorEnable();
140 static void setPixelColor(
float r,
float g,
float b);
141 static void getPixelColor(
float &r,
float &g,
float &b);
143 static void setTimingColorEnable(
int use);
144 static int getTimingColorEnable();
146 static void setTimingColor(
float r,
float g,
float b);
147 static void getTimingColor(
float &r,
float &g,
float &b);
149 static void setVexColorEnable(
int use);
150 static int getVexColorEnable();
152 static void setVexColor(
float r,
float g,
float b);
153 static void getVexColor(
float &r,
float &g,
float &b);
156 static void setFastInteractive(
bool enable);
157 static bool getFastInteractive();
159 static void setFastInteractiveOnSlow(
bool enable);
160 static bool getFastInteractiveOnSlow();
162 static void setFastInteractiveQuality(
int resdownby);
163 static int getFastInteractiveQuality();
165 static void setFastInteractiveMinSize(
int x,
int y);
166 static void getFastInteractiveMinSize(
int &x,
int &y);
169 static void initCineon();
172 static void setCineonParms(
bool convert,
const char *lut,
173 int white,
float gamma,
int black);
174 static void getCineonParms(
bool &convert,
const char *&lut,
175 int &white,
float &gamma,
int &black);
178 static UT_FileLUTPtr buildReadLUT(
bool convert,
const char *lut,
179 int white,
float gamma,
int black);
180 static UT_FileLUTPtr buildWriteLUT(
bool convert,
const char *lut,
181 int white,
float gamma,
int black);
185 static void buildCineonLUTs(
bool read,
191 static void createCineonLUT(
bool convert,
const char *lut,
192 int white,
float gamma,
int iwhite,
193 bool read,
bool write,
202 static const char *getPrefFileName();
203 static void loadPreferences();
204 static void savePreferences();
Tto convert(const Tfrom &source)
std::unique_ptr< T, Deleter > UT_UniquePtr
A smart pointer for unique ownership of dynamically allocated objects.
T reduce(RangeT range, const T &identity, const FuncT &func, const JoinT &join)
GLboolean GLboolean GLboolean b
UT_UniquePtr< UT_FileLUT > UT_FileLUTPtr