Blender  V2.93
Public Member Functions | Static Public Member Functions | List of all members
blender::bke::VertexWeightWriteAttribute Class Referencefinal

Inherits blender::bke::WriteAttribute.

Public Member Functions

 VertexWeightWriteAttribute (MDeformVert *dverts, const int totvert, const int dvert_index)
 
void get_internal (const int64_t index, void *r_value) const override
 
void set_internal (const int64_t index, const void *value) override
 
- Public Member Functions inherited from blender::bke::WriteAttribute
 WriteAttribute (AttributeDomain domain, const CPPType &cpp_type, const int64_t size)
 
AttributeDomain domain () const
 
const CPPTypecpp_type () const
 
CustomDataType custom_data_type () const
 
int64_t size () const
 
void get (const int64_t index, void *r_value) const
 
void set (const int64_t index, const void *value)
 
template<typename T >
MutableSpan< Tget_span ()
 
template<typename T >
MutableSpan< Tget_span_for_write_only ()
 
virtual ~WriteAttribute ()
 
fn::GMutableSpan get_span ()
 
fn::GMutableSpan get_span_for_write_only ()
 
void apply_span ()
 

Static Public Member Functions

static void get_internal (const MDeformVert *dverts, const int dvert_index, const int64_t index, void *r_value)
 

Additional Inherited Members

- Protected Member Functions inherited from blender::bke::WriteAttribute
virtual void initialize_span (const bool write_only)
 
virtual void apply_span_if_necessary ()
 
- Protected Attributes inherited from blender::bke::WriteAttribute
const AttributeDomain domain_
 
const CPPTypecpp_type_
 
const CustomDataType custom_data_type_
 
const int64_t size_
 
void * array_buffer_ = nullptr
 
bool array_is_temporary_ = false
 
bool array_should_be_applied_ = false
 

Detailed Description

Definition at line 839 of file geometry_component_mesh.cc.

Constructor & Destructor Documentation

◆ VertexWeightWriteAttribute()

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

Definition at line 845 of file geometry_component_mesh.cc.

Member Function Documentation

◆ get_internal() [1/2]

void blender::bke::VertexWeightWriteAttribute::get_internal ( const int64_t  index,
void *  r_value 
) const
inlineoverridevirtual

◆ get_internal() [2/2]

static void blender::bke::VertexWeightWriteAttribute::get_internal ( const MDeformVert dverts,
const int  dvert_index,
const int64_t  index,
void *  r_value 
)
inlinestatic

Definition at line 863 of file geometry_component_mesh.cc.

References MDeformVert::dw, and MDeformVert::totweight.

◆ set_internal()

void blender::bke::VertexWeightWriteAttribute::set_internal ( const int64_t  index,
const void *  value 
)
inlineoverridevirtual

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