Blender V5.3
blender::bke::GSpanAttributeWriter Struct Reference

#include <BKE_attribute.hh>

Public Member Functions

 GSpanAttributeWriter ()=default
 GSpanAttributeWriter (GAttributeWriter &&other, const bool copy_values_to_span)
 operator bool () const
void finish ()

Public Attributes

GMutableVArraySpan span
AttrDomain domain
std::function< void()> tag_modified_fn

Detailed Description

A generic version of SpanAttributeWriter.

Definition at line 353 of file BKE_attribute.hh.

Constructor & Destructor Documentation

◆ GSpanAttributeWriter() [1/2]

blender::bke::GSpanAttributeWriter::GSpanAttributeWriter ( )
default

◆ GSpanAttributeWriter() [2/2]

blender::bke::GSpanAttributeWriter::GSpanAttributeWriter ( GAttributeWriter && other,
const bool copy_values_to_span )
inline

Definition at line 360 of file BKE_attribute.hh.

References domain, span, and tag_modified_fn.

Member Function Documentation

◆ finish()

void blender::bke::GSpanAttributeWriter::finish ( )
inline

Definition at line 372 of file BKE_attribute.hh.

References blender::GMutableVArraySpan::save(), and blender::GMutableVArraySpan::varray().

Referenced by blender::ed::sculpt_paint::color::active_color_attribute_for_write(), blender::nodes::node_geo_instance_on_points_cc::add_instances_from_component(), blender::ed::greasepencil::add_single_curve(), blender::ed::curves::pen_tool::add_single_point_and_curve(), blender::ed::greasepencil::apply_eval_grease_pencil_data(), blender::ed::greasepencil::apply_mask_as_selection(), blender::ed::pointcloud::apply_selection_operation(), blender::ed::object::bake_targets_output_vertex_colors(), blender::geometry::construct::build_output_mesh(), blender::ed::curves::pen_tool::close_curve_and_select(), blender::nodes::node_geo_instances_to_points_cc::convert_instances_to_points(), blender::geometry::copy_and_mix_attributes(), blender::nodes::node_geo_duplicate_elements_cc::copy_attributes_from_other_domains(), blender::bke::copy_attributes_group_to_group(), blender::bke::copy_main_point_domain_attribute_to_mesh(), blender::geometry::create_curve_from_vert_indices(), blender::nodes::node_geo_curves_to_grease_pencil_cc::curve_instances_to_grease_pencil_layers(), blender::bke::curve_to_mesh_sweep(), blender::data_transfer_layersmapping_add_item_attr(), blender::ed::sculpt_paint::greasepencil::deselect_stroke(), blender::ed::sculpt_paint::color::do_blur_brush(), blender::ed::pointcloud::duplicate_points(), blender::ed::curves::ensure_selection_attribute(), blender::ed::greasepencil::ensure_selection_domain(), blender::geometry::execute_instances_tasks(), blender::geometry::extract_mesh_edges(), blender::geometry::extract_mesh_faces(), blender::geometry::extract_mesh_vertices(), blender::ed::curves::pen_tool::extrude_curves(), blender::ed::greasepencil::extrude_grease_pencil_curves(), blender::bke::gather_attributes(), blender::bke::gather_attributes(), blender::bke::gather_attributes(), blender::bke::gather_attributes_group_to_group(), blender::bke::gather_attributes_to_groups(), blender::nodes::node_geo_mesh_to_points_cc::geometry_set_mesh_to_points(), blender::nodes::node_geo_points_to_vertices_cc::geometry_set_points_to_vertices(), blender::ed::greasepencil::grease_pencil_material_select_exec(), blender::ed::greasepencil::grease_pencil_paste_strokes_exec(), blender::ed::greasepencil::grease_pencil_stroke_smooth_exec(), blender::nodes::LazyFunctionForReduceForeachGeometryElement::handle_generation_items_group(), blender::ed::curves::pen_tool::insert_point_to_curve(), blender::geometry::join_attributes(), blender::ed::mesh::join_generic_attributes(), blender::geometry::merge_layers(), blender::geometry::mesh_faces_to_curves_convert(), blender::nodes::node_geo_grease_pencil_to_curves_cc::node_geo_exec(), blender::paintface_deselect_all_visible(), blender::paintface_flush_flags(), blender::paintface_reveal(), blender::paintvert_deselect_all_visible(), blender::paintvert_flush_flags(), blender::paintvert_reveal(), blender::paintvert_select_ungrouped(), blender::nodes::node_geo_distribute_points_on_faces_cc::propagate_attributes(), blender::ed::curves::resize_curves(), blender::ed::greasepencil::resize_single_curve(), blender::ed::sculpt_paint::undo::restore_color(), blender::ed::sculpt_paint::expand::restore_color_data(), blender::ed::sculpt_paint::undo::restore_color_from_undo_step(), blender::bke::sample_vertex_attributes(), blender::ed::sculpt_paint::color::sculpt_color_filter_apply(), blender::ed::curves::select_adjacent(), blender::ed::pointcloud::select_all(), blender::ed::curves::select_ends_exec(), blender::ed::greasepencil::select_fill_exec(), blender::ed::curves::select_linked_pick(), blender::ed::curves::select_random_exec(), blender::ed::pointcloud::select_random_exec(), blender::ed::greasepencil::select_similar_by_value(), blender::geometry::smooth_curve_positions(), blender::ed::sculpt_paint::smooth_fill_strokes(), blender::ed::sculpt_paint::greasepencil::smooth_stroke(), blender::nodes::node_geo_dual_mesh_cc::transfer_attributes(), blender::nodes::node_geo_transfer_attributes_cc::transfer_attributes(), blender::ed::sculpt_paint::greasepencil::trim_end_points(), blender::bke::try_capture_fields_on_geometry(), blender::bke::validate_float_attribute(), and blender::ed::object::vgroup_select_verts().

◆ operator bool()

blender::bke::GSpanAttributeWriter::operator bool ( ) const
inline

Definition at line 367 of file BKE_attribute.hh.

References span, and blender::GMutableVArraySpan::varray().

Member Data Documentation

◆ domain

◆ span

GMutableVArraySpan blender::bke::GSpanAttributeWriter::span

Definition at line 354 of file BKE_attribute.hh.

Referenced by blender::ed::sculpt_paint::color::active_color_attribute_for_write(), blender::nodes::node_geo_instance_on_points_cc::add_instances_from_component(), blender::ed::greasepencil::add_single_curve(), blender::ed::curves::pen_tool::add_single_point_and_curve(), blender::ed::curves::append_primitive_curve(), blender::ed::greasepencil::apply_eval_grease_pencil_data(), blender::ed::greasepencil::apply_mask_as_segment_selection(), blender::ed::greasepencil::apply_mask_as_selection(), blender::ed::pointcloud::apply_selection_operation(), blender::ed::object::bake_targets_output_vertex_colors(), blender::geometry::construct::build_output_mesh(), blender::ed::curves::pen_tool::close_curve_and_select(), blender::ed::sculpt_paint::color::color_filter_task(), blender::ed::sculpt_paint::expand::colors_update_task(), blender::nodes::node_geo_instances_to_points_cc::convert_instances_to_points(), blender::geometry::copy_and_mix_attributes(), blender::nodes::node_geo_duplicate_elements_cc::copy_attributes_from_other_domains(), blender::bke::copy_attributes_group_to_group(), blender::bke::copy_main_point_domain_attribute_to_mesh(), blender::geometry::create_curve_from_vert_indices(), blender::nodes::node_geo_curves_to_grease_pencil_cc::curve_instances_to_grease_pencil_layers(), blender::bke::curve_to_mesh_sweep(), blender::data_transfer_layersmapping_add_item_attr(), blender::ed::sculpt_paint::greasepencil::deselect_stroke(), blender::ed::sculpt_paint::color::do_color_smooth_task(), blender::ed::sculpt_paint::color::do_paint_brush_task(), blender::ed::sculpt_paint::color::do_smear_brush_task(), blender::ed::pointcloud::duplicate_points(), blender::ed::greasepencil::ensure_selection_domain(), blender::geometry::execute_instances_tasks(), blender::geometry::extract_mesh_edges(), blender::geometry::extract_mesh_faces(), blender::geometry::extract_mesh_vertices(), blender::ed::curves::pen_tool::extrude_curves(), blender::ed::greasepencil::extrude_grease_pencil_curves(), blender::bke::gather_attributes(), blender::bke::gather_attributes(), blender::bke::gather_attributes(), blender::bke::gather_attributes_group_to_group(), blender::bke::gather_attributes_to_groups(), blender::geometry::gather_point_attributes_to_interpolate(), blender::nodes::node_geo_mesh_to_points_cc::geometry_set_mesh_to_points(), blender::nodes::node_geo_points_to_vertices_cc::geometry_set_points_to_vertices(), blender::ed::greasepencil::grease_pencil_material_select_exec(), blender::ed::greasepencil::grease_pencil_paste_strokes_exec(), blender::ed::greasepencil::grease_pencil_stroke_smooth_exec(), GSpanAttributeWriter(), blender::nodes::LazyFunctionForReduceForeachGeometryElement::handle_generation_items_group(), blender::ed::curves::pen_tool::insert_point_to_curve(), blender::nodes::node_geo_interpolate_curves_cc::interpolate_curve_attributes(), blender::geometry::join_attributes(), blender::ed::mesh::join_generic_attributes(), blender::geometry::merge_layers(), blender::geometry::merge_points(), blender::mesh_add_edges(), blender::mesh_add_faces(), blender::mesh_add_verts(), blender::geometry::mesh_faces_to_curves_convert(), blender::nodes::node_geo_grease_pencil_to_curves_cc::node_geo_exec(), operator bool(), blender::ed::sculpt_paint::greasepencil::PaintOperationExecutor::process_start_sample(), blender::nodes::node_geo_distribute_points_on_faces_cc::propagate_attributes(), blender::ed::curves::resize_curves(), blender::ed::greasepencil::resize_single_curve(), blender::ed::sculpt_paint::undo::restore_color(), blender::ed::sculpt_paint::expand::restore_color_data(), blender::ed::sculpt_paint::undo::restore_color_from_undo_step(), blender::geometry::retrieve_attribute_spans(), blender::bke::sample_vertex_attributes(), blender::ed::curves::select_adjacent(), blender::ed::curves::select_all(), blender::ed::pointcloud::select_all(), blender::ed::curves::select_ends_exec(), blender::ed::greasepencil::select_fill_exec(), blender::ed::curves::select_linked(), blender::ed::curves::select_linked_pick(), blender::ed::curves::select_random_exec(), blender::ed::pointcloud::select_random_exec(), blender::ed::greasepencil::select_similar_by_value(), blender::ed::curves::separate_points(), blender::geometry::smooth_curve_positions(), blender::ed::sculpt_paint::smooth_fill_strokes(), blender::ed::sculpt_paint::greasepencil::smooth_stroke(), blender::ed::curves::split_points(), blender::nodes::node_geo_dual_mesh_cc::transfer_attributes(), blender::nodes::node_geo_transfer_attributes_cc::transfer_attributes(), blender::ed::sculpt_paint::greasepencil::trim_end_points(), blender::bke::try_capture_fields_on_geometry(), and blender::bke::validate_float_attribute().

◆ tag_modified_fn

std::function<void()> blender::bke::GSpanAttributeWriter::tag_modified_fn

Definition at line 356 of file BKE_attribute.hh.

Referenced by GSpanAttributeWriter().


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