|
Blender V4.3
|
#include <BKE_attribute.hh>
Public Member Functions | |
| AttributeIter (const StringRefNull name, const AttrDomain domain, const eCustomDataType data_type, const FunctionRef< GAttributeReader()> get_fn) | |
| void | stop () const |
| bool | is_stopped () const |
| GAttributeReader | get () const |
| GAttributeReader | get (const AttrDomain domain) const |
| GAttributeReader | get (const eCustomDataType data_type) const |
| template<typename T> | |
| AttributeReader< T > | get (const std::optional< AttrDomain > domain=std::nullopt) const |
Attribute API | |
| GAttributeReader | get (std::optional< AttrDomain > domain, std::optional< eCustomDataType > data_type) const |
Public Attributes | |
| StringRefNull | name |
| AttrDomain | domain |
| eCustomDataType | data_type |
| bool | is_builtin = false |
| const AttributeAccessor * | accessor = nullptr |
This is used when iterating over attributes, e.g. with #foreach_attribute. It contains meta-data for the current attribute and provides easy access to the actual attribute data.
Definition at line 394 of file BKE_attribute.hh.
|
inline |
Definition at line 407 of file BKE_attribute.hh.
|
inline |
Get read-only access to the current attribute. This method always succeeds.
Definition at line 427 of file BKE_attribute.hh.
|
inline |
Definition at line 436 of file BKE_attribute.hh.
|
inline |
Definition at line 441 of file BKE_attribute.hh.
|
inline |
Definition at line 447 of file BKE_attribute.hh.
| GAttributeReader blender::bke::AttributeIter::get | ( | std::optional< AttrDomain > | domain, |
| std::optional< eCustomDataType > | data_type ) const |
Same as above, but may perform type and domain interpolation. This may return none.
Definition at line 627 of file attribute_access.cc.
|
inline |
Definition at line 421 of file BKE_attribute.hh.
|
inline |
Stops the iteration. Remaining attributes will be skipped.
Definition at line 416 of file BKE_attribute.hh.
|
mutable |
Definition at line 400 of file BKE_attribute.hh.
| eCustomDataType blender::bke::AttributeIter::data_type |
Definition at line 398 of file BKE_attribute.hh.
| AttrDomain blender::bke::AttributeIter::domain |
Definition at line 397 of file BKE_attribute.hh.
| bool blender::bke::AttributeIter::is_builtin = false |
Definition at line 399 of file BKE_attribute.hh.
| StringRefNull blender::bke::AttributeIter::name |
Definition at line 396 of file BKE_attribute.hh.