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

#include <BKE_attribute_math.hh>

Public Member Functions

 ColorGeometry4bMixer (MutableSpan< ColorGeometry4b > buffer, ColorGeometry4b default_color=ColorGeometry4b(0, 0, 0, 255))
 
 ColorGeometry4bMixer (MutableSpan< ColorGeometry4b > buffer, const IndexMask &mask, ColorGeometry4b default_color=ColorGeometry4b(0, 0, 0, 255))
 
void set (int64_t index, const ColorGeometry4b &color, float weight=1.0f)
 
void mix_in (int64_t index, const ColorGeometry4b &color, float weight=1.0f)
 
void finalize ()
 
void finalize (const IndexMask &mask)
 

Detailed Description

Definition at line 499 of file BKE_attribute_math.hh.

Constructor & Destructor Documentation

◆ ColorGeometry4bMixer() [1/2]

blender::bke::attribute_math::ColorGeometry4bMixer::ColorGeometry4bMixer ( MutableSpan< ColorGeometry4b > buffer,
ColorGeometry4b default_color = ColorGeometry4b(0, 0, 0, 255) )

Definition at line 139 of file attribute_math.cc.

◆ ColorGeometry4bMixer() [2/2]

blender::bke::attribute_math::ColorGeometry4bMixer::ColorGeometry4bMixer ( MutableSpan< ColorGeometry4b > buffer,
const IndexMask & mask,
ColorGeometry4b default_color = ColorGeometry4b(0, 0, 0, 255) )
Parameters
maskOnly initialize these indices. Other indices in the buffer will be invalid.

Definition at line 145 of file attribute_math.cc.

Member Function Documentation

◆ finalize() [1/2]

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

Definition at line 178 of file attribute_math.cc.

References finalize().

Referenced by finalize().

◆ finalize() [2/2]

◆ mix_in()

void blender::bke::attribute_math::ColorGeometry4bMixer::mix_in ( int64_t index,
const ColorGeometry4b & color,
float weight = 1.0f )

Definition at line 168 of file attribute_math.cc.

References blender::VecBase< T, Size >::b.

◆ set()

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

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