Blender V5.3
AttributeSet Class Reference

#include <attribute.h>

Public Member Functions

 AttributeSet (Geometry *geometry, AttributePrimitive prim)
 AttributeSet (AttributeSet &&)=default
 ~AttributeSet ()
Attribute * add (ustring name, const TypeDesc type, AttributeElement element)
Attribute * add_shared (ustring name, const TypeDesc type, AttributeElement element, const void *data, int size, ImplicitSharingInfo sharing_info)
Attribute * add_from (Attribute &&other)
Attribute * find (ustring name) const
void remove (ustring name)
Attribute * add (AttributeStandard std, ustring name=ustring())
Attribute * add_shared (AttributeStandard std, ustring name, const void *data, int size, ImplicitSharingInfo sharing_info)
Attribute * find (AttributeStandard std) const
void remove (AttributeStandard std)
Attribute & copy (const Attribute &attr)
Attribute * find (AttributeRequest &req)
Attribute * find_matching (const Attribute &other)
void remove (Attribute *attribute)
void remove (list< Attribute >::iterator it)
void resize ()
void clear (bool preserve_voxel_data=false)
void update (AttributeSet &&new_attributes)
bool modified (AttrKernelDataType kernel_type) const
void clear_modified ()

Public Attributes

Geometry * geometry
AttributePrimitive prim
list< Attribute > attributes

Detailed Description

Definition at line 207 of file scene/attribute.h.

Constructor & Destructor Documentation

◆ AttributeSet() [1/2]

AttributeSet::AttributeSet ( Geometry * geometry,
AttributePrimitive prim )

Definition at line 669 of file attribute.cpp.

References geometry, and prim.

Referenced by AttributeSet(), GeometryManager::device_update_attributes(), update(), and ~AttributeSet().

◆ AttributeSet() [2/2]

AttributeSet::AttributeSet ( AttributeSet && )
default

References AttributeSet().

◆ ~AttributeSet()

Member Function Documentation

◆ add() [1/2]

Attribute * AttributeSet::add ( AttributeStandard std,
ustring name = ustring() )

◆ add() [2/2]

◆ add_from()

Attribute * AttributeSet::add_from ( Attribute && other)

◆ add_shared() [1/2]

Attribute * AttributeSet::add_shared ( AttributeStandard std,
ustring name,
const void * data,
int size,
ImplicitSharingInfo sharing_info )

◆ add_shared() [2/2]

Attribute * AttributeSet::add_shared ( ustring name,
const TypeDesc type,
AttributeElement element,
const void * data,
int size,
ImplicitSharingInfo sharing_info )

◆ clear()

void AttributeSet::clear ( bool preserve_voxel_data = false)

◆ clear_modified()

void AttributeSet::clear_modified ( )

Definition at line 1172 of file attribute.cpp.

References attributes.

Referenced by ~AttributeSet().

◆ copy()

◆ find() [1/3]

◆ find() [2/3]

Attribute * AttributeSet::find ( AttributeStandard std) const

Definition at line 1024 of file attribute.cpp.

References attributes.

◆ find() [3/3]

Attribute * AttributeSet::find ( ustring name) const

Definition at line 733 of file attribute.cpp.

References attributes.

Referenced by add(), add_from(), AttributeTableBuilder::add_position_radius(), BVHBuild::add_reference_curves(), BVHBuild::add_reference_points(), BVHBuild::add_reference_triangles(), add_shared(), Mesh::add_undisplaced(), Mesh::add_vertex_normals(), Hair::apply_transform(), Mesh::apply_transform(), PointCloud::apply_transform(), attr_create_generic(), attr_create_generic(), attr_create_motion_from_velocity(), attr_create_motion_from_velocity(), attr_create_motion_from_velocity(), Hair::compute_bounds(), Mesh::compute_bounds(), PointCloud::compute_bounds(), copy_attributes(), Hair::copy_center_to_motion_step(), Mesh::copy_center_to_motion_step(), PointCloud::copy_center_to_motion_step(), PointCloud::create_missing_gsplat_attributes(), GeometryManager::device_update_attributes(), ObjectManager::device_update_object_transform(), GeometryManager::device_update_preprocess(), GeometryManager::displace(), EdgeDice::EdgeDice(), export_hair_curves_motion(), export_hair_motion_validate_attribute(), export_pointcloud_motion(), ExportCurveSegmentsMotion(), find(), Geometry::get_position(), Geometry::get_radius(), Hair::get_uv_tiles(), Mesh::get_uv_tiles(), PointCloud::get_uv_tiles(), Geometry::has_motion_blur(), Mesh::has_motion_blur(), mikk_compute_tangents(), Hair::need_update_shadow_transparency(), Mesh::SubdFace::normal(), Hair::num_keys(), PointCloud::num_points(), Mesh::num_verts(), Mesh::pack_shaders(), Geometry::position_is_modified(), PointCloud::primitive_type(), Geometry::radius_is_modified(), read_shader_output(), recompute_displaced_corner_normals(), recompute_displaced_vertex_normals(), BVH2::refit_primitives(), remove(), remove(), save_pre_displacement_normals(), Mesh::tessellate(), Mesh::update_generated(), PointCloud::update_gsplat_radii(), update_gsplat_std_point_attribute_offset_and_flag(), Hair::update_shadow_transparency(), Mesh::update_tangents(), and ~AttributeSet().

◆ find_matching()

Attribute * AttributeSet::find_matching ( const Attribute & other)

Definition at line 1035 of file attribute.cpp.

References attributes, Attribute::element, Attribute::name, Attribute::std, and Attribute::type.

Referenced by ~AttributeSet().

◆ modified()

bool AttributeSet::modified ( AttrKernelDataType kernel_type) const

Definition at line 1187 of file attribute.cpp.

Referenced by update_attribute_realloc_flags(), and ~AttributeSet().

◆ remove() [1/4]

void AttributeSet::remove ( Attribute * attribute)

Definition at line 1101 of file attribute.cpp.

References ATTR_STD_NONE, attribute, and remove().

◆ remove() [2/4]

void AttributeSet::remove ( AttributeStandard std)

Definition at line 1055 of file attribute.cpp.

References attributes, find(), and remove().

◆ remove() [3/4]

void AttributeSet::remove ( list< Attribute >::iterator it)

Definition at line 1111 of file attribute.cpp.

References attributes.

◆ remove() [4/4]

void AttributeSet::remove ( ustring name)

◆ resize()

void AttributeSet::resize ( )

◆ update()

Member Data Documentation

◆ attributes

◆ geometry

Geometry* AttributeSet::geometry

Definition at line 211 of file scene/attribute.h.

Referenced by add(), add(), add_shared(), AttributeSet(), copy(), find(), resize(), and update().

◆ prim

AttributePrimitive AttributeSet::prim

Definition at line 212 of file scene/attribute.h.

Referenced by add(), AttributeSet(), and resize().


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