Blender  V3.3
Public Member Functions | List of all members
blender::bke::VArrayImpl_For_VertexWeights Class Referencefinal
Inheritance diagram for blender::bke::VArrayImpl_For_VertexWeights:
blender::VMutableArrayImpl< float > blender::VArrayImpl< T >

Public Member Functions

 VArrayImpl_For_VertexWeights (MDeformVert *dverts, const int totvert, 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 (IndexMask mask, MutableSpan< float > r_span) const override
 
void materialize_to_uninitialized (IndexMask mask, MutableSpan< float > r_span) const override
 
- Public Member Functions inherited from blender::VMutableArrayImpl< float >
virtual bool try_assign_GVMutableArray (GVMutableArray &UNUSED(varray)) const
 
- Public Member Functions inherited from blender::VArrayImpl< T >
 VArrayImpl (const int64_t size)
 
virtual ~VArrayImpl ()=default
 
int64_t size () const
 
virtual CommonVArrayInfo common_info () const
 
virtual void materialize (IndexMask mask, MutableSpan< T > r_span) const
 
virtual void materialize_to_uninitialized (IndexMask mask, MutableSpan< T > r_span) const
 
virtual void materialize_compressed (IndexMask mask, MutableSpan< T > r_span) const
 
virtual void materialize_compressed_to_uninitialized (IndexMask mask, MutableSpan< T > r_span) const
 
virtual bool try_assign_GVArray (GVArray &UNUSED(varray)) const
 
virtual bool is_same (const VArrayImpl< T > &UNUSED(other)) const
 

Additional Inherited Members

- Protected Attributes inherited from blender::VArrayImpl< T >
int64_t size_
 

Detailed Description

Definition at line 886 of file geometry_component_mesh.cc.

Constructor & Destructor Documentation

◆ VArrayImpl_For_VertexWeights()

blender::bke::VArrayImpl_For_VertexWeights::VArrayImpl_For_VertexWeights ( MDeformVert dverts,
const int  totvert,
const int  dvert_index 
)
inline

Definition at line 892 of file geometry_component_mesh.cc.

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< T >.

Definition at line 897 of file geometry_component_mesh.cc.

◆ materialize()

void blender::bke::VArrayImpl_For_VertexWeights::materialize ( IndexMask  mask,
MutableSpan< float r_span 
) const
inlineoverride

◆ materialize_to_uninitialized()

void blender::bke::VArrayImpl_For_VertexWeights::materialize_to_uninitialized ( IndexMask  mask,
MutableSpan< float r_span 
) const
inlineoverride

Definition at line 944 of file geometry_component_mesh.cc.

References mask().

◆ 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 908 of file geometry_component_mesh.cc.

References BKE_defvert_ensure_index(), and 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 922 of file geometry_component_mesh.cc.

References src.


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