|
Blender V5.0
|
#include <BKE_geometry_set.hh>
Inherits blender::bke::GeometryComponent.
Static Public Attributes | |
| static constexpr GeometryComponent::Type | static_type = Type::Volume |
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 volume grids, corresponding to the Volume data structure. This component does not implement an attribute API, partly because storage of sparse volume information in grids is much more complicated than it is for other types
Definition at line 681 of file BKE_geometry_set.hh.
Definition at line 15 of file geometry_component_volume.cc.
|
override |
Definition at line 17 of file geometry_component_volume.cc.
|
overridevirtual |
Remove referenced data from the geometry component.
Implements blender::bke::GeometryComponent.
Definition at line 32 of file geometry_component_volume.cc.
|
overridevirtual |
Copies the component. The returned component only has a single user and is therefor mutable.
Implements blender::bke::GeometryComponent.
Definition at line 22 of file geometry_component_volume.cc.
|
overridevirtual |
Reimplemented from blender::bke::GeometryComponent.
Definition at line 95 of file geometry_component_volume.cc.
|
overridevirtual |
Implements blender::bke::GeometryComponent.
Definition at line 84 of file geometry_component_volume.cc.
| const Volume * blender::bke::VolumeComponent::get | ( | ) | const |
Get the volume from this component. This method can be used by multiple threads at the same time. Therefore, the returned volume should not be modified. No ownership is transferred.
Definition at line 64 of file geometry_component_volume.cc.
Get the volume from this component. This method can only be used when the component is mutable, i.e. it is not shared. The returned volume can be modified. No ownership is transferred.
Definition at line 69 of file geometry_component_volume.cc.
| bool blender::bke::VolumeComponent::has_volume | ( | ) | const |
Definition at line 43 of file geometry_component_volume.cc.
|
overridevirtual |
Implements blender::bke::GeometryComponent.
Definition at line 79 of file geometry_component_volume.cc.
Return the volume and clear the component. The caller takes over responsibility for freeing the volume (if the component was responsible before).
Definition at line 56 of file geometry_component_volume.cc.
| void blender::bke::VolumeComponent::replace | ( | Volume * | volume, |
| GeometryOwnershipType | ownership = GeometryOwnershipType::Owned ) |
Clear the component and replace it with the new volume.
Definition at line 48 of file geometry_component_volume.cc.
|
staticconstexpr |
Definition at line 720 of file BKE_geometry_set.hh.