|
Blender
V2.93
|
#include <attribute.h>
Public Member Functions | |
| AttributeSet (Geometry *geometry, AttributePrimitive prim) | |
| AttributeSet (AttributeSet &&)=default | |
| ~AttributeSet () | |
| Attribute * | add (ustring name, TypeDesc type, AttributeElement element) |
| Attribute * | find (ustring name) const |
| void | remove (ustring name) |
| Attribute * | add (AttributeStandard std, ustring name=ustring()) |
| Attribute * | find (AttributeStandard std) const |
| void | remove (AttributeStandard std) |
| Attribute * | find (AttributeRequest &req) |
| void | remove (Attribute *attribute) |
| void | resize (bool reserve_only=false) |
| void | clear (bool preserve_voxel_data=false) |
| void | update (AttributeSet &&new_attributes) |
| void | clear_modified () |
Public Attributes | |
| Geometry * | geometry |
| AttributePrimitive | prim |
| list< Attribute > | attributes |
| bool | modified = true |
Definition at line 177 of file attribute.h.
| AttributeSet::AttributeSet | ( | Geometry * | geometry, |
| AttributePrimitive | prim | ||
| ) |
Definition at line 419 of file attribute.cpp.
|
default |
| AttributeSet::~AttributeSet | ( | ) |
Definition at line 424 of file attribute.cpp.
| Attribute * AttributeSet::add | ( | AttributeStandard | std, |
| ustring | name = ustring() |
||
| ) |
Definition at line 473 of file attribute.cpp.
References add(), ATTR_ELEMENT_CORNER, ATTR_ELEMENT_CORNER_BYTE, ATTR_ELEMENT_CURVE, ATTR_ELEMENT_CURVE_KEY, ATTR_ELEMENT_CURVE_KEY_MOTION, ATTR_ELEMENT_FACE, ATTR_ELEMENT_MESH, ATTR_ELEMENT_VERTEX, ATTR_ELEMENT_VERTEX_MOTION, ATTR_ELEMENT_VOXEL, ATTR_STD_CURVE_INTERCEPT, ATTR_STD_CURVE_RANDOM, ATTR_STD_FACE_NORMAL, ATTR_STD_GENERATED, ATTR_STD_GENERATED_TRANSFORM, ATTR_STD_MOTION_VERTEX_NORMAL, ATTR_STD_MOTION_VERTEX_POSITION, ATTR_STD_POINTINESS, ATTR_STD_POSITION_UNDEFORMED, ATTR_STD_POSITION_UNDISPLACED, ATTR_STD_PTEX_FACE_ID, ATTR_STD_PTEX_UV, ATTR_STD_RANDOM_PER_ISLAND, ATTR_STD_UV, ATTR_STD_UV_TANGENT, ATTR_STD_UV_TANGENT_SIGN, ATTR_STD_VERTEX_COLOR, ATTR_STD_VERTEX_NORMAL, ATTR_STD_VOLUME_COLOR, ATTR_STD_VOLUME_DENSITY, ATTR_STD_VOLUME_FLAME, ATTR_STD_VOLUME_HEAT, ATTR_STD_VOLUME_TEMPERATURE, ATTR_STD_VOLUME_VELOCITY, geometry, Geometry::geometry_type, Geometry::HAIR, Geometry::MESH, NULL, Attribute::standard_name(), Attribute::std, TypeFloat2(), TypeRGBA(), and Geometry::VOLUME.
| Attribute * AttributeSet::add | ( | ustring | name, |
| TypeDesc | type, | ||
| AttributeElement | element | ||
| ) |
Definition at line 428 of file attribute.cpp.
References attributes, Attribute::element, element, find(), geometry, modified, prim, remove(), Attribute::type, and type.
Referenced by add(), Mesh::add_face_normals(), Mesh::add_undisplaced(), Mesh::add_vertex_normals(), attr_create_generic(), attr_create_pointiness(), attr_create_random_per_island(), attr_create_sculpt_vertex_color(), attr_create_uv_map(), attr_create_vertex_color(), create_mesh(), GeometryManager::create_volume_mesh(), GeometryManager::device_update_attributes(), EdgeDice::EdgeDice(), ExportCurveSegments(), ExportCurveSegmentsMotion(), mikk_compute_tangents(), EdgeDice::reserve(), sync_mesh_cached_velocities(), sync_mesh_fluid_motion(), sync_smoke_volume(), sync_volume_object(), update(), and xml_read_mesh().
| void AttributeSet::clear | ( | bool | preserve_voxel_data = false | ) |
Definition at line 644 of file attribute.cpp.
References ATTR_ELEMENT_VOXEL, ATTR_STD_GENERATED_TRANSFORM, and attributes.
Referenced by Mesh::clear(), and Hair::clear().
| void AttributeSet::clear_modified | ( | ) |
Definition at line 697 of file attribute.cpp.
References attributes, Attribute::modified, and modified.
| Attribute * AttributeSet::find | ( | AttributeRequest & | req | ) |
Definition at line 619 of file attribute.cpp.
References ATTR_STD_NONE, find(), AttributeRequest::name, and AttributeRequest::std.
| Attribute * AttributeSet::find | ( | AttributeStandard | std | ) | const |
Definition at line 593 of file attribute.cpp.
References attributes, NULL, and Attribute::std.
| Attribute * AttributeSet::find | ( | ustring | name | ) | const |
Definition at line 447 of file attribute.cpp.
References attributes, Attribute::name, and NULL.
Referenced by add(), Mesh::add_face_normals(), BVHBuild::add_reference_curves(), BVHBuild::add_reference_triangles(), Mesh::add_undisplaced(), Mesh::add_vertex_normals(), Hair::apply_transform(), Mesh::apply_transform(), attr_create_generic(), Hair::compute_bounds(), Mesh::compute_bounds(), Hair::copy_center_to_motion_step(), Mesh::copy_center_to_motion_step(), GeometryManager::device_update_attributes(), ObjectManager::device_update_object_transform(), GeometryManager::displace(), export_hair_motion_validate_attribute(), ExportCurveSegmentsMotion(), find(), Hair::get_uv_tiles(), Mesh::get_uv_tiles(), Geometry::has_motion_blur(), MikkUserData::MikkUserData(), Mesh::pack_normals(), BVH2::refit_primitives(), remove(), sync_mesh_cached_velocities(), and sync_mesh_fluid_motion().
| void AttributeSet::remove | ( | Attribute * | attribute | ) |
Definition at line 627 of file attribute.cpp.
References ATTR_STD_NONE, Attribute::name, remove(), and Attribute::std.
| void AttributeSet::remove | ( | AttributeStandard | std | ) |
Definition at line 602 of file attribute.cpp.
References attributes, find(), and modified.
| void AttributeSet::remove | ( | ustring | name | ) |
Definition at line 456 of file attribute.cpp.
References attributes, find(), and modified.
Referenced by add(), attr_create_uv_map(), GeometryManager::displace(), export_hair_motion_validate_attribute(), and remove().
| void AttributeSet::resize | ( | bool | reserve_only = false | ) |
Definition at line 637 of file attribute.cpp.
References attributes, geometry, prim, and Attribute::resize().
Referenced by Hair::reserve_curves(), Mesh::reserve_mesh(), Hair::resize_curves(), and Mesh::resize_mesh().
| void AttributeSet::update | ( | AttributeSet && | new_attributes | ) |
Definition at line 663 of file attribute.cpp.
References add(), ATTR_STD_NONE, attributes, Attribute::element, geometry, modified, Attribute::name, Attribute::set_data_from(), Attribute::std, Geometry::transform_applied, and Attribute::type.
| list<Attribute> AttributeSet::attributes |
Definition at line 181 of file attribute.h.
Referenced by add(), clear(), clear_modified(), Object::compute_volume_step_size(), GeometryManager::create_volume_mesh(), GeometryManager::device_update_volume_images(), find(), Geometry::has_voxel_attributes(), remove(), resize(), update(), and update_device_flags_attribute().
| Geometry* AttributeSet::geometry |
Definition at line 179 of file attribute.h.
| bool AttributeSet::modified = true |
Definition at line 182 of file attribute.h.
Referenced by add(), clear_modified(), remove(), and update().
| AttributePrimitive AttributeSet::prim |
Definition at line 180 of file attribute.h.