19 #ifndef __TIL_CopResolver__
20 #define __TIL_CopResolver__
33 #define TIL_DEFAULT_COLOR_PLANE "(Default Color)"
34 #define TIL_DEFAULT_ALPHA_PLANE "(Default Alpha)"
35 #define TIL_NO_PLANE "(None)"
77 myOldSeconds = getResolver()->getGlobalTime();
78 getResolver()->setGlobalTime(time);
85 getResolver()->setGlobalTime(myOldSeconds);
99 static bool enableThreadResolverCache(
bool enable);
102 static bool threadResolverCacheEnabled();
107 static exint threadResolverCacheWatermark();
114 static void clearResolverCache(
bool force_full_clear);
122 static TIL_Raster *getRaster(
const char *fullpath,
124 bool *specific_frame =
nullptr);
125 static fpreal getRasterTime(
int opid);
126 static size_t getRasterVersion(
int opid);
140 bool *specific_frame =
nullptr);
144 static int getIdFrame(
const char *fullpath,
int &
id,
146 static void splitFile(
const char *fullpath,
153 static int getNodeId(
const char *net,
const char *node);
154 static void getNodeRes(
const char *net,
const char *node,
155 int &xres,
int &yres);
157 static int getNodeId(
const char *fullpath);
158 static void getNodeRes(
const char *fullpath,
159 int &xres,
int &yres);
161 static void getFileRes(
const char *file,
162 int &xres,
int &yres);
164 static int splitPath(
const char *cpath,
int &
id,
168 int &xres,
int &yres);
171 static void buildColorMenu(
const char *net,
175 static void buildAlphaMenu(
const char *net,
179 static bool canResolve(
const char *fullpath);
183 virtual int resolveId(
const char *fullpath) = 0;
185 virtual TIL_Raster *resolveRaster(
int id) = 0;
187 int xres=0,
int yres=0) = 0;
189 const char *
color,
int cindex,
190 const char *
alpha,
int aindex,
191 int xres=0,
int yres = 0,
198 const char *
color) = 0;
200 virtual bool resolveIsPossible(
const char *fullpath) = 0;
203 virtual TIL_Raster *getFileRaster(
const char *file,
205 int xres = 0,
int yres = 0);
223 virtual TIL_Raster *getNodeRaster(
const char *fullpath,
224 const char *cmenu,
const char *amenu,
225 bool override_frame =
false,
229 int xres = 0,
int yres = 0);
231 virtual void getRes(
int id,
int &xres,
int &yres);
237 virtual bool resolveRasters(
int id,
244 virtual void buildPlaneMenu(
const char *net,
const char *node,
256 virtual int isOpBased();
258 virtual fpreal getTimeForRaster(
int id);
259 virtual size_t getVersionForRaster(
int id);
265 int splitPath(
const char *fullpath,
269 virtual fpreal getGlobalTime();
autoEnableCache(bool enable)
*get result *(waiting if necessary)*A common idiom is to fire a bunch of sub tasks at the and then *wait for them to all complete We provide a helper class
GT_API const UT_StringHolder time
GLint GLint GLsizei GLint GLenum GLenum type
#define TILE_MAX_DATA_FORMAT
std::shared_ptr< T > UT_SharedPtr
Wrapper around std::shared_ptr.
static bool enableThreadResolverCache(bool enable)
GLint GLint GLsizei GLint GLenum format
#define UT_NON_COPYABLE(CLASS)
Define deleted copy constructor and assignment operator inside a class.
HUSD_API const char * raster()
GLfloat GLfloat GLfloat alpha
GLuint const GLchar * name
Class to push/pop the enable state.
Class to push/pop the evaluate time.
autoEvaluateTime(fpreal time)