|
Blender V4.5
|
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 override |
| void | materialize_to_uninitialized (const IndexMask &mask, float *dst) 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 |
| virtual void | materialize_compressed_to_uninitialized (const IndexMask &mask, float *dst) const |
| virtual bool | try_assign_GVArray (GVArray &) const |
Additional Inherited Members | |
| Protected Attributes inherited from blender::VArrayImpl< float > | |
| int64_t | size_ |
|
inline |
Definition at line 1694 of file deform.cc.
References data, and blender::VArrayImpl< float >::size().
|
inline |
Definition at line 1699 of file deform.cc.
References data, and blender::VArrayImpl< float >::size().
|
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 >.
|
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 1740 of file deform.cc.
References i, mask(), and blender::threading::parallel_for().
Referenced by materialize_to_uninitialized().
|
inlineoverridevirtual |
Same as materialize but #r_span is expected to be uninitialized.
Reimplemented from blender::VArrayImpl< float >.
Definition at line 1757 of file deform.cc.
References mask(), and materialize().
|
inlineoverridevirtual |
Assign the provided #value to the #index.
Implements blender::VMutableArrayImpl< float >.
Definition at line 1717 of file deform.cc.
References BKE_defvert_ensure_index(), and MDeformWeight::weight.
|
inlineoverridevirtual |
Copy all elements from the provided span into the virtual array.
Reimplemented from blender::VMutableArrayImpl< float >.
Definition at line 1731 of file deform.cc.
References blender::Span< T >::index_range(), and blender::threading::parallel_for().