Blender V4.3
AttributeOwner Class Reference

#include <BKE_attribute.h>

Public Member Functions

 AttributeOwner ()
 
 AttributeOwner (AttributeOwnerType type, void *ptr)
 
AttributeOwnerType type () const
 
bool is_valid () 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 52 of file BKE_attribute.h.

Constructor & Destructor Documentation

◆ AttributeOwner() [1/2]

AttributeOwner::AttributeOwner ( )
inline

Definition at line 57 of file BKE_attribute.h.

Referenced by from_id().

◆ AttributeOwner() [2/2]

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

Definition at line 58 of file BKE_attribute.h.

Member Function Documentation

◆ from_id()

AttributeOwner AttributeOwner::from_id ( ID * id)
static

Definition at line 43 of file attribute.cc.

References AttributeOwner(), Curves, GreasePencil, GS, ID_CV, ID_GP, ID_ME, ID_PT, Mesh, 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(), bmo_get_loop_color_ref(), 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_duplicate_exec(), blender::ed::geometry::geometry_color_attribute_remove_exec(), get_uv_attribute(), mesh_customdata_mask_clear_exec(), 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::curves::set_attribute_invoke(), and blender::ed::curves::set_attribute_ui().

◆ get_curves()

Curves * AttributeOwner::get_curves ( ) const

◆ get_grease_pencil()

GreasePencil * AttributeOwner::get_grease_pencil ( ) const

◆ get_grease_pencil_drawing()

GreasePencilDrawing * AttributeOwner::get_grease_pencil_drawing ( ) const

◆ get_mesh()

◆ get_pointcloud()

PointCloud * AttributeOwner::get_pointcloud ( ) const

◆ is_valid()

bool AttributeOwner::is_valid ( ) const

◆ type()


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