|
Blender V5.0
|
#include <BKE_instances.hh>
Public Types | |
| enum class | Type { None , Object , Collection , GeometrySet } |
Public Member Functions | |
| InstanceReference ()=default | |
| InstanceReference (GeometrySet geometry_set) | |
| InstanceReference (const InstanceReference &other) | |
| void | to_geometry_set (GeometrySet &r_geometry_set) const |
| StringRefNull | name () const |
| bool | owns_direct_data () const |
| void | ensure_owns_direct_data () |
| void | count_memory (MemoryCounter &memory) const |
| uint64_t | hash () const |
#InstanceReference Inline Methods | |
| InstanceReference (Object &object) | |
| InstanceReference (Collection &collection) | |
| InstanceReference (std::unique_ptr< GeometrySet > geometry_set) | |
| InstanceReference (InstanceReference &&other) | |
| InstanceReference & | operator= (const InstanceReference &other) |
| InstanceReference & | operator= (InstanceReference &&other) |
| Type | type () const |
| Object & | object () const |
| Collection & | collection () const |
| GeometrySet & | geometry_set () |
| const GeometrySet & | geometry_set () const |
Friends | |
| bool | operator== (const InstanceReference &a, const InstanceReference &b) |
Holds a reference to conceptually unique geometry or a pointer to object/collection data that is instanced with a transform in Instances.
Definition at line 53 of file BKE_instances.hh.
|
strong |
| Enumerator | |
|---|---|
| None | An empty instance. This allows an InstanceReference to be default constructed without being in an invalid state. There might also be other use cases that we haven't explored much yet (such as changing the instance later on, and "disabling" some instances). |
| Object | |
| Collection | |
| GeometrySet | |
Definition at line 55 of file BKE_instances.hh.
|
inline |
Definition at line 244 of file BKE_instances.hh.
|
inline |
Definition at line 248 of file BKE_instances.hh.
| blender::bke::InstanceReference::InstanceReference | ( | GeometrySet | geometry_set | ) |
Definition at line 21 of file instances.cc.
|
inline |
Definition at line 239 of file BKE_instances.hh.
| blender::bke::InstanceReference::InstanceReference | ( | const InstanceReference & | other | ) |
Definition at line 27 of file instances.cc.
|
inline |
Definition at line 253 of file BKE_instances.hh.
|
inline |
Definition at line 291 of file BKE_instances.hh.
| void blender::bke::InstanceReference::count_memory | ( | MemoryCounter & | memory | ) | const |
Definition at line 52 of file instances.cc.
Definition at line 35 of file instances.cc.
|
inline |
Definition at line 297 of file BKE_instances.hh.
|
inline |
Definition at line 303 of file BKE_instances.hh.
Definition at line 143 of file instances.cc.
Definition at line 120 of file instances.cc.
|
inline |
Definition at line 285 of file BKE_instances.hh.
|
inline |
Definition at line 260 of file BKE_instances.hh.
|
inline |
Definition at line 270 of file BKE_instances.hh.
| bool blender::bke::InstanceReference::owns_direct_data | ( | ) | const |
Definition at line 43 of file instances.cc.
| void blender::bke::InstanceReference::to_geometry_set | ( | GeometrySet & | r_geometry_set | ) | const |
Converts the instance reference to a geometry set, even if it was an object or collection before.
Definition at line 94 of file instances.cc.
|
inline |
Definition at line 280 of file BKE_instances.hh.
|
friend |
Definition at line 135 of file instances.cc.