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: COP2_Cop2Resolver.h ( COP2 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_Cop2Resolver.h>
16 
18 {
19 public:
20  COP2_Resolver();
21  ~COP2_Resolver() override;
22 
23  int resolveId(const char *fullpath) override;
24  TIL_Raster *resolveRaster(int id) override;
25  TIL_Raster *resolveRasterFrame(int id, fpreal frame,
26  int xres =0, int yres =0) override;
27  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,
32  TILE_MAX_DATA_FORMAT) override;
33  bool resolveIsPossible(const char *fullpath) override;
34  int isOpBased() override;
35 
36  void buildPlaneMenu(const char *net, const char *node,
37  UT_ValArray<char *> &items) override;
38 
39  void getRes(int id, int &xres, int &yres) override;
40 
41  TIL_Raster *getFileRaster(const char *file,
43  int xres = 0, int yres = 0) override;
45  const char *fullpath,
46  const char *cmenu,
47  const char *amenu,
48  bool override_frame = false,
49  fpreal frame = 1.0,
51 
52  bool returnRaster(const TIL_Raster *raster) override;
53  fpreal getTimeForRaster(int opid) override;
54  size_t getVersionForRaster(int opid) override;
55  TIL_Sequence *getSequence(int id) override;
56  bool resolveRasters(int id,
57  const UT_StringArray &plane_names,
58  fpreal t,
59  UT_ValArray<TIL_Raster *> &new_rasters,
60  TIL_DataFormat format) override;
61  TIL_ImageSource *resolveImageSource(int id) override;
62 
63 };
64 
65 #endif
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)
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 bool returnRaster(const TIL_Raster *raster)
virtual TIL_Sequence * getSequence(int id)
virtual TIL_Raster * resolveRaster(int id)=0
GLfloat f
Definition: glcorearb.h:1926
#define TIL_DataFormat
Definition: TIL_Defines.h:65
#define TILE_MAX_DATA_FORMAT
Definition: TIL_Defines.h:71
IMG_DataType
Definition: IMG_FileTypes.h:17
virtual TIL_Raster * resolveRasterFrame(int id, fpreal frame, int xres=0, int yres=0)=0
GLint GLint GLsizei GLint GLenum format
Definition: glcorearb.h:108
HUSD_API const char * raster()
GLfloat GLfloat GLfloat alpha
Definition: glcorearb.h:112
virtual void buildPlaneMenu(const char *net, const char *node, UT_ValArray< char * > &items)
GLdouble t
Definition: glad.h:2397
virtual void getRes(int id, int &xres, int &yres)
virtual int resolveId(const char *fullpath)=0
#define COP2_API
Definition: COP2_API.h:10
GLuint color
Definition: glcorearb.h:1261
virtual TIL_ImageSource * resolveImageSource(int id)
fpreal64 fpreal
Definition: SYS_Types.h:277
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 int isOpBased()
virtual bool resolveIsPossible(const char *fullpath)=0
virtual TIL_Raster * getFileRaster(const char *file, IMG_DataType type=IMG_DT_ANY, int xres=0, int yres=0)
virtual fpreal getTimeForRaster(int id)
type
Definition: core.h:1059
virtual size_t getVersionForRaster(int id)