|
Blender V4.3
|
#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) |
| 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 177 of file scene/attribute.h.
| AttributeSet::AttributeSet | ( | Geometry * | geometry, |
| AttributePrimitive | prim ) |
Definition at line 476 of file scene/attribute.cpp.
|
default |
| AttributeSet::~AttributeSet | ( | ) |
Definition at line 481 of file scene/attribute.cpp.
| Attribute * AttributeSet::add | ( | AttributeStandard | std, |
| ustring | name = ustring() ) |
Definition at line 529 of file scene/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_LENGTH, 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_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_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::HAIR, Geometry::MESH, NULL, Geometry::POINTCLOUD, Attribute::standard_name(), Attribute::std, TypeFloat2(), TypeRGBA(), and Geometry::VOLUME.
| Attribute * AttributeSet::add | ( | ustring | name, |
| TypeDesc | type, | ||
| AttributeElement | element ) |
Definition at line 483 of file scene/attribute.cpp.
References Attribute::element, find(), prim, remove(), and Attribute::type.
Referenced by add(), Mesh::add_undisplaced(), Mesh::add_vertex_normals(), attr_create_motion_from_velocity(), EdgeDice::EdgeDice(), export_pointcloud(), export_pointcloud_motion(), and update().
| void AttributeSet::clear | ( | bool | preserve_voxel_data = false | ) |
Definition at line 763 of file scene/attribute.cpp.
References ATTR_ELEMENT_VOXEL, and ATTR_STD_GENERATED_TRANSFORM.
Referenced by Mesh::clear().
| void AttributeSet::clear_modified | ( | ) |
Definition at line 806 of file scene/attribute.cpp.
References Attribute::modified.
| Attribute * AttributeSet::find | ( | AttributeRequest & | req | ) |
Definition at line 730 of file scene/attribute.cpp.
References ATTR_STD_NONE, find(), AttributeRequest::name, and AttributeRequest::std.
| Attribute * AttributeSet::find | ( | AttributeStandard | std | ) | const |
Definition at line 684 of file scene/attribute.cpp.
References NULL, and Attribute::std.
| Attribute * AttributeSet::find | ( | ustring | name | ) | const |
Definition at line 503 of file scene/attribute.cpp.
References Attribute::name, and NULL.
Referenced by add(), BVHBuild::add_reference_points(), Mesh::add_undisplaced(), Mesh::add_vertex_normals(), attr_create_motion_from_velocity(), GeometryManager::device_update_attributes(), export_pointcloud_motion(), find(), Mesh::get_uv_tiles(), BVH2::refit_primitives(), remove(), remove(), and Mesh::tessellate().
Definition at line 694 of file scene/attribute.cpp.
References attributes.
| bool AttributeSet::modified | ( | AttrKernelDataType | kernel_type | ) | const |
Definition at line 829 of file scene/attribute.cpp.
| void AttributeSet::remove | ( | Attribute * | attribute | ) |
Definition at line 740 of file scene/attribute.cpp.
References ATTR_STD_NONE, and remove().
| void AttributeSet::remove | ( | AttributeStandard | std | ) |
Definition at line 714 of file scene/attribute.cpp.
| void AttributeSet::remove | ( | list< Attribute >::iterator | it | ) |
Definition at line 750 of file scene/attribute.cpp.
| void AttributeSet::remove | ( | ustring | name | ) |
Definition at line 513 of file scene/attribute.cpp.
References find(), and remove().
Referenced by add(), export_pointcloud_motion(), remove(), remove(), remove(), and update().
| void AttributeSet::resize | ( | bool | reserve_only = false | ) |
Definition at line 756 of file scene/attribute.cpp.
References prim, and Attribute::resize().
Referenced by Mesh::reserve_subd_faces(), and Mesh::resize_subd_faces().
| void AttributeSet::update | ( | AttributeSet && | new_attributes | ) |
Definition at line 782 of file scene/attribute.cpp.
References add(), Attribute::element, Attribute::name, remove(), Attribute::set_data_from(), Attribute::std, and Attribute::type.
| list<Attribute> AttributeSet::attributes |
Definition at line 183 of file scene/attribute.h.
Referenced by attr_create_generic(), GeometryManager::device_update_volume_images(), find_matching(), mikk_compute_tangents(), MikkMeshWrapper< is_subd >::MikkMeshWrapper(), and Mesh::tessellate().
| Geometry* AttributeSet::geometry |
Definition at line 181 of file scene/attribute.h.
| AttributePrimitive AttributeSet::prim |
Definition at line 182 of file scene/attribute.h.