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

#include <RU_PixelFunctions.h>

+ Inheritance diagram for RU_LookupTableFunc:

Public Member Functions

 RU_LookupTableFunc (PXL_Lookup *table)
 
virtual ~RU_LookupTableFunc ()
 
- Public Member Functions inherited from RU_PixelFunction
 RU_PixelFunction ()
 
virtual ~RU_PixelFunction ()
 
void setScope (bool *scope)
 
bool isScoped (int i) const
 
const bool * getScope () const
 
bool isPartialScope () const
 
bool isComponentDependent () const
 
bool areAllComponentsNeeded () const
 
void buildPixelEngine ()
 
void buildVectorEngine ()
 
void buildShaderEngine (UT_ComputeGPU *gpgpu)
 
float processValue (float val, int comp) const
 
void processValues (float **vals) const
 
const char * getShaderCode () const
 
const char * getFunctionCode () const
 
const char * getLocals () const
 
bool usesNumCompsGlobal () const
 
void setNext (RU_PixelFunction *next)
 
RU_PixelFunctionnext () const
 
void setNumComps (int comps)
 

Protected Member Functions

virtual bool eachComponentDifferent () const
 
virtual bool needAllComponents () const
 
virtual RUPixelFunc getPixelFunction () const
 
virtual RUVectorFunc getVectorFunction () const
 
- Protected Member Functions inherited from RU_PixelFunction
virtual void getPixelShader (UT_String &frag_shader)
 
void addConstant (const char *name, UT_GPUType type, int vectorsize, const void *data, int array_size=1)
 
void addLocal (const char *name, UT_GPUType type, int vectorsize)
 
void addArray (const char *name, UT_GPUType type, int vectorsize, int width, int height, const void *data)
 
void addArray (const char *name, UT_GPUType type, int vectorsize, int width, int height, const void *data1, const void *data2, const void *data3, const void *data4)
 
void addFunction (const char *function_name, const char *code)
 
void usesGlobal (const char *name)
 
int getFunctionIndex () const
 
int getNumComps () const
 

Static Protected Member Functions

static float lookup (RU_PixelFunction *pf, float val, int)
 
static void vlookup (RU_PixelFunction *f, float **vals, const bool *scope)
 
- Static Protected Member Functions inherited from RU_PixelFunction
static float defaultPixelFunction (RU_PixelFunction *func, float val, int comp)
 
static void defaultVectorFunction (RU_PixelFunction *func, float **vals, const bool *scope)
 

Protected Attributes

PXL_LookupmyTable
 

Detailed Description

Definition at line 385 of file RU_PixelFunctions.h.

Constructor & Destructor Documentation

RU_LookupTableFunc::RU_LookupTableFunc ( PXL_Lookup table)
inline

Definition at line 388 of file RU_PixelFunctions.h.

virtual RU_LookupTableFunc::~RU_LookupTableFunc ( )
inlinevirtual

Definition at line 390 of file RU_PixelFunctions.h.

Member Function Documentation

virtual bool RU_LookupTableFunc::eachComponentDifferent ( ) const
inlineprotectedvirtual

Reimplemented from RU_PixelFunction.

Definition at line 397 of file RU_PixelFunctions.h.

virtual RUPixelFunc RU_LookupTableFunc::getPixelFunction ( ) const
inlineprotectedvirtual

Reimplemented from RU_PixelFunction.

Definition at line 401 of file RU_PixelFunctions.h.

virtual RUVectorFunc RU_LookupTableFunc::getVectorFunction ( ) const
inlineprotectedvirtual

Reimplemented from RU_PixelFunction.

Definition at line 402 of file RU_PixelFunctions.h.

static float RU_LookupTableFunc::lookup ( RU_PixelFunction pf,
float  val,
int   
)
staticprotected
virtual bool RU_LookupTableFunc::needAllComponents ( ) const
inlineprotectedvirtual

Reimplemented from RU_PixelFunction.

Definition at line 398 of file RU_PixelFunctions.h.

static void RU_LookupTableFunc::vlookup ( RU_PixelFunction f,
float **  vals,
const bool *  scope 
)
staticprotected

Member Data Documentation

PXL_Lookup* RU_LookupTableFunc::myTable
protected

Definition at line 404 of file RU_PixelFunctions.h.


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