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

#include <RU_PixelFunctions.h>

+ Inheritance diagram for RU_HSVConvertFunc:

Public Types

enum  RU_HSVConvertOp { CONVERT_TO_HSV, CONVERT_TO_RGB, ADJUST_HSV }
 

Public Member Functions

 RU_HSVConvertFunc (RU_HSVConvertOp op, float hues=0.0f, float *sat=0, float *val=0, bool maintain_lum=true)
 
- 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 needAllComponents () const
 
virtual RUVectorFunc getVectorFunction () const
 
virtual void getPixelShader (UT_String &frag_shader)
 
- 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 toHSV (RU_PixelFunction *f, float **vals, const bool *scope)
 
static void fromHSV (RU_PixelFunction *f, float **vals, const bool *scope)
 
static void adjustHSV (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_HSVConvertOp myHSVOp
 
float myHueShift
 
float mySatScale
 
float mySatShift
 
float myValueScale
 
float myValueShift
 
bool myMaintainLum
 

Detailed Description

Definition at line 309 of file RU_PixelFunctions.h.

Member Enumeration Documentation

Enumerator
CONVERT_TO_HSV 
CONVERT_TO_RGB 
ADJUST_HSV 

Definition at line 312 of file RU_PixelFunctions.h.

Constructor & Destructor Documentation

RU_HSVConvertFunc::RU_HSVConvertFunc ( RU_HSVConvertOp  op,
float  hues = 0.0f,
float *  sat = 0,
float *  val = 0,
bool  maintain_lum = true 
)
inline

Definition at line 318 of file RU_PixelFunctions.h.

Member Function Documentation

static void RU_HSVConvertFunc::adjustHSV ( RU_PixelFunction f,
float **  vals,
const bool *  scope 
)
staticprotected
static void RU_HSVConvertFunc::fromHSV ( RU_PixelFunction f,
float **  vals,
const bool *  scope 
)
staticprotected
virtual void RU_HSVConvertFunc::getPixelShader ( UT_String frag_shader)
protectedvirtual

Reimplemented from RU_PixelFunction.

virtual RUVectorFunc RU_HSVConvertFunc::getVectorFunction ( ) const
inlineprotectedvirtual

Reimplemented from RU_PixelFunction.

Definition at line 337 of file RU_PixelFunctions.h.

virtual bool RU_HSVConvertFunc::needAllComponents ( ) const
inlineprotectedvirtual

Reimplemented from RU_PixelFunction.

Definition at line 336 of file RU_PixelFunctions.h.

static void RU_HSVConvertFunc::toHSV ( RU_PixelFunction f,
float **  vals,
const bool *  scope 
)
staticprotected

Member Data Documentation

RU_HSVConvertOp RU_HSVConvertFunc::myHSVOp
protected

Definition at line 343 of file RU_PixelFunctions.h.

float RU_HSVConvertFunc::myHueShift
protected

Definition at line 344 of file RU_PixelFunctions.h.

bool RU_HSVConvertFunc::myMaintainLum
protected

Definition at line 347 of file RU_PixelFunctions.h.

float RU_HSVConvertFunc::mySatScale
protected

Definition at line 345 of file RU_PixelFunctions.h.

float RU_HSVConvertFunc::mySatShift
protected

Definition at line 345 of file RU_PixelFunctions.h.

float RU_HSVConvertFunc::myValueScale
protected

Definition at line 346 of file RU_PixelFunctions.h.

float RU_HSVConvertFunc::myValueShift
protected

Definition at line 346 of file RU_PixelFunctions.h.


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