|
Blender V5.0
|
#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 * | 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 & | 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 (bool reserve_only=false) |
| 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 175 of file scene/attribute.h.
| AttributeSet::AttributeSet | ( | Geometry * | geometry, |
| AttributePrimitive | prim ) |
Definition at line 455 of file scene/attribute.cpp.
References geometry, and prim.
Referenced by AttributeSet(), update(), and ~AttributeSet().
|
default |
References AttributeSet().
|
default |
References AttributeSet(), element, and name.
| Attribute * AttributeSet::add | ( | AttributeStandard | std, |
| ustring | name = ustring() ) |
Definition at line 509 of file scene/attribute.cpp.
References add(), assert, 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_LENGTH, ATTR_STD_CURVE_RANDOM, ATTR_STD_GENERATED, ATTR_STD_GENERATED_TRANSFORM, ATTR_STD_MOTION_VERTEX_NORMAL, ATTR_STD_MOTION_VERTEX_POSITION, ATTR_STD_NORMAL_UNDISPLACED, ATTR_STD_POINT_RANDOM, 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_SHADOW_TRANSPARENCY, ATTR_STD_UV, ATTR_STD_UV_TANGENT, ATTR_STD_UV_TANGENT_SIGN, ATTR_STD_UV_TANGENT_SIGN_UNDISPLACED, ATTR_STD_UV_TANGENT_UNDISPLACED, 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, ATTR_STD_VOLUME_VELOCITY_X, ATTR_STD_VOLUME_VELOCITY_Y, ATTR_STD_VOLUME_VELOCITY_Z, geometry, name, Attribute::standard_name(), Attribute::std, and TypeRGBA().
| Attribute * AttributeSet::add | ( | ustring | name, |
| const TypeDesc | type, | ||
| AttributeElement | element ) |
Definition at line 462 of file scene/attribute.cpp.
References attributes, Attribute::element, element, find(), geometry, name, prim, remove(), and Attribute::type.
Referenced by add(), ApplyPrimvars(), attr_create_generic(), attr_create_generic(), attr_create_motion_from_velocity(), attr_create_motion_from_velocity(), attr_create_motion_from_velocity(), attr_create_pointiness(), attr_create_random_per_island(), attr_create_subd_uv_map(), attr_create_uv_map(), copy(), create_mesh(), GeometryManager::device_update_attributes(), EdgeDice::EdgeDice(), export_hair_curves(), export_hair_curves_motion(), export_pointcloud(), export_pointcloud_motion(), ExportCurveSegments(), ExportCurveSegmentsMotion(), mikk_compute_tangents(), sync_smoke_volume(), sync_volume_object(), update(), Mesh::update_generated(), and xml_read_mesh().
| void AttributeSet::clear | ( | bool | preserve_voxel_data = false | ) |
Definition at line 746 of file scene/attribute.cpp.
References ATTR_ELEMENT_VOXEL, ATTR_STD_GENERATED_TRANSFORM, and attributes.
| void AttributeSet::clear_modified | ( | ) |
Definition at line 789 of file scene/attribute.cpp.
References attributes.
Definition at line 661 of file scene/attribute.cpp.
References add(), Attribute::element, Attribute::name, Attribute::std, and Attribute::type.
| Attribute * AttributeSet::find | ( | AttributeRequest & | req | ) |
Definition at line 715 of file scene/attribute.cpp.
References ATTR_STD_NONE, find(), AttributeRequest::name, and AttributeRequest::std.
| Attribute * AttributeSet::find | ( | AttributeStandard | std | ) | const |
Definition at line 668 of file scene/attribute.cpp.
References attributes.
| Attribute * AttributeSet::find | ( | ustring | name | ) | const |
Definition at line 482 of file scene/attribute.cpp.
References attributes, and name.
Referenced by add(), BVHBuild::add_reference_curves(), BVHBuild::add_reference_points(), BVHBuild::add_reference_triangles(), attr_create_generic(), attr_create_generic(), attr_create_motion_from_velocity(), attr_create_motion_from_velocity(), attr_create_motion_from_velocity(), copy_attributes(), GeometryManager::device_update_attributes(), ObjectManager::device_update_object_transform(), GeometryManager::displace(), export_hair_curves_motion(), export_hair_motion_validate_attribute(), export_pointcloud_motion(), ExportCurveSegmentsMotion(), find(), mikk_compute_tangents(), read_shader_output(), BVH2::refit_primitives(), remove(), remove(), and Mesh::update_generated().
Definition at line 679 of file scene/attribute.cpp.
References attributes, Attribute::element, Attribute::name, Attribute::std, and Attribute::type.
| bool AttributeSet::modified | ( | AttrKernelDataType | kernel_type | ) | const |
Definition at line 811 of file scene/attribute.cpp.
Referenced by update_attribute_realloc_flags().
| void AttributeSet::remove | ( | Attribute * | attribute | ) |
Definition at line 723 of file scene/attribute.cpp.
References ATTR_STD_NONE, Attribute::name, remove(), and Attribute::std.
| void AttributeSet::remove | ( | AttributeStandard | std | ) |
Definition at line 699 of file scene/attribute.cpp.
References attributes, find(), and remove().
| void AttributeSet::remove | ( | list< Attribute >::iterator | it | ) |
Definition at line 733 of file scene/attribute.cpp.
References attributes.
| void AttributeSet::remove | ( | ustring | name | ) |
Definition at line 493 of file scene/attribute.cpp.
References attributes, find(), name, and remove().
Referenced by add(), export_hair_motion_validate_attribute(), export_pointcloud_motion(), remove(), remove(), remove(), and update().
| void AttributeSet::resize | ( | bool | reserve_only = false | ) |
Definition at line 739 of file scene/attribute.cpp.
References attributes, geometry, and prim.
| void AttributeSet::update | ( | AttributeSet && | new_attributes | ) |
Definition at line 765 of file scene/attribute.cpp.
References add(), attributes, AttributeSet(), Attribute::element, geometry, Attribute::name, remove(), Attribute::set_data_from(), Attribute::std, and Attribute::type.
| list<Attribute> AttributeSet::attributes |
Definition at line 181 of file scene/attribute.h.
Referenced by add(), clear(), clear_modified(), Object::compute_volume_step_size(), GeometryManager::create_volume_mesh(), GeometryManager::device_update_volume_images(), find(), find(), find_matching(), remove(), remove(), remove(), resize(), update(), and update_device_flags_attribute().
| Geometry* AttributeSet::geometry |
Definition at line 179 of file scene/attribute.h.
Referenced by add(), add(), AttributeSet(), resize(), and update().
| AttributePrimitive AttributeSet::prim |
Definition at line 180 of file scene/attribute.h.
Referenced by add(), AttributeSet(), and resize().