Blender V5.0
AttributeOwner Class Reference

#include <BKE_attribute.h>

Public Member Functions

 AttributeOwner ()
 AttributeOwner (AttributeOwnerType type, void *ptr)
AttributeOwnerType type () const
bool is_valid () const
blender::bke::AttributeStorageget_storage () const
std::optional< blender::bke::MutableAttributeAccessorget_accessor () const
Meshget_mesh () const
PointCloudget_pointcloud () const
Curvesget_curves () const
GreasePencilget_grease_pencil () const
GreasePencilDrawingget_grease_pencil_drawing () const

Static Public Member Functions

static AttributeOwner from_id (ID *id)

Detailed Description

Definition at line 55 of file BKE_attribute.h.

Constructor & Destructor Documentation

◆ AttributeOwner() [1/2]

AttributeOwner::AttributeOwner ( )
inline

Definition at line 60 of file BKE_attribute.h.

Referenced by from_id().

◆ AttributeOwner() [2/2]

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

Definition at line 61 of file BKE_attribute.h.

References ptr, and type().

Member Function Documentation

◆ from_id()

AttributeOwner AttributeOwner::from_id ( ID * id)
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().

◆ get_accessor()

◆ get_curves()

Curves * AttributeOwner::get_curves ( ) const

◆ get_grease_pencil()

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().

◆ get_grease_pencil_drawing()

GreasePencilDrawing * AttributeOwner::get_grease_pencil_drawing ( ) const

◆ get_mesh()

◆ get_pointcloud()

PointCloud * AttributeOwner::get_pointcloud ( ) const

◆ get_storage()

◆ is_valid()

bool AttributeOwner::is_valid ( ) const

◆ type()


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