Blender  V3.3
Public Member Functions | Public Attributes | List of all members
blender::bke::AttributeWriter< T > Struct Template Reference

#include <BKE_attribute.hh>

Public Member Functions

 operator bool () const
 
void finish ()
 

Public Attributes

VMutableArray< Tvarray
 
eAttrDomain domain
 
std::function< void()> tag_modified_fn
 

Detailed Description

template<typename T>
struct blender::bke::AttributeWriter< T >

Result when looking up an attribute from some geometry with read an write access. After writing to the attribute, the finish method has to be called. This may invalidate caches based on this attribute.

Definition at line 157 of file BKE_attribute.hh.

Member Function Documentation

◆ finish()

template<typename T >
void blender::bke::AttributeWriter< T >::finish ( )
inline

◆ operator bool()

template<typename T >
blender::bke::AttributeWriter< T >::operator bool ( ) const
inline

Definition at line 173 of file BKE_attribute.hh.

References blender::bke::AttributeWriter< T >::varray.

Member Data Documentation

◆ domain

template<typename T >
eAttrDomain blender::bke::AttributeWriter< T >::domain

Domain where the attribute is stored on the geometry. Also determines the size of the virtual array.

Definition at line 167 of file BKE_attribute.hh.

◆ tag_modified_fn

template<typename T >
std::function<void()> blender::bke::AttributeWriter< T >::tag_modified_fn

A function that has to be called after the attribute has been edited. This may be empty.

Definition at line 171 of file BKE_attribute.hh.

Referenced by blender::bke::AttributeWriter< T >::finish().

◆ varray

template<typename T >
VMutableArray<T> blender::bke::AttributeWriter< T >::varray

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