19 #ifndef __TIL_CopResolver__
20 #define __TIL_CopResolver__
32 #define TIL_DEFAULT_COLOR_PLANE "(Default Color)"
33 #define TIL_DEFAULT_ALPHA_PLANE "(Default Alpha)"
34 #define TIL_NO_PLANE "(None)"
57 myOldSeconds = getResolver()->getGlobalTime();
58 getResolver()->setGlobalTime(time);
65 getResolver()->setGlobalTime(myOldSeconds);
79 static bool enableThreadResolverCache(
bool enable);
82 static bool threadResolverCacheEnabled();
87 static exint threadResolverCacheWatermark();
94 static void clearResolverCache(
bool force_full_clear);
102 static TIL_Raster *getRaster(
const char *fullpath,
104 bool *specific_frame =
nullptr);
105 static fpreal getRasterTime(
int opid);
106 static size_t getRasterVersion(
int opid);
120 bool *specific_frame =
nullptr);
124 static int getIdFrame(
const char *fullpath,
int &
id,
126 static void splitFile(
const char *fullpath,
133 static int getNodeId(
const char *net,
const char *node);
134 static void getNodeRes(
const char *net,
const char *node,
135 int &xres,
int &yres);
137 static int getNodeId(
const char *fullpath);
138 static void getNodeRes(
const char *fullpath,
139 int &xres,
int &yres);
141 static void getFileRes(
const char *file,
142 int &xres,
int &yres);
144 static int splitPath(
const char *cpath,
int &
id,
148 int &xres,
int &yres);
151 static void buildColorMenu(
const char *net,
155 static void buildAlphaMenu(
const char *net,
159 static bool canResolve(
const char *fullpath);
163 virtual int resolveId(
const char *fullpath) = 0;
165 virtual TIL_Raster *resolveRaster(
int id) = 0;
167 int xres=0,
int yres=0) = 0;
169 const char *
color,
int cindex,
170 const char *
alpha,
int aindex,
171 int xres=0,
int yres = 0,
178 const char *
color) = 0;
180 virtual bool resolveIsPossible(
const char *fullpath) = 0;
183 virtual TIL_Raster *getFileRaster(
const char *file,
185 int xres = 0,
int yres = 0);
188 virtual TIL_Raster *getNodeRaster(
const char *fullpath,
189 const char *cmenu,
const char *amenu,
190 bool override_frame =
false,
195 virtual void getRes(
int id,
int &xres,
int &yres);
201 virtual bool resolveRasters(
int id,
208 virtual void buildPlaneMenu(
const char *net,
const char *node,
220 virtual int isOpBased();
222 virtual fpreal getTimeForRaster(
int id);
223 virtual size_t getVersionForRaster(
int id);
229 int splitPath(
const char *fullpath,
233 virtual fpreal getGlobalTime();
*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
#define TILE_MAX_DATA_FORMAT
std::shared_ptr< T > UT_SharedPtr
Wrapper around std::shared_ptr.
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
autoEvaluateTime(fpreal time)