#include <RU_PixelFunctions.h>
|
| RU_LevelsFunc (float effect, float global_in_range_min, float global_in_range_max, float global_out_range_min, float global_out_range_max, float global_gamma, float comp_in_range_min[4], float comp_in_range_max[4], float comp_out_range_min[4], float comp_out_range_max[4], float comp_gamma[4]) |
|
| RU_LevelsFunc (float effect, float global_in_range_min, float global_in_range_max, float global_out_range_min, float global_out_range_max, float global_gamma, float comp_in_range_min, float comp_in_range_max, float comp_out_range_min, float comp_out_range_max, float comp_gamma) |
|
| RU_GammaFunc (float g) |
|
| RU_GammaFunc (float r, float g, float b, float w) |
|
| 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_PixelFunction * | next () const |
|
void | setNumComps (int comps) |
|
|
float | safeLevels (float val, int) |
|
RUPixelFunc | getPixelFunction () const override |
|
void | getPixelShader (UT_String &frag_shader) override |
|
bool | eachComponentDifferent () const override |
|
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 float | fastLevels (RU_PixelFunction *pf, float val, int) |
| for the usual case, MAdd, gamma, MAdd, gamma More...
|
|
static float | safeLevels (RU_PixelFunction *pf, float val, int) |
| handles degenerate input level ranges More...
|
|
static void | colourMap (float const effect, const float from_min, const float from_max, const float to_min, const float to_max, float &factor, float &addend) |
|
static float | gamma (RU_PixelFunction *pf, float val, int) |
|
static float | gamma (float val, float g) |
|
static float | defaultPixelFunction (RU_PixelFunction *func, float val, int comp) |
|
static void | defaultVectorFunction (RU_PixelFunction *func, float **vals, const bool *scope) |
|
Definition at line 621 of file RU_PixelFunctions.h.
RU_LevelsFunc::RU_LevelsFunc |
( |
float |
effect, |
|
|
float |
global_in_range_min, |
|
|
float |
global_in_range_max, |
|
|
float |
global_out_range_min, |
|
|
float |
global_out_range_max, |
|
|
float |
global_gamma, |
|
|
float |
comp_in_range_min[4], |
|
|
float |
comp_in_range_max[4], |
|
|
float |
comp_out_range_min[4], |
|
|
float |
comp_out_range_max[4], |
|
|
float |
comp_gamma[4] |
|
) |
| |
passing all data down, rather than precomputing MAdds, so that we can correctly handle the degenerate cases of 0-width input ranges.
- Parameters
-
effect | frame scope effect, applied by the ctor to the ranges but not the gammas (caller should apply it to the gammas) |
RU_LevelsFunc::RU_LevelsFunc |
( |
float |
effect, |
|
|
float |
global_in_range_min, |
|
|
float |
global_in_range_max, |
|
|
float |
global_out_range_min, |
|
|
float |
global_out_range_max, |
|
|
float |
global_gamma, |
|
|
float |
comp_in_range_min, |
|
|
float |
comp_in_range_max, |
|
|
float |
comp_out_range_min, |
|
|
float |
comp_out_range_max, |
|
|
float |
comp_gamma |
|
) |
| |
for the usual case, MAdd, gamma, MAdd, gamma
|
inlineoverrideprotectedvirtual |
handles degenerate input level ranges
float RU_LevelsFunc::myAddend[4] |
|
protected |
float RU_LevelsFunc::myCompInRangeMax[4] |
|
protected |
float RU_LevelsFunc::myCompInRangeMin[4] |
|
protected |
float RU_LevelsFunc::myCompOutRangeMax[4] |
|
protected |
float RU_LevelsFunc::myCompOutRangeMin[4] |
|
protected |
float RU_LevelsFunc::myFactor[4] |
|
protected |
float RU_LevelsFunc::myGlobalAddend |
|
protected |
float RU_LevelsFunc::myGlobalFactor |
|
protected |
float RU_LevelsFunc::myGlobalGamma |
|
protected |
float RU_LevelsFunc::myGlobalInRangeMax |
|
protected |
float RU_LevelsFunc::myGlobalInRangeMin |
|
protected |
float RU_LevelsFunc::myGlobalOutRangeMax |
|
protected |
float RU_LevelsFunc::myGlobalOutRangeMin |
|
protected |
The documentation for this class was generated from the following file: