|
Blender V5.0
|
#include <FN_field.hh>
Inherits blender::NonMovable, and blender::NonCopyable.
Public Member Functions | |
| FieldEvaluator (const FieldContext &context, const IndexMask *mask) | |
| FieldEvaluator (const FieldContext &context, const int64_t size) | |
| ~FieldEvaluator () | |
| void | set_selection (Field< bool > selection) |
| template<typename T> | |
| int | add_with_destination (Field< T > field, VMutableArray< T > dst) |
| template<typename T> | |
| int | add_with_destination (Field< T > field, MutableSpan< T > dst) |
| template<typename T> | |
| int | add (Field< T > field, VArray< T > *varray_ptr) |
| const GVArray & | get_evaluated (const int field_index) const |
| template<typename T> | |
| VArray< T > | get_evaluated (const int field_index) |
#FieldEvaluator | |
| int | add_with_destination (GField field, GVMutableArray dst) |
| int | add_with_destination (GField field, GMutableSpan dst) |
| int | add (GField field, GVArray *varray_ptr) |
| int | add (GField field) |
| void | evaluate () |
| IndexMask | get_evaluated_selection_as_mask () const |
| IndexMask | get_evaluated_as_mask (int field_index) |
Utility class that makes it easier to evaluate fields.
Definition at line 336 of file FN_field.hh.
|
inline |
Takes mask by pointer because the mask has to live longer than the evaluator.
Definition at line 358 of file FN_field.hh.
|
inline |
Construct a field evaluator for all indices less than size.
Definition at line 364 of file FN_field.hh.
|
inline |
Definition at line 369 of file FN_field.hh.
|
inline |
| field | Field to add to the evaluator. |
| varray_ptr | Once evaluate is called, the resulting virtual array will be will be assigned to the given position. |
Definition at line 427 of file FN_field.hh.
| int blender::fn::FieldEvaluator::add | ( | GField | field | ) |
| int blender::fn::FieldEvaluator::add | ( | GField | field, |
| GVArray * | varray_ptr ) |
|
inline |
| field | Field to add to the evaluator. |
| dst | Mutable span that the evaluated result for this field is be written into. |
Definition at line 414 of file FN_field.hh.
|
inline |
Same as add_with_destination but typed.
Definition at line 395 of file FN_field.hh.
| int blender::fn::FieldEvaluator::add_with_destination | ( | GField | field, |
| GMutableSpan | dst ) |
| int blender::fn::FieldEvaluator::add_with_destination | ( | GField | field, |
| GVMutableArray | dst ) |
|
inline |
Definition at line 454 of file FN_field.hh.
|
inline |
Definition at line 448 of file FN_field.hh.
| IndexMask blender::fn::FieldEvaluator::get_evaluated_as_mask | ( | int | field_index | ) |
|
inline |
The selection field is evaluated first to determine which indices of the other fields should be evaluated. Calling this method multiple times will just replace the previously set selection field. Only the elements selected by both this selection and the selection provided in the constructor are calculated. If no selection field is set, it is assumed that all indices passed to the constructor are selected.
Definition at line 383 of file FN_field.hh.