|
Blender V5.0
|
#include <BKE_attribute.hh>
Public Member Functions | |
| AttributeIter (const StringRefNull name, const AttrDomain domain, const AttrType 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 AttrType 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< AttrType > data_type) const |
Public Attributes | |
| StringRefNull | name |
| AttrDomain | domain |
| AttrType | 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 426 of file BKE_attribute.hh.
|
inline |
Definition at line 439 of file BKE_attribute.hh.
|
inline |
Get read-only access to the current attribute. This method always succeeds.
Definition at line 459 of file BKE_attribute.hh.
|
inline |
Definition at line 467 of file BKE_attribute.hh.
|
inline |
Definition at line 472 of file BKE_attribute.hh.
|
inline |
Definition at line 478 of file BKE_attribute.hh.
| GAttributeReader blender::bke::AttributeIter::get | ( | std::optional< AttrDomain > | domain, |
| std::optional< AttrType > | data_type ) const |
Same as above, but may perform type and domain interpolation. This may return none.
Definition at line 726 of file attribute_access.cc.
|
inline |
Definition at line 453 of file BKE_attribute.hh.
|
inline |
Stops the iteration. Remaining attributes will be skipped.
Definition at line 448 of file BKE_attribute.hh.
|
mutable |
Definition at line 432 of file BKE_attribute.hh.
Definition at line 430 of file BKE_attribute.hh.
Definition at line 429 of file BKE_attribute.hh.
Definition at line 431 of file BKE_attribute.hh.
Definition at line 428 of file BKE_attribute.hh.