Blender V5.3
blender::bke::VArrayImpl_For_VertexWeights Class Referencefinal

Inherits blender::VMutableArrayImpl< float >.

Public Member Functions

 VArrayImpl_For_VertexWeights (MutableSpan< MDeformVert > dverts, const int dvert_index)
 VArrayImpl_For_VertexWeights (Span< MDeformVert > dverts, const int dvert_index)
float get (const int64_t index) const override
void set (const int64_t index, const float value) override
void set_all (Span< float > src) override
void materialize (const IndexMask &mask, float *dst, const bool) const override
Public Member Functions inherited from blender::VMutableArrayImpl< float >
virtual bool try_assign_GVMutableArray (GVMutableArray &) const
Public Member Functions inherited from blender::VArrayImpl< float >
 VArrayImpl (const int64_t size)
virtual ~VArrayImpl ()=default
int64_t size () const
virtual CommonVArrayInfo common_info () const
virtual void materialize_compressed (const IndexMask &mask, float *dst, const bool dst_is_uninitialized) const
virtual bool try_assign_GVArray (GVArray &) const

Additional Inherited Members

Protected Attributes inherited from blender::VArrayImpl< float >
int64_t size_

Detailed Description

Definition at line 1654 of file deform.cc.

Constructor & Destructor Documentation

◆ VArrayImpl_For_VertexWeights() [1/2]

blender::bke::VArrayImpl_For_VertexWeights::VArrayImpl_For_VertexWeights ( MutableSpan< MDeformVert > dverts,
const int dvert_index )
inline

Definition at line 1660 of file deform.cc.

References blender::data, float, and blender::VArrayImpl< float >::size().

◆ VArrayImpl_For_VertexWeights() [2/2]

blender::bke::VArrayImpl_For_VertexWeights::VArrayImpl_For_VertexWeights ( Span< MDeformVert > dverts,
const int dvert_index )
inline

Definition at line 1665 of file deform.cc.

References blender::data, float, and blender::VArrayImpl< float >::size().

Member Function Documentation

◆ get()

float blender::bke::VArrayImpl_For_VertexWeights::get ( const int64_t index) const
inlineoverridevirtual

Get the element at index. This does not return a reference, because the value may be computed on the fly.

Implements blender::VArrayImpl< float >.

Definition at line 1672 of file deform.cc.

◆ materialize()

void blender::bke::VArrayImpl_For_VertexWeights::materialize ( const IndexMask & mask,
float * dst,
const bool dst_is_uninitialized ) const
inlineoverridevirtual

Copy values from the virtual array into the provided span. The index of the value in the virtual array is the same as the index in the span.

Reimplemented from blender::VArrayImpl< float >.

Definition at line 1707 of file deform.cc.

References blender::Default, blender::index_mask::masked_fill(), blender::MutableSpan< T >::MutableSpan(), blender::threading::parallel_for(), and PRF_scope_with_name.

◆ set()

void blender::bke::VArrayImpl_For_VertexWeights::set ( const int64_t index,
const float value )
inlineoverridevirtual

Assign the provided #value to the index.

Implements blender::VMutableArrayImpl< float >.

Definition at line 1683 of file deform.cc.

References blender::BKE_defvert_ensure_index(), and blender::MDeformWeight::weight.

◆ set_all()

void blender::bke::VArrayImpl_For_VertexWeights::set_all ( Span< float > src)
inlineoverridevirtual

Copy all elements from the provided span into the virtual array.

Reimplemented from blender::VMutableArrayImpl< float >.

Definition at line 1697 of file deform.cc.

References blender::Default, blender::Span< T >::index_range(), blender::threading::parallel_for(), and PRF_scope_with_name.


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