|
Blender V5.3
|
#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 |
Definition at line 207 of file scene/attribute.h.
| 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().
|
default |
References AttributeSet().
|
default |
References add(), add_from(), add_shared(), attribute, AttributeSet(), clear(), clear_modified(), copy(), find(), find_matching(), modified(), remove(), resize(), and update().
| Attribute * AttributeSet::add | ( | AttributeStandard | std, |
| ustring | name = ustring() ) |
Definition at line 968 of file attribute.cpp.
References add(), assert, ATTR_ELEMENT_NONE, geometry, Attribute::standard_name(), standard_type_element(), and Attribute::std.
| Attribute * AttributeSet::add | ( | ustring | name, |
| const TypeDesc | type, | ||
| AttributeElement | element ) |
Definition at line 676 of file attribute.cpp.
References attributes, Attribute::element, find(), geometry, prim, remove(), and Attribute::type.
Referenced by add(), Mesh::add_builtin_attributes(), Mesh::add_undisplaced(), Mesh::add_vertex_normals(), ApplyPrimvars(), attr_create_generic(), attr_create_generic(), attr_create_pointiness(), attr_create_random_per_island(), attr_create_subd_uv_map(), attr_create_uv_map(), copy(), create_mesh(), PointCloud::create_missing_gsplat_attributes(), GeometryManager::device_update_attributes(), EdgeDice::EdgeDice(), export_hair_curves(), export_pointcloud(), export_pointcloud_gsplat_attributes(), ExportCurveSegments(), Geometry::get_position_for_write(), Geometry::get_radius_for_write(), mikk_compute_tangents(), PointCloud::resize(), Hair::resize_curves(), Mesh::resize_mesh(), sync_attribute_from_blender(), sync_smoke_volume(), sync_volume_object(), Geometry::tag_position_modified(), Geometry::tag_radius_modified(), Mesh::update_generated(), Hair::update_shadow_transparency(), xml_read_mesh(), and ~AttributeSet().
Definition at line 714 of file attribute.cpp.
References attributes, Attribute::element, find(), remove(), Attribute::set_data_from(), Attribute::std, and Attribute::type.
Referenced by update(), and ~AttributeSet().
| Attribute * AttributeSet::add_shared | ( | AttributeStandard | std, |
| ustring | name, | ||
| const void * | data, | ||
| int | size, | ||
| ImplicitSharingInfo | sharing_info ) |
Definition at line 989 of file attribute.cpp.
References add_shared(), assert, ATTR_ELEMENT_NONE, geometry, Attribute::standard_name(), standard_type_element(), and Attribute::std.
| Attribute * AttributeSet::add_shared | ( | ustring | name, |
| const TypeDesc | type, | ||
| AttributeElement | element, | ||
| const void * | data, | ||
| int | size, | ||
| ImplicitSharingInfo | sharing_info ) |
Definition at line 695 of file attribute.cpp.
References attributes, find(), and remove().
Referenced by add_shared(), attr_create_subd_uv_map(), sync_attribute_from_blender(), and ~AttributeSet().
| void AttributeSet::clear | ( | bool | preserve_voxel_data = false | ) |
Definition at line 1124 of file attribute.cpp.
References ATTR_ELEMENT_VOXEL, ATTR_STD_GENERATED_TRANSFORM, and attributes.
Referenced by Hair::clear(), Mesh::clear(), PointCloud::clear(), and ~AttributeSet().
| void AttributeSet::clear_modified | ( | ) |
Definition at line 1172 of file attribute.cpp.
References attributes.
Referenced by ~AttributeSet().
Definition at line 1014 of file attribute.cpp.
References add(), Attribute::add_motion(), Attribute::element, geometry, Attribute::has_motion(), Attribute::name, Attribute::std, and Attribute::type.
Referenced by SubdAttributeInterpolation::setup(), and ~AttributeSet().
| Attribute * AttributeSet::find | ( | AttributeRequest & | req | ) |
Definition at line 1071 of file attribute.cpp.
References ATTR_STD_NONE, find(), geometry, Attribute::matches_standard(), AttributeRequest::name, Attribute::standard_name(), and AttributeRequest::std.
| Attribute * AttributeSet::find | ( | AttributeStandard | std | ) | const |
Definition at line 1024 of file attribute.cpp.
References attributes.
| 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().
Definition at line 1035 of file attribute.cpp.
References attributes, Attribute::element, Attribute::name, Attribute::std, and Attribute::type.
Referenced by ~AttributeSet().
| bool AttributeSet::modified | ( | AttrKernelDataType | kernel_type | ) | const |
Definition at line 1187 of file attribute.cpp.
Referenced by update_attribute_realloc_flags(), and ~AttributeSet().
| void AttributeSet::remove | ( | Attribute * | attribute | ) |
Definition at line 1101 of file attribute.cpp.
References ATTR_STD_NONE, attribute, and remove().
| void AttributeSet::remove | ( | AttributeStandard | std | ) |
Definition at line 1055 of file attribute.cpp.
References attributes, find(), and remove().
| void AttributeSet::remove | ( | list< Attribute >::iterator | it | ) |
Definition at line 1111 of file attribute.cpp.
References attributes.
| void AttributeSet::remove | ( | ustring | name | ) |
Definition at line 744 of file attribute.cpp.
References attributes, find(), and remove().
Referenced by add(), add_from(), add_shared(), Mesh::add_vertex_normals(), remove(), remove(), remove(), update(), Hair::update_shadow_transparency(), and ~AttributeSet().
| void AttributeSet::resize | ( | ) |
Definition at line 1117 of file attribute.cpp.
References attributes, geometry, and prim.
Referenced by PointCloud::resize(), Hair::resize_curves(), Mesh::resize_mesh(), Mesh::resize_subd_faces(), and ~AttributeSet().
| void AttributeSet::update | ( | AttributeSet && | new_attributes | ) |
Definition at line 1143 of file attribute.cpp.
References add_from(), ATTR_STD_POSITION, ATTR_STD_RADIUS, attributes, AttributeSet(), geometry, Attribute::modified, remove(), Attribute::std, Node::tag_modified(), and Geometry::transform_applied.
Referenced by ~AttributeSet().
| list<Attribute> AttributeSet::attributes |
Definition at line 213 of file scene/attribute.h.
Referenced by add(), add_from(), add_shared(), clear(), clear_modified(), Object::compute_volume_step_size(), GeometryManager::create_volume_mesh(), GeometryManager::device_update_attributes(), GeometryManager::device_update_volume_images(), find(), find(), find_matching(), Geometry::has_voxel_attributes(), remove(), remove(), remove(), resize(), SubdAttributeInterpolation::setup(), update(), update_device_flags_attribute(), and Mesh::update_tangents().
| Geometry* AttributeSet::geometry |
Definition at line 211 of file scene/attribute.h.
Referenced by add(), add(), add_shared(), AttributeSet(), copy(), find(), resize(), and update().
| AttributePrimitive AttributeSet::prim |
Definition at line 212 of file scene/attribute.h.
Referenced by add(), AttributeSet(), and resize().