|
Blender V5.0
|
#include <BKE_attribute.h>
Public Member Functions | |
| AttributeOwner () | |
| AttributeOwner (AttributeOwnerType type, void *ptr) | |
| AttributeOwnerType | type () const |
| bool | is_valid () const |
| blender::bke::AttributeStorage * | get_storage () const |
| std::optional< blender::bke::MutableAttributeAccessor > | get_accessor () const |
| Mesh * | get_mesh () const |
| PointCloud * | get_pointcloud () const |
| Curves * | get_curves () const |
| GreasePencil * | get_grease_pencil () const |
| GreasePencilDrawing * | get_grease_pencil_drawing () const |
Static Public Member Functions | |
| static AttributeOwner | from_id (ID *id) |
Definition at line 55 of file BKE_attribute.h.
|
inline |
Definition at line 60 of file BKE_attribute.h.
Referenced by from_id().
|
inline |
Definition at line 61 of file BKE_attribute.h.
|
static |
Definition at line 44 of file attribute.cc.
References AttributeOwner(), Curves, GreasePencil, GS, ID_CV, ID_GP, ID_ME, ID_PT, Mesh, ID::name, and PointCloud.
Referenced by blender::ed::geometry::attribute_set_poll(), blender::ed::object::bake_targets_output_vertex_colors(), BKE_id_attributes_color_find(), BKE_sculpt_color_layer_create_if_needed(), blo_do_versions_300(), blender::ed::curves::set_selection_domain::curves_set_selection_domain_exec(), data_transfer_mesh_attributes_transfer_active_color_string(), data_transfer_mesh_attributes_transfer_default_color_string(), ED_mesh_color_add(), ED_mesh_color_ensure(), ED_mesh_uv_add(), edbm_reverse_colors_exec(), edbm_rotate_colors_exec(), edbm_select_by_attribute_exec(), edbm_select_by_attribute_poll(), ensure_weight_attribute_meta_data(), blender::ed::sculpt_paint::fill_mesh_color(), blender::ed::geometry::geometry_attribute_add_exec(), blender::ed::geometry::geometry_attribute_convert_exec(), blender::ed::geometry::geometry_attribute_convert_invoke(), blender::ed::geometry::geometry_attribute_convert_poll(), blender::ed::geometry::geometry_attribute_domain_itemf(), blender::ed::geometry::geometry_attribute_remove_exec(), blender::ed::geometry::geometry_attributes_remove_poll(), blender::ed::geometry::geometry_color_attribute_add_exec(), blender::ed::geometry::geometry_color_attribute_convert_exec(), blender::ed::geometry::geometry_color_attribute_duplicate_exec(), blender::ed::geometry::geometry_color_attribute_remove_exec(), get_uv_attribute(), blender::io::fbx::import_meshes(), blender::ed::mesh::join_generic_attributes(), mesh_customdata_mask_clear_exec(), blender::ed::object::mesh_data_to_grease_pencil(), blender::ed::mesh::set_attribute::mesh_set_attribute_exec(), blender::ed::mesh::set_attribute::mesh_set_attribute_invoke(), blender::ed::mesh::set_attribute::mesh_set_attribute_ui(), mesh_uv_texture_remove_exec(), output_toggle_exec(), proj_paint_color_attribute_create(), blender::io::alembic::read_velocity(), blender::ed::sculpt_paint::undo::set_active_layer(), blender::ed::curves::set_attribute_exec(), blender::ed::pointcloud::set_attribute_exec(), blender::ed::curves::set_attribute_invoke(), blender::ed::pointcloud::set_attribute_invoke(), blender::ed::curves::set_attribute_ui(), and blender::ed::pointcloud::set_attribute_ui().
| std::optional< blender::bke::MutableAttributeAccessor > AttributeOwner::get_accessor | ( | ) | const |
Definition at line 126 of file attribute.cc.
References BLI_assert, Curves, Curves::geometry, GreasePencilDrawing::geometry, get_curves(), get_grease_pencil(), get_grease_pencil_drawing(), get_mesh(), get_pointcloud(), GreasePencil, GreasePencilDrawing, Mesh, and PointCloud.
Referenced by blender::ed::geometry::attribute_set_poll(), bke_attribute_copy_if_exists(), BKE_attribute_duplicate(), BKE_attribute_new(), BKE_attribute_remove(), and blender::ed::geometry::geometry_attribute_add_exec().
| Curves * AttributeOwner::get_curves | ( | ) | const |
Definition at line 87 of file attribute.cc.
References BLI_assert, Curves, and is_valid().
Referenced by BKE_attribute_rename(), BKE_attribute_required(), BKE_attributes_active_index_p(), get_accessor(), and get_storage().
| GreasePencil * AttributeOwner::get_grease_pencil | ( | ) | const |
Definition at line 94 of file attribute.cc.
References BLI_assert, GreasePencil, and is_valid().
Referenced by BKE_attributes_active_index_p(), get_accessor(), and get_storage().
| GreasePencilDrawing * AttributeOwner::get_grease_pencil_drawing | ( | ) | const |
Definition at line 101 of file attribute.cc.
References BLI_assert, GreasePencilDrawing, and is_valid().
Referenced by BKE_attribute_required(), BKE_attributes_active_index_p(), get_accessor(), and get_storage().
| Mesh * AttributeOwner::get_mesh | ( | ) | const |
Definition at line 73 of file attribute.cc.
References BLI_assert, is_valid(), and Mesh.
Referenced by BKE_attribute_data_length(), BKE_attribute_duplicate(), BKE_attribute_new(), BKE_attribute_remove(), BKE_attribute_rename(), BKE_attributes_active_index_p(), get_accessor(), get_domains(), and get_storage().
| PointCloud * AttributeOwner::get_pointcloud | ( | ) | const |
Definition at line 80 of file attribute.cc.
References BLI_assert, is_valid(), and PointCloud.
Referenced by BKE_attribute_required(), BKE_attributes_active_index_p(), get_accessor(), and get_storage().
| blender::bke::AttributeStorage * AttributeOwner::get_storage | ( | ) | const |
Definition at line 108 of file attribute.cc.
References CurvesGeometry::attribute_storage, GreasePencil::attribute_storage, Mesh::attribute_storage, PointCloud::attribute_storage, BLI_assert, Curves, Curves::geometry, GreasePencilDrawing::geometry, get_curves(), get_grease_pencil(), get_grease_pencil_drawing(), get_mesh(), get_pointcloud(), GreasePencil, GreasePencilDrawing, Mesh, and PointCloud.
Referenced by BKE_attribute_calc_unique_name(), BKE_attribute_rename(), BKE_attributes_active_name_get(), BKE_attributes_active_set(), and blender::ed::geometry::geometry_attribute_add_exec().
| bool AttributeOwner::is_valid | ( | ) | const |
Definition at line 68 of file attribute.cc.
Referenced by get_curves(), get_grease_pencil(), get_grease_pencil_drawing(), get_mesh(), and get_pointcloud().
| AttributeOwnerType AttributeOwner::type | ( | ) | const |
Definition at line 63 of file attribute.cc.
Referenced by blender::ed::geometry::attribute_set_poll(), AttributeOwner(), BKE_attribute_calc_unique_name(), BKE_attribute_data_length(), BKE_attribute_duplicate(), BKE_attribute_new(), BKE_attribute_remove(), BKE_attribute_rename(), BKE_attribute_required(), BKE_attributes_active_index_p(), BKE_attributes_active_name_get(), BKE_attributes_active_set(), blender::ed::geometry::geometry_attribute_add_exec(), and get_domains().