Blender V5.0
blender::bke::AttributeReader< T > Struct Template Reference

#include <BKE_attribute.hh>

Public Member Functions

const VArray< T > & operator* () const &
VArray< T > & operator* () &
VArray< Toperator* () &&
 operator bool () const

Public Attributes

VArray< Tvarray
AttrDomain domain
const ImplicitSharingInfosharing_info

Detailed Description

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

Result when looking up an attribute from some geometry with the intention of only reading from it.

Definition at line 185 of file BKE_attribute.hh.

Member Function Documentation

◆ operator bool()

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

Definition at line 216 of file BKE_attribute.hh.

◆ operator*() [1/3]

template<typename T>
VArray< T > & blender::bke::AttributeReader< T >::operator* ( ) &
inline

Definition at line 206 of file BKE_attribute.hh.

◆ operator*() [2/3]

template<typename T>
VArray< T > blender::bke::AttributeReader< T >::operator* ( ) &&
inline

Definition at line 211 of file BKE_attribute.hh.

◆ operator*() [3/3]

template<typename T>
const VArray< T > & blender::bke::AttributeReader< T >::operator* ( ) const &
inline

Definition at line 201 of file BKE_attribute.hh.

Member Data Documentation

◆ domain

template<typename T>
AttrDomain blender::bke::AttributeReader< T >::domain

Domain where the attribute is stored. This also determines the size of the virtual array.

Definition at line 193 of file BKE_attribute.hh.

Referenced by blender::draw::ensure_control_point_attribute().

◆ sharing_info

template<typename T>
const ImplicitSharingInfo* blender::bke::AttributeReader< T >::sharing_info

Information about shared ownership of the attribute array. This will only be provided if the virtual array directly references the contiguous original attribute array.

Definition at line 199 of file BKE_attribute.hh.

Referenced by blender::bke::attribute_reader_matches_array_state(), blender::bke::attribute_reader_to_array_state(), blender::nodes::node_geo_mesh_to_points_cc::geometry_set_mesh_to_points(), blender::ed::sculpt_paint::set_persistent_base_exec(), blender::bke::set_rest_position(), and blender::ed::sculpt_paint::store_mesh_from_eval().

◆ varray


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