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

#include <RU_PixelFunctions.h>

+ Inheritance diagram for RU_GammaFunc:

Public Member Functions

 RU_GammaFunc (float g)
 
 RU_GammaFunc (float r, float g, float b, float w)
 
- 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 RUPixelFunc getPixelFunction () const
 
virtual void getPixelShader (UT_String &frag_shader)
 
- Protected Member Functions inherited from RU_PixelFunction
virtual bool needAllComponents () const
 
virtual RUVectorFunc getVectorFunction () const
 
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 gamma (RU_PixelFunction *pf, float val, int)
 
static float gamma (float val, float g)
 
- 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

float myInvGamma [4]
 
bool myCompSep
 

Detailed Description

Definition at line 94 of file RU_PixelFunctions.h.

Constructor & Destructor Documentation

RU_GammaFunc::RU_GammaFunc ( float  g)
inline

Definition at line 97 of file RU_PixelFunctions.h.

RU_GammaFunc::RU_GammaFunc ( float  r,
float  g,
float  b,
float  w 
)
inline

Definition at line 101 of file RU_PixelFunctions.h.

Member Function Documentation

virtual bool RU_GammaFunc::eachComponentDifferent ( ) const
inlineprotectedvirtual

Reimplemented from RU_PixelFunction.

Definition at line 109 of file RU_PixelFunctions.h.

static float RU_GammaFunc::gamma ( RU_PixelFunction pf,
float  val,
int   
)
staticprotected
static float RU_GammaFunc::gamma ( float  val,
float  g 
)
staticprotected
virtual RUPixelFunc RU_GammaFunc::getPixelFunction ( ) const
inlineprotectedvirtual

Reimplemented from RU_PixelFunction.

Reimplemented in RU_LevelsFunc.

Definition at line 110 of file RU_PixelFunctions.h.

virtual void RU_GammaFunc::getPixelShader ( UT_String frag_shader)
protectedvirtual

Reimplemented from RU_PixelFunction.

Reimplemented in RU_LevelsFunc.

Member Data Documentation

bool RU_GammaFunc::myCompSep
protected

Definition at line 114 of file RU_PixelFunctions.h.

float RU_GammaFunc::myInvGamma[4]
protected

Definition at line 113 of file RU_PixelFunctions.h.


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