|
Blender V5.3
|
#include <BKE_instances.hh>
Definition at line 115 of file BKE_instances.hh.
|
default |
| blender::bke::Instances::Instances | ( | int | size | ) |
Definition at line 171 of file instances.cc.
| blender::bke::Instances::Instances | ( | Instances && | other | ) |
Definition at line 176 of file instances.cc.
| blender::bke::Instances::Instances | ( | const Instances & | other | ) |
Definition at line 185 of file instances.cc.
|
default |
| int blender::bke::Instances::add_new_reference | ( | InstanceReference | reference | ) |
Same as above, but does not deduplicate with existing references.
Definition at line 284 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 268 of file instances.cc.
| int blender::bke::Instances::add_reference | ( | InstanceReference && | reference | ) |
Definition at line 276 of file instances.cc.
Definition at line 307 of file BKE_instances.hh.
|
inline |
Definition at line 312 of file BKE_instances.hh.
Definition at line 68 of file instances.cc.
Definition at line 73 of file instances.cc.
| void blender::bke::Instances::count_memory | ( | MemoryCounter & | memory | ) | const |
Definition at line 438 of file instances.cc.
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 111 of file geometry_set_instances.cc.
Definition at line 428 of file instances.cc.
| std::optional< int > blender::bke::Instances::find_reference_handle | ( | const InstanceReference & | query | ) |
Definition at line 257 of file instances.cc.
| void blender::bke::Instances::foreach_referenced_geometry | ( | FunctionRef< void(const GeometrySet &geometry_set)> | callback | ) | const |
Definition at line 79 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 248 of file instances.cc.
| int blender::bke::Instances::instances_num | ( | ) | const |
Definition at line 408 of file instances.cc.
Definition at line 196 of file instances.cc.
Definition at line 206 of file instances.cc.
| bool blender::bke::Instances::owns_direct_data | ( | ) | const |
Definition at line 418 of file instances.cc.
| Span< int > blender::bke::Instances::reference_handles | ( | ) | const |
Definition at line 222 of file instances.cc.
Definition at line 229 of file instances.cc.
| Span< int > blender::bke::Instances::reference_user_counts | ( | ) | const |
Get cached user counts for every reference.
Definition at line 503 of file instances.cc.
| Span< InstanceReference > blender::bke::Instances::references | ( | ) | const |
Definition at line 290 of file instances.cc.
Definition at line 295 of file instances.cc.
| int blender::bke::Instances::references_num | ( | ) | const |
Definition at line 413 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 300 of file instances.cc.
Definition at line 326 of file instances.cc.
| void blender::bke::Instances::resize | ( | int | size | ) |
Resize the transform, handles, and attributes to the specified capacity.
Definition at line 216 of file instances.cc.
|
inline |
Definition at line 222 of file BKE_instances.hh.
| Span< float4x4 > blender::bke::Instances::transforms | ( | ) | const |
Definition at line 235 of file instances.cc.
Definition at line 242 of file instances.cc.
| Span< int > blender::bke::Instances::unique_ids | ( | ) | const |
Get an id for every instance. These can be used e.g. motion blur. This is based on the "id" attribute but makes sure that the ids are actually unique.
Definition at line 520 of file instances.cc.