|
Blender V5.3
|
#include <FN_field.hh>
Inherits blender::blender::ImplicitSharingMixin.
Inherited by blender::bke::CurvesFieldInput, blender::bke::GeometryFieldInput, blender::bke::InstancesFieldInput, blender::bke::MeshFieldInput, blender::bke::PointCloudFieldInput, blender::bke::bake::DeferredTypeAttributeFieldInput, blender::fn::IndexFieldInput, and blender::fn::tests::IndexFieldInput.
Public Member Functions | |
| FieldInput (const CPPType &type, std::string debug_name="") | |
| ~FieldInput () override | |
| const FieldInputsPtr & | field_inputs () const |
| uint64_t | hash () const |
| virtual void | hash_unique (UniqueHashBytes &hash, FieldHashDeep &deep_hash_cache) const |
| virtual void | foreach_recursive_field (FunctionRef< void(const GField &)> fn) const |
| virtual GVArray | get_varray_for_context (const FieldContext &context, const IndexMask &mask, ResourceScope &scope) const=0 |
| void | delete_self () override |
Inline Methods | |
| StringRefNull | debug_name () const |
| virtual std::string | socket_inspection_name () const |
| const CPPType & | cpp_type () const |
| Public Member Functions inherited from blender::blender::ImplicitSharingInfo | |
| virtual | ~ImplicitSharingInfo () |
| bool | is_mutable () const |
| bool | is_expired () const |
| void | add_user () const |
| void | add_weak_user () const |
| void | tag_ensured_mutable () const |
| int64_t | version () const |
| int | strong_users () const |
| void | remove_user_and_delete_if_last () const |
| void | remove_weak_user_and_delete_if_last () const |
Protected Attributes | |
| const CPPType * | type_ |
| std::string | debug_name_ |
| CacheMutex | field_inputs_mutex_ |
| FieldInputsPtr | field_inputs_ |
This is an abstract class which concrete field inputs have to derive from. When a field is evaluated, this can provide values based on the provided context.
Since there is no better way yet, FieldInput is also often used to process the output of intermediate fields, in which case this is not technically an "input".
Definition at line 339 of file FN_field.hh.
| blender::fn::FieldInput::FieldInput | ( | const CPPType & | type, |
| std::string | debug_name = "" ) |
|
overridedefault |
|
inline |
Definition at line 559 of file FN_field.hh.
|
inline |
Definition at line 569 of file FN_field.hh.
|
overridevirtual |
Implements blender::blender::ImplicitSharingMixin.
| const FieldInputsPtr & blender::fn::FieldInput::field_inputs | ( | ) | const |
|
virtual |
If this FieldInput depends on other fields, this function should be overridden.
|
pure virtual |
Output a virtual array for the given index mask in the given context.
| uint64_t blender::fn::FieldInput::hash | ( | ) | const |
|
virtual |
|
inlinevirtual |
Definition at line 574 of file FN_field.hh.
|
protected |
Definition at line 342 of file FN_field.hh.
|
mutableprotected |
Definition at line 349 of file FN_field.hh.
|
mutableprotected |
Field inputs are initialized lazily because it can't be done in the constructor because the derived class constructor has not run yet.
Definition at line 348 of file FN_field.hh.
|
protected |
Definition at line 341 of file FN_field.hh.