Blender V4.3
blender::bke::attribute_math::ColorGeometry4fMixer Class Reference

#include <BKE_attribute_math.hh>

Public Member Functions

 ColorGeometry4fMixer (MutableSpan< ColorGeometry4f > buffer, ColorGeometry4f default_color=ColorGeometry4f(0.0f, 0.0f, 0.0f, 1.0f))
 
 ColorGeometry4fMixer (MutableSpan< ColorGeometry4f > buffer, const IndexMask &mask, ColorGeometry4f default_color=ColorGeometry4f(0.0f, 0.0f, 0.0f, 1.0f))
 
void set (int64_t index, const ColorGeometry4f &color, float weight=1.0f)
 
void mix_in (int64_t index, const ColorGeometry4f &color, float weight=1.0f)
 
void finalize ()
 
void finalize (const IndexMask &mask)
 

Detailed Description

Definition at line 478 of file BKE_attribute_math.hh.

Constructor & Destructor Documentation

◆ ColorGeometry4fMixer() [1/2]

blender::bke::attribute_math::ColorGeometry4fMixer::ColorGeometry4fMixer ( MutableSpan< ColorGeometry4f > buffer,
ColorGeometry4f default_color = ColorGeometry4f(0.0f, 0.0f, 0.0f, 1.0f) )

Definition at line 78 of file attribute_math.cc.

◆ ColorGeometry4fMixer() [2/2]

blender::bke::attribute_math::ColorGeometry4fMixer::ColorGeometry4fMixer ( MutableSpan< ColorGeometry4f > buffer,
const IndexMask & mask,
ColorGeometry4f default_color = ColorGeometry4f(0.0f, 0.0f, 0.0f, 1.0f) )
Parameters
maskOnly initialize these indices. Other indices in the buffer will be invalid.

Definition at line 84 of file attribute_math.cc.

Member Function Documentation

◆ finalize() [1/2]

void blender::bke::attribute_math::ColorGeometry4fMixer::finalize ( )

Definition at line 116 of file attribute_math.cc.

References finalize().

Referenced by finalize().

◆ finalize() [2/2]

◆ mix_in()

◆ set()

void blender::bke::attribute_math::ColorGeometry4fMixer::set ( int64_t index,
const ColorGeometry4f & color,
float weight = 1.0f )

Definition at line 93 of file attribute_math.cc.


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