|
Blender V5.0
|
#include <BKE_attribute_filter.hh>
Inherited by blender::bke::AttributeFilterFromFunc< Fn >, blender::bke::ProcessAllAttributeExceptAnonymous, and blender::nodes::NodeAttributeFilter.
Public Types | |
| enum class | Result { AllowSkip , Process } |
Public Member Functions | |
| virtual | ~AttributeFilter ()=default |
| virtual Result | filter (const StringRef) const |
| bool | allow_skip (const StringRef name) const |
Static Public Member Functions | |
| static const AttributeFilter & | default_filter () |
Many geometry algorithms need to deal with attributes. For example, the Subdivide Curves code has to properly interpolate attributes to the intermediate points. However, sometimes certain attributes are not necessary after the operation anymore, so they can just be skipped for optimization purposes. This is where AttributeFilter comes in. It allows the caller to specify which attributes should be processed and which should be ignored.
Definition at line 26 of file BKE_attribute_filter.hh.
|
strong |
| Enumerator | |
|---|---|
| AllowSkip | The algorithm is allowed to skip processing the attribute. |
| Process | The attribute should be processed/propagated if at all possible. |
Definition at line 28 of file BKE_attribute_filter.hh.
|
virtualdefault |
|
inline |
Utility to simplify the check for whether some attribute can be skipped.
Definition at line 49 of file BKE_attribute_filter.hh.
|
inlinestatic |
Definition at line 54 of file BKE_attribute_filter.hh.
|
inlinevirtual |
This function has different implementations in each derived class. By default, all attributes should be processed.
Definition at line 41 of file BKE_attribute_filter.hh.