|
Blender
V2.93
|
#include <BKE_geometry_set.hh>
Inherits GeometryComponent.
Static Public Attributes | |
| static constexpr GeometryComponentType | static_type = GEO_COMPONENT_TYPE_INSTANCES |
Additional Inherited Members | |
Static Public Member Functions inherited from GeometryComponent | |
| static GeometryComponent * | create (GeometryComponentType component_type) |
A geometry component that stores instances.
Definition at line 428 of file BKE_geometry_set.hh.
| InstancesComponent::InstancesComponent | ( | ) |
Definition at line 38 of file geometry_component_instances.cc.
Referenced by copy().
|
default |
| void InstancesComponent::add_instance | ( | Collection * | collection, |
| blender::float4x4 | transform, | ||
| const int | id = -1 |
||
| ) |
Definition at line 66 of file geometry_component_instances.cc.
References add_instance(), data, INSTANCE_DATA_TYPE_COLLECTION, and transform().
| void InstancesComponent::add_instance | ( | InstancedData | data, |
| blender::float4x4 | transform, | ||
| const int | id = -1 |
||
| ) |
Definition at line 74 of file geometry_component_instances.cc.
References blender::Vector< T, InlineBufferCapacity, Allocator >::append(), data, and transform().
| void InstancesComponent::add_instance | ( | Object * | object, |
| blender::float4x4 | transform, | ||
| const int | id = -1 |
||
| ) |
Definition at line 58 of file geometry_component_instances.cc.
References data, INSTANCE_DATA_TYPE_OBJECT, and transform().
Referenced by add_instance(), blender::nodes::add_instances_from_geometry_component(), blender::nodes::geo_node_collection_info_exec(), blender::nodes::geo_node_object_info_exec(), and blender::nodes::join_components().
| blender::Span< int > InstancesComponent::almost_unique_ids | ( | ) | const |
Definition at line 178 of file geometry_component_instances.cc.
References generate_unique_instance_ids(), blender::Array< T, InlineBufferCapacity, Allocator >::size(), and blender::Vector< T, InlineBufferCapacity, Allocator >::size().
| void InstancesComponent::clear | ( | ) |
Definition at line 51 of file geometry_component_instances.cc.
References blender::Vector< T, InlineBufferCapacity, Allocator >::clear().
|
overridevirtual |
Implements GeometryComponent.
Definition at line 42 of file geometry_component_instances.cc.
References InstancesComponent().
|
overridevirtual |
Implements GeometryComponent.
Definition at line 120 of file geometry_component_instances.cc.
References BLI_assert, and GeometryComponent::is_mutable().
| Span< int > InstancesComponent::ids | ( | ) | const |
Definition at line 91 of file geometry_component_instances.cc.
| Span< InstancedData > InstancesComponent::instanced_data | ( | ) | const |
Definition at line 81 of file geometry_component_instances.cc.
Referenced by blender::bke::geometry_set_collect_recursive(), blender::ed::spreadsheet::InstancesDataSource::get_column_values(), and blender::bke::instances_attribute_foreach_recursive().
| int InstancesComponent::instances_amount | ( | ) | const |
Definition at line 101 of file geometry_component_instances.cc.
References BLI_assert, blender::Vector< T, InlineBufferCapacity, Allocator >::size(), and size().
Referenced by blender::ed::spreadsheet::InstancesDataSource::foreach_default_column_ids(), and blender::ed::spreadsheet::InstancesDataSource::get_column_values().
|
finalvirtual |
Reimplemented from GeometryComponent.
Definition at line 108 of file geometry_component_instances.cc.
References blender::Vector< T, InlineBufferCapacity, Allocator >::size().
|
overridevirtual |
Implements GeometryComponent.
Definition at line 113 of file geometry_component_instances.cc.
| MutableSpan< float4x4 > InstancesComponent::transforms | ( | ) |
Definition at line 96 of file geometry_component_instances.cc.
Definition at line 86 of file geometry_component_instances.cc.
Referenced by blender::bke::geometry_set_collect_recursive(), and blender::nodes::transform_instances().
|
inlinestaticconstexpr |
Definition at line 464 of file BKE_geometry_set.hh.