|
Blender V5.3
|
#include <BKE_geometry_set.hh>
Inherits blender::bke::GeometryComponent.
Public Member Functions | |
Geometry Component Implementation | |
| VolumeComponent () | |
| ~VolumeComponent () override | |
| GeometryComponentPtr | copy () const override |
| void | clear () override |
| bool | has_volume () const |
| void | replace (Volume *volume, GeometryOwnershipType ownership=GeometryOwnershipType::Owned) |
| Volume * | release () |
| const Volume * | get () const |
| Volume * | get_for_write () |
| bool | owns_direct_data () const override |
| void | ensure_owns_direct_data () override |
| void | count_memory (MemoryCounter &memory) const override |
| Public Member Functions inherited from blender::bke::GeometryComponent | |
| ~GeometryComponent () override=default | |
| GeometryComponent (Type type) | |
| int | attribute_domain_size (AttrDomain domain) const |
| virtual std::optional< AttributeAccessor > | attributes () const |
| virtual std::optional< MutableAttributeAccessor > | attributes_for_write () |
| Type | type () const |
| virtual bool | is_empty () const |
| Public Member Functions inherited from blender::blender::ImplicitSharingInfo | |
| virtual | ~ImplicitSharingInfo () |
| bool | is_mutable () const |
| bool | is_expired () const |
| void | add_user () const |
| void | add_weak_user () const |
| void | tag_ensured_mutable () const |
| int64_t | version () const |
| int | strong_users () const |
| void | remove_user_and_delete_if_last () const |
| void | remove_weak_user_and_delete_if_last () const |
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 700 of file BKE_geometry_set.hh.
Definition at line 19 of file geometry_component_volume.cc.
|
override |
Definition at line 21 of file geometry_component_volume.cc.
|
overridevirtual |
Remove referenced data from the geometry component.
Implements blender::bke::GeometryComponent.
Definition at line 36 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 26 of file geometry_component_volume.cc.
|
overridevirtual |
Reimplemented from blender::bke::GeometryComponent.
Definition at line 99 of file geometry_component_volume.cc.
|
overridevirtual |
Implements blender::bke::GeometryComponent.
Definition at line 88 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 68 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 73 of file geometry_component_volume.cc.
| bool blender::bke::VolumeComponent::has_volume | ( | ) | const |
Definition at line 47 of file geometry_component_volume.cc.
|
overridevirtual |
Implements blender::bke::GeometryComponent.
Definition at line 83 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 60 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 52 of file geometry_component_volume.cc.
|
staticconstexpr |
Definition at line 739 of file BKE_geometry_set.hh.