|
Blender V5.3
|
#include <BKE_geometry_fields.hh>
Inherits blender::fn::multi_function::MultiFunction.
Public Member Functions | |
| SampleIndexFunction (GeometrySet geometry, fn::GField src_field, AttrDomain domain) | |
| void | prepare_for_execution () const override |
| void | call (const IndexMask &mask, mf::Params params, mf::Context) const override |
| void | hash_unique (UniqueHashBytes &hash) const override |
| Public Member Functions inherited from blender::fn::multi_function::MultiFunction | |
| virtual | ~MultiFunction ()=default |
| void | call_auto (const IndexMask &mask, Params params, Context context) const |
| virtual void | call (const IndexMask &mask, Params params, Context context) const =0 |
| virtual bool | equals (const MultiFunction &other) const |
| int | param_amount () const |
| IndexRange | param_indices () const |
| ParamType | param_type (int param_index) const |
| StringRefNull | param_name (int param_index) const |
| StringRefNull | name () const |
| virtual std::string | debug_name () const |
| const Signature & | signature () const |
| ExecutionHints | execution_hints () const |
Static Public Member Functions | |
| static const GeometryComponent * | find_source_component (const GeometrySet &geometry, AttrDomain domain) |
Additional Inherited Members | |
| Protected Member Functions inherited from blender::fn::multi_function::MultiFunction | |
| void | set_signature (const Signature *signature) |
| virtual ExecutionHints | get_execution_hints () const |
Definition at line 480 of file BKE_geometry_fields.hh.
| blender::bke::SampleIndexFunction::SampleIndexFunction | ( | GeometrySet | geometry, |
| fn::GField | src_field, | ||
| AttrDomain | domain ) |
Definition at line 707 of file geometry_fields.cc.
|
override |
|
static |
Definition at line 687 of file geometry_fields.cc.
References blender::bke::component_is_available(), blender::bke::GeometryComponent::Curve, blender::bke::GeometryComponent::GreasePencil, blender::bke::GeometryComponent::Instance, blender::bke::GeometryComponent::Mesh, and blender::bke::GeometryComponent::PointCloud.
Referenced by hash_unique(), blender::nodes::node_geo_sample_index_cc::node_geo_exec(), and prepare_for_execution().
|
overridevirtual |
Reimplemented from blender::fn::multi_function::MultiFunction.
Definition at line 756 of file geometry_fields.cc.
References blender::fn::FieldHashDeep::ensure(), find_source_component(), and hash.
|
overridevirtual |
For performance reasons it might make sense to delay construction of data inside the node until we can be sure that the function will be evaluated. This method should be called before execution. The work must be protected by a lock though, since it may be called from multiple threads.
Reimplemented from blender::fn::multi_function::MultiFunction.
Definition at line 720 of file geometry_fields.cc.
References blender::bke::GeometryComponent::attribute_domain_size(), find_source_component(), and blender::bke::GeometryFieldContext::GeometryFieldContext().