HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
TIL_Cop2Resolver Class Referenceabstract

#include <TIL_Cop2Resolver.h>

+ Inheritance diagram for TIL_Cop2Resolver:

Public Member Functions

 TIL_Cop2Resolver ()
 
virtual ~TIL_Cop2Resolver ()
 
virtual int resolveId (const char *fullpath)=0
 
virtual TIL_RasterresolveRaster (int id)=0
 
virtual TIL_RasterresolveRasterFrame (int id, fpreal frame, int xres=0, int yres=0)=0
 
virtual 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)=0
 
virtual bool resolveIsPossible (const char *fullpath)=0
 
virtual TIL_RastergetFileRaster (const char *file, IMG_DataType type=IMG_DT_ANY, int xres=0, int yres=0)
 
virtual 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)
 
virtual void getRes (int id, int &xres, int &yres)
 
virtual TIL_SequencegetSequence (int id)
 
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 void buildPlaneMenu (const char *net, const char *node, UT_ValArray< char * > &items)
 
virtual TIL_ImageSourceresolveImageSource (int id)
 
virtual bool returnRaster (const TIL_Raster *raster)
 
virtual int isOpBased ()
 
virtual fpreal getTimeForRaster (int id)
 
virtual size_t getVersionForRaster (int id)
 

Static Public Member Functions

static void setResolver (TIL_Cop2Resolver *resolver)
 
static TIL_Cop2ResolvergetResolver ()
 
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

int splitPath (const char *fullpath, UT_String &name, fpreal &frame)
 

Detailed Description

Examples:
SOP/SOP_Cop2Raster.C.

Definition at line 40 of file TIL_Cop2Resolver.h.

Constructor & Destructor Documentation

TIL_Cop2Resolver::TIL_Cop2Resolver ( )
virtual TIL_Cop2Resolver::~TIL_Cop2Resolver ( )
virtual

Member Function Documentation

static void TIL_Cop2Resolver::buildAlphaMenu ( const char *  net,
const char *  node,
UT_ValArray< char * > &  items 
)
static
static void TIL_Cop2Resolver::buildColorMenu ( const char *  net,
const char *  node,
UT_ValArray< char * > &  items 
)
static
virtual void TIL_Cop2Resolver::buildPlaneMenu ( const char *  net,
const char *  node,
UT_ValArray< char * > &  items 
)
virtual

Reimplemented in COP2_Resolver.

static bool TIL_Cop2Resolver::canResolve ( const char *  fullpath)
static
static bool TIL_Cop2Resolver::doneWithRaster ( const TIL_Raster r)
static

Tell the resolver we're done with the raster. Some resolvers will delete rasters, others will hold onto them. If the raster actually dirties/deletes the raster, doneWithRaster() will return true.

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

Reimplemented in COP2_Resolver.

static void TIL_Cop2Resolver::getFileRes ( const char *  file,
int xres,
int yres 
)
static
static int TIL_Cop2Resolver::getIdFrame ( const char *  fullpath,
int id,
fpreal frame 
)
static
static int TIL_Cop2Resolver::getNodeId ( const char *  net,
const char *  node 
)
static
static int TIL_Cop2Resolver::getNodeId ( const char *  fullpath)
static
virtual TIL_Raster* TIL_Cop2Resolver::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

Reimplemented in COP2_Resolver.

Examples:
SOP/SOP_Cop2Raster.C.
static void TIL_Cop2Resolver::getNodeRes ( const char *  net,
const char *  node,
int xres,
int yres 
)
static
static void TIL_Cop2Resolver::getNodeRes ( const char *  fullpath,
int xres,
int yres 
)
static
static TIL_Raster* TIL_Cop2Resolver::getRaster ( const char *  fullpath,
int opid,
bool *  specific_frame = nullptr 
)
static
static fpreal TIL_Cop2Resolver::getRasterTime ( int  opid)
static
static size_t TIL_Cop2Resolver::getRasterVersion ( int  opid)
static
virtual void TIL_Cop2Resolver::getRes ( int  id,
int xres,
int yres 
)
virtual

Reimplemented in COP2_Resolver.

static TIL_Cop2Resolver* TIL_Cop2Resolver::getResolver ( )
static
virtual TIL_Sequence* TIL_Cop2Resolver::getSequence ( int  id)
virtual

Reimplemented in COP2_Resolver.

virtual fpreal TIL_Cop2Resolver::getTimeForRaster ( int  id)
virtual

Reimplemented in COP2_Resolver.

virtual size_t TIL_Cop2Resolver::getVersionForRaster ( int  id)
virtual

Reimplemented in COP2_Resolver.

virtual int TIL_Cop2Resolver::isOpBased ( )
virtual

Reimplemented in COP2_Resolver.

virtual int TIL_Cop2Resolver::resolveId ( const char *  fullpath)
pure virtual

Implemented in COP2_Resolver.

virtual TIL_ImageSource* TIL_Cop2Resolver::resolveImageSource ( int  id)
virtual

Reimplemented in COP2_Resolver.

virtual bool TIL_Cop2Resolver::resolveIsPossible ( const char *  fullpath)
pure virtual

Implemented in COP2_Resolver.

virtual TIL_Raster* TIL_Cop2Resolver::resolveRaster ( int  id)
pure virtual

Implemented in COP2_Resolver.

virtual TIL_Raster* TIL_Cop2Resolver::resolveRasterFrame ( int  id,
fpreal  frame,
int  xres = 0,
int  yres = 0 
)
pure virtual

Implemented in COP2_Resolver.

virtual TIL_Raster* TIL_Cop2Resolver::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 
)
pure virtual

Implemented in COP2_Resolver.

virtual bool TIL_Cop2Resolver::resolveRasters ( int  id,
const UT_StringArray plane_names,
fpreal  t,
UT_ValArray< TIL_Raster * > &  new_rasters,
TIL_DataFormat  format = TILE_MAX_DATA_FORMAT 
)
virtual

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

Reimplemented in COP2_Resolver.

virtual bool TIL_Cop2Resolver::returnRaster ( const TIL_Raster raster)
virtual

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 in COP2_Resolver.

static void TIL_Cop2Resolver::setResolver ( TIL_Cop2Resolver resolver)
static
static void TIL_Cop2Resolver::splitFile ( const char *  fullpath,
UT_String name,
int xres,
int yres,
float quality 
)
static
static int TIL_Cop2Resolver::splitPath ( const char *  cpath,
int id,
fpreal frame,
UT_WorkBuffer color,
int cindex,
UT_WorkBuffer alpha,
int aindex,
int xres,
int yres 
)
static
int TIL_Cop2Resolver::splitPath ( const char *  fullpath,
UT_String name,
fpreal frame 
)
protected

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