Blender  V2.93
Static Public Attributes | List of all members
PointCloudComponent Class Reference

#include <BKE_geometry_set.hh>

Inherits GeometryComponent.

Public Member Functions

Geometry Component Implementation
 PointCloudComponent ()
 
 ~PointCloudComponent ()
 
GeometryComponentcopy () const override
 
void clear ()
 
bool has_pointcloud () const
 
void replace (PointCloud *pointcloud, GeometryOwnershipType ownership=GeometryOwnershipType::Owned)
 
PointCloudrelease ()
 
const PointCloudget_for_read () const
 
PointCloudget_for_write ()
 
bool is_empty () const final
 
bool owns_direct_data () const override
 
void ensure_owns_direct_data () override
 
- Public Member Functions inherited from GeometryComponent
virtual ~GeometryComponent ()=default
 
template<typename T >
blender::bke::TypedReadAttribute< Tattribute_get_for_read (const blender::StringRef attribute_name, const AttributeDomain domain, const T &default_value) const
 
template<typename T >
blender::bke::TypedReadAttribute< Tattribute_get_constant_for_read (const AttributeDomain domain, const T &value) const
 
 GeometryComponent (GeometryComponentType type)
 
void user_add () const
 
void user_remove () const
 
bool is_mutable () const
 
GeometryComponentType type () const
 
bool attribute_exists (const blender::StringRef attribute_name) const
 
bool attribute_domain_supported (const AttributeDomain domain) const
 
blender::bke::ReadAttributePtr attribute_try_get_for_read (const blender::StringRef attribute_name) const
 
blender::bke::WriteAttributePtr attribute_try_get_for_write (const blender::StringRef attribute_name)
 
virtual blender::bke::ReadAttributePtr attribute_try_adapt_domain (blender::bke::ReadAttributePtr attribute, const AttributeDomain new_domain) const
 
bool attribute_try_delete (const blender::StringRef attribute_name)
 
bool attribute_try_create (const blender::StringRef attribute_name, const AttributeDomain domain, const CustomDataType data_type)
 
blender::Set< std::string > attribute_names () const
 
bool attribute_foreach (const AttributeForeachCallback callback) const
 
blender::bke::ReadAttributePtr attribute_try_get_for_read (const blender::StringRef attribute_name, const AttributeDomain domain, const CustomDataType data_type) const
 
blender::bke::ReadAttributePtr attribute_try_get_for_read (const blender::StringRef attribute_name, const AttributeDomain domain) const
 
blender::bke::ReadAttributePtr attribute_get_for_read (const blender::StringRef attribute_name, const AttributeDomain domain, const CustomDataType data_type, const void *default_value) const
 
blender::bke::ReadAttributePtr attribute_get_constant_for_read (const AttributeDomain domain, const CustomDataType data_type, const void *value) const
 
blender::bke::ReadAttributePtr attribute_get_constant_for_read_converted (const AttributeDomain domain, const CustomDataType in_data_type, const CustomDataType out_data_type, const void *value) const
 
OutputAttributePtr attribute_try_get_for_output (const blender::StringRef attribute_name, const AttributeDomain domain, const CustomDataType data_type, const void *default_value=nullptr)
 

Static Public Attributes

static constexpr GeometryComponentType static_type = GEO_COMPONENT_TYPE_POINT_CLOUD
 

Attribute Access

int attribute_domain_size (const AttributeDomain domain) const final
 

Additional Inherited Members

- Static Public Member Functions inherited from GeometryComponent
static GeometryComponentcreate (GeometryComponentType component_type)
 

Detailed Description

A geometry component that stores a point cloud.

Definition at line 395 of file BKE_geometry_set.hh.

Constructor & Destructor Documentation

◆ PointCloudComponent()

PointCloudComponent::PointCloudComponent ( )

Definition at line 30 of file geometry_component_pointcloud.cc.

Referenced by copy().

◆ ~PointCloudComponent()

PointCloudComponent::~PointCloudComponent ( )

Definition at line 34 of file geometry_component_pointcloud.cc.

References clear().

Member Function Documentation

◆ attribute_domain_size()

int PointCloudComponent::attribute_domain_size ( const AttributeDomain  domain) const
finalvirtual

Reimplemented from GeometryComponent.

Definition at line 130 of file geometry_component_pointcloud.cc.

References ATTR_DOMAIN_POINT, and PointCloud::totpoint.

◆ clear()

void PointCloudComponent::clear ( )

◆ copy()

GeometryComponent * PointCloudComponent::copy ( ) const
overridevirtual

◆ ensure_owns_direct_data()

void PointCloudComponent::ensure_owns_direct_data ( )
overridevirtual

◆ get_for_read()

const PointCloud * PointCloudComponent::get_for_read ( ) const

◆ get_for_write()

PointCloud * PointCloudComponent::get_for_write ( )

◆ has_pointcloud()

bool PointCloudComponent::has_pointcloud ( ) const

Definition at line 60 of file geometry_component_pointcloud.cc.

◆ is_empty()

bool PointCloudComponent::is_empty ( ) const
finalvirtual

Reimplemented from GeometryComponent.

Definition at line 105 of file geometry_component_pointcloud.cc.

◆ owns_direct_data()

bool PointCloudComponent::owns_direct_data ( ) const
overridevirtual

Implements GeometryComponent.

Definition at line 110 of file geometry_component_pointcloud.cc.

References Owned.

◆ release()

PointCloud * PointCloudComponent::release ( )

◆ replace()

void PointCloudComponent::replace ( PointCloud pointcloud,
GeometryOwnershipType  ownership = GeometryOwnershipType::Owned 
)

Member Data Documentation

◆ static_type

constexpr GeometryComponentType PointCloudComponent::static_type = GEO_COMPONENT_TYPE_POINT_CLOUD
inlinestaticconstexpr

Definition at line 421 of file BKE_geometry_set.hh.


The documentation for this class was generated from the following files: