Blender V5.3
blender::AttributeOwner Class Reference

#include <BKE_attribute.h>

Public Member Functions

 AttributeOwner ()
 AttributeOwner (AttributeOwnerType type, void *ptr)
AttributeOwnerType type () const
bool is_valid () const
bke::AttributeStorage * get_storage () const
std::optional< 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)

Detailed Description

Definition at line 59 of file BKE_attribute.h.

Constructor & Destructor Documentation

◆ AttributeOwner() [1/2]

blender::AttributeOwner::AttributeOwner ( )
inline

Definition at line 64 of file BKE_attribute.h.

Referenced by blender::blo_do_versions_503(), and from_id().

◆ AttributeOwner() [2/2]

blender::AttributeOwner::AttributeOwner ( AttributeOwnerType type,
void * ptr )
inline

Definition at line 65 of file BKE_attribute.h.

References type().

Member Function Documentation

◆ from_id()

AttributeOwner blender::AttributeOwner::from_id ( ID * id)
static

Definition at line 44 of file blenkernel/intern/attribute.cc.

References AttributeOwner(), blender::Curves, blender::GreasePencil, blender::GS(), blender::ID_CV, blender::ID_GP, blender::ID_ME, blender::ID_PT, blender::Mesh, and blender::PointCloud.

Referenced by blender::ed::geometry::attribute_set_poll(), blender::BKE_attribute_new(), blender::BKE_id_attributes_color_find(), blender::BKE_sculpt_color_layer_create_if_needed(), blender::blo_do_versions_300(), blender::blo_do_versions_503(), blender::BM_mesh_bm_to_me(), blender::ed::curves::set_selection_domain::curves_set_selection_domain_exec(), blender::ED_mesh_color_add(), blender::ED_mesh_color_ensure(), blender::ED_mesh_uv_add(), blender::EDBM_mesh_make_from_mesh(), blender::edbm_reverse_colors_exec(), blender::edbm_rotate_colors_exec(), blender::edbm_select_by_attribute_exec(), blender::edbm_select_by_attribute_poll(), blender::ensure_weight_attribute_meta_data(), 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(), blender::get_uv_attribute(), blender::io::fbx::import_meshes(), 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(), blender::mesh_uv_texture_remove_exec(), blender::output_toggle_exec(), blender::proj_paint_color_attribute_create(), 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().

◆ get_accessor()

◆ get_curves()

◆ get_grease_pencil()

GreasePencil * blender::AttributeOwner::get_grease_pencil ( ) const

◆ get_grease_pencil_drawing()

GreasePencilDrawing * blender::AttributeOwner::get_grease_pencil_drawing ( ) const

◆ get_mesh()

◆ get_pointcloud()

PointCloud * blender::AttributeOwner::get_pointcloud ( ) const

◆ get_storage()

◆ is_valid()

bool blender::AttributeOwner::is_valid ( ) const

◆ type()


The documentation for this class was generated from the following files: