HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
COP2_Resolver Class Reference

#include <COP2_Resolver.h>

+ Inheritance diagram for COP2_Resolver:

Public Member Functions

 COP2_Resolver ()
 
 ~COP2_Resolver () override
 
int resolveId (const char *fullpath) override
 
TIL_RasterresolveRaster (int id) override
 
TIL_RasterresolveRasterFrame (int id, fpreal frame, int xres=0, int yres=0) override
 
TIL_RasterresolveRasterPlane (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) override
 
bool resolveIsPossible (const char *fullpath) override
 
int isOpBased () override
 
void buildPlaneMenu (const char *net, const char *node, UT_ValArray< char * > &items) override
 
void getRes (int id, int &xres, int &yres) override
 
TIL_RastergetFileRaster (const char *file, IMG_DataType type=IMG_DT_ANY, int xres=0, int yres=0) override
 
TIL_RastergetNodeRaster (const char *fullpath, const char *cmenu, const char *amenu, bool override_frame=false, fpreal frame=1.0, TIL_DataFormat f=TILE_MAX_DATA_FORMAT) override
 
bool returnRaster (const TIL_Raster *raster) override
 
fpreal getTimeForRaster (int opid) override
 
size_t getVersionForRaster (int opid) override
 
TIL_SequencegetSequence (int id) override
 
bool resolveRasters (int id, const UT_StringArray &plane_names, fpreal t, UT_ValArray< TIL_Raster * > &new_rasters, TIL_DataFormat format) override
 
TIL_ImageSourceresolveImageSource (int id) override
 
- Public Member Functions inherited from TIL_CopResolver
 TIL_CopResolver ()
 
virtual ~TIL_CopResolver ()
 

Additional Inherited Members

- Static Public Member Functions inherited from TIL_CopResolver
static void setResolver (TIL_CopResolver *resolver)
 
static TIL_CopResolvergetResolver ()
 
static TIL_RastergetRaster (const char *fullpath, int &opid, bool *specific_frame=nullptr)
 
static fpreal getRasterTime (int opid)
 
static size_t getRasterVersion (int opid)
 
static bool doneWithRaster (const TIL_Raster *r)
 
static int getIdFrame (const char *fullpath, int &id, fpreal &frame)
 
static void splitFile (const char *fullpath, UT_String &name, int &xres, int &yres, float &quality)
 
static int getNodeId (const char *net, const char *node)
 
static void getNodeRes (const char *net, const char *node, int &xres, int &yres)
 
static int getNodeId (const char *fullpath)
 
static void getNodeRes (const char *fullpath, int &xres, int &yres)
 
static void getFileRes (const char *file, int &xres, int &yres)
 
static int splitPath (const char *cpath, int &id, fpreal &frame, UT_WorkBuffer &color, int &cindex, UT_WorkBuffer &alpha, int &aindex, int &xres, int &yres)
 
static void buildColorMenu (const char *net, const char *node, UT_ValArray< char * > &items)
 
static void buildAlphaMenu (const char *net, const char *node, UT_ValArray< char * > &items)
 
static bool canResolve (const char *fullpath)
 
- Protected Member Functions inherited from TIL_CopResolver
int splitPath (const char *fullpath, UT_String &name, fpreal &frame)
 

Detailed Description

Definition at line 17 of file COP2_Resolver.h.

Constructor & Destructor Documentation

COP2_Resolver::COP2_Resolver ( )
COP2_Resolver::~COP2_Resolver ( )
override

Member Function Documentation

void COP2_Resolver::buildPlaneMenu ( const char *  net,
const char *  node,
UT_ValArray< char * > &  items 
)
overridevirtual

Reimplemented from TIL_CopResolver.

TIL_Raster* COP2_Resolver::getFileRaster ( const char *  file,
IMG_DataType  type = IMG_DT_ANY,
int  xres = 0,
int  yres = 0 
)
overridevirtual

Reimplemented from TIL_CopResolver.

TIL_Raster* COP2_Resolver::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 
)
overridevirtual

Reimplemented from TIL_CopResolver.

void COP2_Resolver::getRes ( int  id,
int xres,
int yres 
)
overridevirtual

Reimplemented from TIL_CopResolver.

TIL_Sequence* COP2_Resolver::getSequence ( int  id)
overridevirtual

Reimplemented from TIL_CopResolver.

fpreal COP2_Resolver::getTimeForRaster ( int  opid)
overridevirtual

Reimplemented from TIL_CopResolver.

size_t COP2_Resolver::getVersionForRaster ( int  opid)
overridevirtual

Reimplemented from TIL_CopResolver.

int COP2_Resolver::isOpBased ( )
overridevirtual

Reimplemented from TIL_CopResolver.

int COP2_Resolver::resolveId ( const char *  fullpath)
overridevirtual

Implements TIL_CopResolver.

TIL_ImageSource* COP2_Resolver::resolveImageSource ( int  id)
overridevirtual

Reimplemented from TIL_CopResolver.

bool COP2_Resolver::resolveIsPossible ( const char *  fullpath)
overridevirtual

Implements TIL_CopResolver.

TIL_Raster* COP2_Resolver::resolveRaster ( int  id)
overridevirtual

Implements TIL_CopResolver.

TIL_Raster* COP2_Resolver::resolveRasterFrame ( int  id,
fpreal  frame,
int  xres = 0,
int  yres = 0 
)
overridevirtual

Implements TIL_CopResolver.

TIL_Raster* COP2_Resolver::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 
)
overridevirtual

Implements TIL_CopResolver.

bool COP2_Resolver::resolveRasters ( int  id,
const UT_StringArray plane_names,
fpreal  t,
UT_ValArray< TIL_Raster * > &  new_rasters,
TIL_DataFormat  format 
)
overridevirtual

This cooks a bunch of planes simulataneously, and adds the created rasters to 'new_rasters'. You are responsible for deleting them.

Reimplemented from TIL_CopResolver.

bool COP2_Resolver::returnRaster ( const TIL_Raster raster)
overridevirtual

Caller is finished with the raster for now, so delete memory if possible. Returns true if the raster is no longer valid, but false if the raster hasn't been touched (and is still valid). This is implementation dependent.

Reimplemented from TIL_CopResolver.


The documentation for this class was generated from the following file: