Blender  V2.93
Public Member Functions | Static Public Member Functions | List of all members
ColorBandFunction Class Reference

Inherits blender::fn::MultiFunction.

Public Member Functions

 ColorBandFunction (const ColorBand &color_band)
 
void call (blender::IndexMask mask, blender::fn::MFParams params, blender::fn::MFContext UNUSED(context)) const override
 
- Public Member Functions inherited from blender::fn::MultiFunction
virtual ~MultiFunction ()
 
virtual void call (IndexMask mask, MFParams params, MFContext context) const =0
 
virtual uint64_t hash () const
 
virtual bool equals (const MultiFunction &UNUSED(other)) const
 
int param_amount () const
 
IndexRange param_indices () const
 
MFParamType param_type (int param_index) const
 
StringRefNull param_name (int param_index) const
 
StringRefNull name () const
 
bool depends_on_context () const
 
const MFSignaturesignature () const
 

Static Public Member Functions

static blender::fn::MFSignature create_signature ()
 

Additional Inherited Members

- Protected Member Functions inherited from blender::fn::MultiFunction
void set_signature (const MFSignature *signature)
 

Detailed Description

Definition at line 128 of file node_shader_valToRgb.cc.

Constructor & Destructor Documentation

◆ ColorBandFunction()

ColorBandFunction::ColorBandFunction ( const ColorBand color_band)
inline

Member Function Documentation

◆ call()

void ColorBandFunction::call ( blender::IndexMask  mask,
blender::fn::MFParams  params,
blender::fn::MFContext   UNUSEDcontext 
) const
inlineoverride

Definition at line 148 of file node_shader_valToRgb.cc.

References blender::Color4f::a, BKE_colorband_evaluate(), mask(), and params.

◆ create_signature()

static blender::fn::MFSignature ColorBandFunction::create_signature ( )
inlinestatic

Definition at line 139 of file node_shader_valToRgb.cc.

References blender::fn::MultiFunction::signature().

Referenced by ColorBandFunction().


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