#include <BKE_geometry_set.hh>
Inherits blender::ImplicitSharingMixin.
Inherited by blender::bke::CurveComponent, blender::bke::GeometryComponentEditData, blender::bke::GreasePencilComponent, blender::bke::InstancesComponent, blender::bke::MeshComponent, blender::bke::PointCloudComponent, and blender::bke::VolumeComponent.
This is the base class for specialized geometry component types. A geometry component uses implicit sharing to avoid read-only copies. It also integrates with attribute API, which generalizes storing and modifying generic information on a geometry.
Definition at line 64 of file BKE_geometry_set.hh.
◆ Type
Each geometry component has a specific type. The type determines what kind of data the component stores. Functions modifying a geometry will usually just modify a subset of the component types.
- Note
- These values are stored in files, so they should not be reordered.
| Enumerator |
|---|
| Mesh | |
| PointCloud | |
| Instance | |
| Volume | |
| Curve | |
| Edit | |
| GreasePencil | |
Definition at line 72 of file BKE_geometry_set.hh.
◆ GeometryComponent()
| blender::bke::GeometryComponent::GeometryComponent |
( |
Type | type | ) |
|
◆ ~GeometryComponent()
| virtual blender::bke::GeometryComponent::~GeometryComponent |
( |
| ) |
|
|
virtualdefault |
◆ attribute_domain_size()
| int blender::bke::GeometryComponent::attribute_domain_size |
( |
AttrDomain | domain | ) |
const |
◆ attributes()
| std::optional< AttributeAccessor > blender::bke::GeometryComponent::attributes |
( |
| ) |
const |
|
virtual |
Get access to the attributes in this geometry component. May return none if the geometry does not support the attribute system.
Definition at line 76 of file geometry_set.cc.
◆ attributes_for_write()
| std::optional< MutableAttributeAccessor > blender::bke::GeometryComponent::attributes_for_write |
( |
| ) |
|
|
virtual |
◆ clear()
| virtual void blender::bke::GeometryComponent::clear |
( |
| ) |
|
|
pure virtual |
Remove referenced data from the geometry component.
◆ copy()
Copies the component. The returned component only has a single user and is therefor mutable.
◆ count_memory()
| void blender::bke::GeometryComponent::count_memory |
( |
MemoryCounter & | memory | ) |
const |
|
virtual |
◆ create()
◆ ensure_owns_direct_data()
| virtual void blender::bke::GeometryComponent::ensure_owns_direct_data |
( |
| ) |
|
|
pure virtual |
◆ is_empty()
| bool blender::bke::GeometryComponent::is_empty |
( |
| ) |
const |
|
virtual |
◆ owns_direct_data()
| virtual bool blender::bke::GeometryComponent::owns_direct_data |
( |
| ) |
const |
|
pure virtual |
◆ type()
The documentation for this class was generated from the following files: