|
Blender V5.0
|
#include <BKE_geometry_set.hh>
Inherits blender::bke::GeometryComponent.
Static Public Attributes | |
| static constexpr GeometryComponent::Type | static_type = Type::Instance |
Additional Inherited Members | |
| Public Types inherited from blender::bke::GeometryComponent | |
| enum class | Type { Mesh = 0 , PointCloud = 1 , Instance = 2 , Volume = 3 , Curve = 4 , Edit = 5 , GreasePencil = 6 } |
| static GeometryComponentPtr | create (Type component_type) |
A geometry component that stores Instances.
Definition at line 641 of file BKE_geometry_set.hh.
| blender::bke::InstancesComponent::InstancesComponent | ( | ) |
Definition at line 16 of file geometry_component_instances.cc.
References blender::bke::GeometryComponent::GeometryComponent().
Referenced by copy().
| blender::bke::InstancesComponent::InstancesComponent | ( | Instances * | instances, |
| GeometryOwnershipType | ownership = GeometryOwnershipType::Owned ) |
Definition at line 18 of file geometry_component_instances.cc.
References blender::bke::GeometryComponent::GeometryComponent().
|
override |
Definition at line 23 of file geometry_component_instances.cc.
References clear().
|
finalvirtual |
Get access to the attributes in this geometry component. May return none if the geometry does not support the attribute system.
Reimplemented from blender::bke::GeometryComponent.
Definition at line 110 of file geometry_component_instances.cc.
References blender::bke::instance_attribute_accessor_functions().
Referenced by find_geonode_attribute_rgba().
|
finalvirtual |
Reimplemented from blender::bke::GeometryComponent.
Definition at line 115 of file geometry_component_instances.cc.
References blender::bke::instance_attribute_accessor_functions().
|
overridevirtual |
Remove referenced data from the geometry component.
Implements blender::bke::GeometryComponent.
Definition at line 38 of file geometry_component_instances.cc.
References BLI_assert, blender::ImplicitSharingInfo::is_expired(), blender::ImplicitSharingInfo::is_mutable(), and blender::bke::Owned.
Referenced by replace(), and ~InstancesComponent().
|
overridevirtual |
Copies the component. The returned component only has a single user and is therefor mutable.
Implements blender::bke::GeometryComponent.
Definition at line 28 of file geometry_component_instances.cc.
References InstancesComponent(), and blender::bke::Owned.
Referenced by blender::geometry::realize_instances().
|
overridevirtual |
Reimplemented from blender::bke::GeometryComponent.
Definition at line 103 of file geometry_component_instances.cc.
|
overridevirtual |
Implements blender::bke::GeometryComponent.
Definition at line 65 of file geometry_component_instances.cc.
| const Instances * blender::bke::InstancesComponent::get | ( | ) | const |
Definition at line 72 of file geometry_component_instances.cc.
Referenced by blender::io::usd::USDPointInstancerWriter::do_write(), blender::geometry::execute_instances_tasks(), blender::ed::spreadsheet::GeometryDataSource::get_column_values(), blender::bke::GeometrySet::get_instances(), blender::bke::GeometrySet::has_instances(), and blender::nodes::node_geo_split_to_instances_cc::split_instance_groups().
| Instances * blender::bke::InstancesComponent::get_for_write | ( | ) |
Definition at line 77 of file geometry_component_instances.cc.
References BLI_assert, blender::ImplicitSharingInfo::is_mutable(), blender::bke::Owned, and blender::bke::ReadOnly.
Referenced by blender::nodes::node_geo_curve_fill_cc::curve_fill_calculate(), and blender::bke::GeometrySet::get_instances_for_write().
|
finalvirtual |
Reimplemented from blender::bke::GeometryComponent.
Definition at line 47 of file geometry_component_instances.cc.
|
overridevirtual |
Implements blender::bke::GeometryComponent.
Definition at line 57 of file geometry_component_instances.cc.
| Instances * blender::bke::InstancesComponent::release | ( | ) |
Definition at line 95 of file geometry_component_instances.cc.
References BLI_assert, and blender::ImplicitSharingInfo::is_mutable().
Referenced by blender::nodes::node_geo_curve_to_mesh_cc::grease_pencil_to_mesh(), and blender::nodes::node_geo_curve_to_points_cc::layer_pointclouds_to_instances().
| void blender::bke::InstancesComponent::replace | ( | Instances * | instances, |
| GeometryOwnershipType | ownership = GeometryOwnershipType::Owned ) |
Definition at line 87 of file geometry_component_instances.cc.
References BLI_assert, clear(), and blender::ImplicitSharingInfo::is_mutable().
Referenced by blender::nodes::node_geo_curve_fill_cc::curve_fill_calculate(), blender::nodes::node_geo_curve_to_mesh_cc::grease_pencil_to_mesh(), blender::nodes::node_geo_curve_to_points_cc::layer_pointclouds_to_instances(), blender::geometry::propagate_instances_to_keep(), and blender::bke::GeometrySet::replace_instances().
|
staticconstexpr |
Definition at line 673 of file BKE_geometry_set.hh.