11 #ifndef RU_SMOOTHCURVE_H
12 #define RU_SMOOTHCURVE_H
31 void addPoint(
float pos,
float val,
float sharpness);
32 void create(
bool extend_slopes =
true);
34 float evaluate(
float pos)
const;
58 {
return myNumCurves > 1; }
85 {
return myMode ? hueLum:hueSat; }
RUPixelFunc getPixelFunction() const override
RUVectorFunc getVectorFunction() const override
bool needAllComponents() const override
void(* RUVectorFunc)(RU_PixelFunction *, float **, const bool *)
UT_SingletonWithLock< CurveData, true > myCurveData
virtual void getPixelShader(UT_String &frag_shader)
float(* RUPixelFunc)(RU_PixelFunction *, float, int)
bool eachComponentDifferent() const override