|
Blender V4.3
|
#include <BKE_instances.hh>
Definition at line 112 of file BKE_instances.hh.
| blender::bke::Instances::Instances | ( | ) |
Definition at line 140 of file instances.cc.
| blender::bke::Instances::Instances | ( | Instances && | other | ) |
Definition at line 145 of file instances.cc.
| blender::bke::Instances::Instances | ( | const Instances & | other | ) |
Definition at line 155 of file instances.cc.
| blender::bke::Instances::~Instances | ( | ) |
Definition at line 164 of file instances.cc.
Add a reference to the instance reference with an index specified by the #instance_handle argument. For adding many instances, using resize and accessing the transform array directly is preferred.
Definition at line 195 of file instances.cc.
| int blender::bke::Instances::add_new_reference | ( | const InstanceReference & | reference | ) |
Same as above, but does not deduplicate with existing references.
Definition at line 271 of file instances.cc.
| int blender::bke::Instances::add_reference | ( | const InstanceReference & | reference | ) |
Returns a handle for the given reference. If the reference exists already, the handle of the existing reference is returned. Otherwise a new handle is added.
Definition at line 263 of file instances.cc.
Get an id for every instance. These can be used for e.g. motion blur.
Definition at line 497 of file instances.cc.
| AttributeAccessor blender::bke::Instances::attributes | ( | ) | const |
Definition at line 215 of file geometry_component_instances.cc.
| MutableAttributeAccessor blender::bke::Instances::attributes_for_write | ( | ) |
Definition at line 220 of file geometry_component_instances.cc.
| void blender::bke::Instances::count_memory | ( | MemoryCounter & | memory | ) | const |
Definition at line 420 of file instances.cc.
|
inline |
Definition at line 307 of file BKE_instances.hh.
|
inline |
Definition at line 312 of file BKE_instances.hh.
| void blender::bke::Instances::ensure_geometry_instances | ( | ) |
If references have a collection or object type, convert them into geometry instances recursively. After that, the geometry sets can be edited. There may still be instances of other types of they can't be converted to geometry sets.
Definition at line 104 of file geometry_set_instances.cc.
| void blender::bke::Instances::ensure_owns_direct_data | ( | ) |
Definition at line 410 of file instances.cc.
| std::optional< int > blender::bke::Instances::find_reference_handle | ( | const InstanceReference & | query | ) |
Definition at line 252 of file instances.cc.
| void blender::bke::Instances::foreach_referenced_geometry | ( | FunctionRef< void(const GeometrySet &geometry_set)> | callback | ) | const |
Definition at line 72 of file geometry_set_instances.cc.
| GeometrySet & blender::bke::Instances::geometry_set_from_reference | ( | int | reference_index | ) |
With write access to the instances component, the data in the instanced geometry sets can be changed. This is a function on the component rather than each reference to ensure const correctness for that reason.
Definition at line 243 of file instances.cc.
| int blender::bke::Instances::instances_num | ( | ) | const |
Definition at line 390 of file instances.cc.
Definition at line 169 of file instances.cc.
Definition at line 179 of file instances.cc.
| bool blender::bke::Instances::owns_direct_data | ( | ) | const |
Definition at line 400 of file instances.cc.
Definition at line 207 of file instances.cc.
| MutableSpan< int > blender::bke::Instances::reference_handles_for_write | ( | ) |
Definition at line 214 of file instances.cc.
Get cached user counts for every reference.
Definition at line 480 of file instances.cc.
| Span< InstanceReference > blender::bke::Instances::references | ( | ) | const |
Definition at line 277 of file instances.cc.
| int blender::bke::Instances::references_num | ( | ) | const |
Definition at line 395 of file instances.cc.
| void blender::bke::Instances::remove | ( | const IndexMask & | mask, |
| const AttributeFilter & | attribute_filter ) |
Remove the indices that are not contained in the mask input, and remove unused instance references afterwards.
Definition at line 282 of file instances.cc.
| void blender::bke::Instances::remove_unused_references | ( | ) |
Definition at line 308 of file instances.cc.
| void blender::bke::Instances::resize | ( | int | capacity | ) |
Resize the transform, handles, and attributes to the specified capacity.
Definition at line 189 of file instances.cc.
|
inline |
Definition at line 223 of file BKE_instances.hh.
Definition at line 225 of file instances.cc.
| MutableSpan< float4x4 > blender::bke::Instances::transforms_for_write | ( | ) |
Definition at line 232 of file instances.cc.