Blender
V3.3
|
#include <BKE_attribute.hh>
Public Member Functions | |
operator bool () const | |
void | finish () |
Public Attributes | |
VMutableArray< T > | varray |
eAttrDomain | domain |
std::function< void()> | tag_modified_fn |
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.
|
inline |
Has to be called after the attribute has been modified.
Definition at line 181 of file BKE_attribute.hh.
References blender::bke::AttributeWriter< T >::tag_modified_fn.
Referenced by blender::nodes::node_geo_points_cc::node_geo_exec(), blender::nodes::node_geo_set_spline_cyclic_cc::set_cyclic_in_component(), blender::nodes::node_geo_set_id_cc::set_id_in_component(), blender::nodes::node_geo_set_spline_resolution_cc::set_resolution_in_component(), blender::nodes::node_geo_set_shade_smooth_cc::set_smooth_in_component(), and blender::nodes::node_geo_set_curve_tilt_cc::set_tilt_in_component().
|
inline |
Definition at line 173 of file BKE_attribute.hh.
References blender::bke::AttributeWriter< T >::varray.
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.
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().
VMutableArray<T> blender::bke::AttributeWriter< T >::varray |
Virtual array giving read and write access to the attribute. This may be empty. Consider using #SpanAttributeWriter when you want to access the virtual array as a span.
Definition at line 162 of file BKE_attribute.hh.
Referenced by blender::nodes::node_geo_points_cc::node_geo_exec(), blender::bke::AttributeWriter< T >::operator bool(), blender::nodes::node_geo_set_spline_cyclic_cc::set_cyclic_in_component(), blender::nodes::node_geo_set_id_cc::set_id_in_component(), blender::nodes::node_geo_set_spline_resolution_cc::set_resolution_in_component(), blender::nodes::node_geo_set_shade_smooth_cc::set_smooth_in_component(), and blender::nodes::node_geo_set_curve_tilt_cc::set_tilt_in_component().