HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
HDK_Sample::cop2_AddFunc Class Reference
+ Inheritance diagram for HDK_Sample::cop2_AddFunc:

Public Member Functions

 cop2_AddFunc (float r, float g, float b, float a)
 
- 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 add (RU_PixelFunction *pf, float val, int comp)
 
static void addvec (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)
 

Detailed Description

Examples:
COP2/COP2_PixelAdd.C.

Definition at line 96 of file COP2_PixelAdd.C.

Constructor & Destructor Documentation

HDK_Sample::cop2_AddFunc::cop2_AddFunc ( float  r,
float  g,
float  b,
float  a 
)
inline
Examples:
COP2/COP2_PixelAdd.C.

Definition at line 99 of file COP2_PixelAdd.C.

Member Function Documentation

static float HDK_Sample::cop2_AddFunc::add ( RU_PixelFunction pf,
float  val,
int  comp 
)
inlinestaticprotected
Examples:
COP2/COP2_PixelAdd.C.

Definition at line 112 of file COP2_PixelAdd.C.

static void HDK_Sample::cop2_AddFunc::addvec ( RU_PixelFunction f,
float **  vals,
const bool *  scope 
)
inlinestaticprotected
Examples:
COP2/COP2_PixelAdd.C.

Definition at line 125 of file COP2_PixelAdd.C.

virtual bool HDK_Sample::cop2_AddFunc::eachComponentDifferent ( ) const
inlineprotectedvirtual

Reimplemented from RU_PixelFunction.

Examples:
COP2/COP2_PixelAdd.C.

Definition at line 104 of file COP2_PixelAdd.C.

virtual RUPixelFunc HDK_Sample::cop2_AddFunc::getPixelFunction ( ) const
inlineprotectedvirtual

Reimplemented from RU_PixelFunction.

Examples:
COP2/COP2_PixelAdd.C.

Definition at line 116 of file COP2_PixelAdd.C.

virtual RUVectorFunc HDK_Sample::cop2_AddFunc::getVectorFunction ( ) const
inlineprotectedvirtual

Reimplemented from RU_PixelFunction.

Examples:
COP2/COP2_PixelAdd.C.

Definition at line 137 of file COP2_PixelAdd.C.

virtual bool HDK_Sample::cop2_AddFunc::needAllComponents ( ) const
inlineprotectedvirtual

Reimplemented from RU_PixelFunction.

Examples:
COP2/COP2_PixelAdd.C.

Definition at line 107 of file COP2_PixelAdd.C.


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