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

#include <RU_ColorCurve.h>

+ Inheritance diagram for RU_ColorCurveFunc:

Public Member Functions

 RU_ColorCurveFunc (RU_ColorCurve *curve)
 
 RU_ColorCurveFunc (RU_ColorCurve **curves, int num)
 
 ~RU_ColorCurveFunc () override
 
- 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

bool eachComponentDifferent () const override
 
RUPixelFunc getPixelFunction () const override
 
void getPixelShader (UT_String &frag_shader) override
 
- 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 curve (RU_PixelFunction *pf, float val, int)
 
- 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

RU_ColorCurvemyCurves [4]
 
int myNumCurves
 
floatmyCurveData
 

Detailed Description

Definition at line 48 of file RU_ColorCurve.h.

Constructor & Destructor Documentation

RU_ColorCurveFunc::RU_ColorCurveFunc ( RU_ColorCurve curve)
RU_ColorCurveFunc::RU_ColorCurveFunc ( RU_ColorCurve **  curves,
int  num 
)
RU_ColorCurveFunc::~RU_ColorCurveFunc ( )
override

Member Function Documentation

static float RU_ColorCurveFunc::curve ( RU_PixelFunction pf,
float  val,
int   
)
staticprotected
bool RU_ColorCurveFunc::eachComponentDifferent ( ) const
inlineoverrideprotectedvirtual

Reimplemented from RU_PixelFunction.

Definition at line 57 of file RU_ColorCurve.h.

RUPixelFunc RU_ColorCurveFunc::getPixelFunction ( ) const
inlineoverrideprotectedvirtual

Reimplemented from RU_PixelFunction.

Definition at line 61 of file RU_ColorCurve.h.

void RU_ColorCurveFunc::getPixelShader ( UT_String frag_shader)
overrideprotectedvirtual

Reimplemented from RU_PixelFunction.

Member Data Documentation

float* RU_ColorCurveFunc::myCurveData
protected

Definition at line 66 of file RU_ColorCurve.h.

RU_ColorCurve* RU_ColorCurveFunc::myCurves[4]
protected

Definition at line 64 of file RU_ColorCurve.h.

int RU_ColorCurveFunc::myNumCurves
protected

Definition at line 65 of file RU_ColorCurve.h.


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