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

#include <RU_ColorCurve.h>

+ Inheritance diagram for RU_HueCurveFunc:

Classes

struct  CurveData
 

Public Member Functions

 RU_HueCurveFunc (RU_ColorCurve *curve, int mode)
 
 ~RU_HueCurveFunc () 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 needAllComponents () const override
 
RUVectorFunc getVectorFunction () const override
 
void getPixelShader (UT_String &frag_shader) override
 
- Protected Member Functions inherited from RU_PixelFunction
virtual bool eachComponentDifferent () const
 
virtual RUPixelFunc getPixelFunction () 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 void hueSat (RU_PixelFunction *f, float **vals, const bool *scope)
 
static void hueLum (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

RU_ColorCurvemyCurve
 
int myMode
 
UT_SingletonWithLock
< CurveData, true > 
myCurveData
 

Detailed Description

Definition at line 69 of file RU_ColorCurve.h.

Constructor & Destructor Documentation

RU_HueCurveFunc::RU_HueCurveFunc ( RU_ColorCurve curve,
int  mode 
)
RU_HueCurveFunc::~RU_HueCurveFunc ( )
override

Member Function Documentation

void RU_HueCurveFunc::getPixelShader ( UT_String frag_shader)
overrideprotectedvirtual

Reimplemented from RU_PixelFunction.

RUVectorFunc RU_HueCurveFunc::getVectorFunction ( ) const
inlineoverrideprotectedvirtual

Reimplemented from RU_PixelFunction.

Definition at line 84 of file RU_ColorCurve.h.

static void RU_HueCurveFunc::hueLum ( RU_PixelFunction f,
float **  vals,
const bool *  scope 
)
staticprotected
static void RU_HueCurveFunc::hueSat ( RU_PixelFunction f,
float **  vals,
const bool *  scope 
)
staticprotected
bool RU_HueCurveFunc::needAllComponents ( ) const
inlineoverrideprotectedvirtual

Reimplemented from RU_PixelFunction.

Definition at line 78 of file RU_ColorCurve.h.

Member Data Documentation

RU_ColorCurve* RU_HueCurveFunc::myCurve
protected

Definition at line 97 of file RU_ColorCurve.h.

UT_SingletonWithLock<CurveData, true> RU_HueCurveFunc::myCurveData
protected

Definition at line 99 of file RU_ColorCurve.h.

int RU_HueCurveFunc::myMode
protected

Definition at line 98 of file RU_ColorCurve.h.


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