HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
COP2_Resolver.h
Go to the documentation of this file.
1 /*
2  * PROPRIETARY INFORMATION. This software is proprietary to
3  * Side Effects Software Inc., and is not to be reproduced,
4  * transmitted, or disclosed in any way without written permission.
5  *
6  * NAME: COP_CopResolver.h ( COP Library, C++)
7  *
8  * COMMENTS: Handle grabbing texture maps from COPs.
9  */
10 
11 #ifndef __COP2_Resolver__
12 #define __COP2_Resolver__
13 
14 #include "COP2_API.h"
15 #include <TIL/TIL_CopResolver.h>
16 
18 {
19 public:
20  COP2_Resolver();
21  virtual ~COP2_Resolver();
22 
23  virtual int resolveId(const char *fullpath);
24  virtual TIL_Raster *resolveRaster(int id);
25  virtual TIL_Raster *resolveRasterFrame(int id, fpreal frame,
26  int xres =0, int yres =0);
27  virtual TIL_Raster *resolveRasterPlane(int id, fpreal frame,
28  const char *color, int cindex,
29  const char *alpha, int aindex,
30  int xres = 0, int yres = 0,
33  virtual bool resolveIsPossible(const char *fullpath);
34  virtual int isOpBased();
35 
36  virtual void buildPlaneMenu(const char *net, const char *node,
37  UT_ValArray<char *> &items);
38 
39  virtual void getRes(int id, int &xres, int &yres);
40 
41  virtual TIL_Raster *getFileRaster(const char *file,
43  int xres = 0, int yres = 0);
44  virtual TIL_Raster *getNodeRaster(const char *fullpath,
45  const char *cmenu, const char *amenu,
46  bool override_frame = false,
47  fpreal frame = 1.0,
49 
50  virtual bool returnRaster(const TIL_Raster *raster);
51  virtual fpreal getTimeForRaster(int opid);
52  virtual size_t getVersionForRaster(int opid);
53  virtual TIL_Sequence *getSequence(int id);
54  virtual bool resolveRasters(int id,
55  const UT_StringArray &plane_names,
56  fpreal t,
57  UT_ValArray<TIL_Raster *> &new_rasters,
59  virtual TIL_ImageSource *resolveImageSource(int id);
60 
61 };
62 
63 #endif
virtual size_t getVersionForRaster(int id)
virtual TIL_Raster * getNodeRaster(const char *fullpath, const char *cmenu, const char *amenu, bool override_frame=false, fpreal frame=1.0, TIL_DataFormat f=TILE_MAX_DATA_FORMAT)
virtual TIL_Sequence * getSequence(int id)
virtual TIL_Raster * getFileRaster(const char *file, IMG_DataType type=IMG_DT_ANY, int xres=0, int yres=0)
GLuint color
Definition: glcorearb.h:1260
virtual TIL_Raster * resolveRaster(int id)=0
virtual bool resolveIsPossible(const char *fullpath)=0
virtual TIL_Raster * resolveRasterPlane(int id, fpreal frame, const char *color, int cindex, const char *alpha, int aindex, int xres=0, int yres=0, TIL_DataFormat f=TILE_MAX_DATA_FORMAT)=0
virtual TIL_Raster * resolveRasterFrame(int id, fpreal frame, int xres=0, int yres=0)=0
GLfloat f
Definition: glcorearb.h:1925
#define TIL_DataFormat
Definition: TIL_Defines.h:64
virtual fpreal getTimeForRaster(int id)
virtual TIL_ImageSource * resolveImageSource(int id)
#define TILE_MAX_DATA_FORMAT
Definition: TIL_Defines.h:70
IMG_DataType
Definition: IMG_FileTypes.h:17
virtual int isOpBased()
GLfloat GLfloat GLfloat alpha
Definition: glcorearb.h:111
GLint GLint GLsizei GLint GLenum format
Definition: glcorearb.h:107
double fpreal
Definition: SYS_Types.h:270
#define COP2_API
Definition: COP2_API.h:10
virtual int resolveId(const char *fullpath)=0
virtual void getRes(int id, int &xres, int &yres)
GLint GLint GLsizei GLint GLenum GLenum type
Definition: glcorearb.h:107
virtual bool returnRaster(const TIL_Raster *raster)
virtual void buildPlaneMenu(const char *net, const char *node, UT_ValArray< char * > &items)
virtual bool resolveRasters(int id, const UT_StringArray &plane_names, fpreal t, UT_ValArray< TIL_Raster * > &new_rasters, TIL_DataFormat format=TILE_MAX_DATA_FORMAT)