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

#include <RU_PixelFunction.h>

+ Inheritance diagram for RU_PixelFunction:

Public Member Functions

 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 needAllComponents () const
 
virtual bool eachComponentDifferent () const
 
virtual RUPixelFunc getPixelFunction () const
 
virtual RUVectorFunc getVectorFunction () const
 
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 defaultPixelFunction (RU_PixelFunction *func, float val, int comp)
 
static void defaultVectorFunction (RU_PixelFunction *func, float **vals, const bool *scope)
 

Friends

class RU_ColorCurve
 

Detailed Description

Examples:
COP2/COP2_PixelAdd.C, and COP2/COP2_PixelAdd.h.

Definition at line 29 of file RU_PixelFunction.h.

Constructor & Destructor Documentation

RU_PixelFunction::RU_PixelFunction ( )
inline

Definition at line 32 of file RU_PixelFunction.h.

virtual RU_PixelFunction::~RU_PixelFunction ( )
virtual

Member Function Documentation

void RU_PixelFunction::addArray ( const char *  name,
UT_GPUType  type,
int  vectorsize,
int  width,
int  height,
const void data 
)
protected
void RU_PixelFunction::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 
)
protected
void RU_PixelFunction::addConstant ( const char *  name,
UT_GPUType  type,
int  vectorsize,
const void data,
int  array_size = 1 
)
protected
void RU_PixelFunction::addFunction ( const char *  function_name,
const char *  code 
)
protected
void RU_PixelFunction::addLocal ( const char *  name,
UT_GPUType  type,
int  vectorsize 
)
protected
bool RU_PixelFunction::areAllComponentsNeeded ( ) const
void RU_PixelFunction::buildPixelEngine ( )
void RU_PixelFunction::buildShaderEngine ( UT_ComputeGPU gpgpu)
void RU_PixelFunction::buildVectorEngine ( )
static float RU_PixelFunction::defaultPixelFunction ( RU_PixelFunction func,
float  val,
int  comp 
)
staticprotected
static void RU_PixelFunction::defaultVectorFunction ( RU_PixelFunction func,
float **  vals,
const bool *  scope 
)
staticprotected
virtual bool RU_PixelFunction::eachComponentDifferent ( ) const
inlineprotectedvirtual
const char* RU_PixelFunction::getFunctionCode ( ) const
inline

Definition at line 70 of file RU_PixelFunction.h.

int RU_PixelFunction::getFunctionIndex ( ) const
inlineprotected

Definition at line 134 of file RU_PixelFunction.h.

const char* RU_PixelFunction::getLocals ( ) const
inline

Definition at line 71 of file RU_PixelFunction.h.

int RU_PixelFunction::getNumComps ( ) const
inlineprotected

Definition at line 136 of file RU_PixelFunction.h.

const bool* RU_PixelFunction::getScope ( ) const
inline

Definition at line 38 of file RU_PixelFunction.h.

const char* RU_PixelFunction::getShaderCode ( ) const
inline

Definition at line 69 of file RU_PixelFunction.h.

bool RU_PixelFunction::isComponentDependent ( ) const
bool RU_PixelFunction::isPartialScope ( ) const
bool RU_PixelFunction::isScoped ( int  i) const
inline

Definition at line 37 of file RU_PixelFunction.h.

RU_PixelFunction* RU_PixelFunction::next ( ) const
inline

Definition at line 75 of file RU_PixelFunction.h.

float RU_PixelFunction::processValue ( float  val,
int  comp 
) const
inline

Definition at line 53 of file RU_PixelFunction.h.

void RU_PixelFunction::processValues ( float **  vals) const
inline

Definition at line 61 of file RU_PixelFunction.h.

void RU_PixelFunction::setNext ( RU_PixelFunction next)
inline

Definition at line 74 of file RU_PixelFunction.h.

void RU_PixelFunction::setNumComps ( int  comps)
inline

Definition at line 77 of file RU_PixelFunction.h.

void RU_PixelFunction::setScope ( bool *  scope)
void RU_PixelFunction::usesGlobal ( const char *  name)
protected
bool RU_PixelFunction::usesNumCompsGlobal ( ) const
inline

Definition at line 72 of file RU_PixelFunction.h.

Friends And Related Function Documentation

friend class RU_ColorCurve
friend

Definition at line 164 of file RU_PixelFunction.h.


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