Blender V4.3
blender::bke::GeometryFieldInput Class Referenceabstract

#include <BKE_geometry_fields.hh>

Inherits blender::fn::FieldInput.

Inherited by blender::bke::AttributeExistsFieldInput, blender::bke::AttributeFieldInput, blender::bke::EvaluateAtIndexInput, blender::bke::EvaluateOnDomainInput, blender::bke::IDAttributeFieldInput, blender::bke::NamedLayerSelectionFieldInput, blender::bke::NormalFieldInput, blender::nodes::node_geo_accumulate_field_cc::AccumulateFieldInput, blender::nodes::node_geo_accumulate_field_cc::TotalFieldInput, blender::nodes::node_geo_blur_attribute_cc::BlurAttributeFieldInput, blender::nodes::node_geo_curve_endpoint_selection_cc::EndpointFieldInput, blender::nodes::node_geo_curve_topology_points_of_curve_cc::PointsOfCurveInput, blender::nodes::node_geo_index_of_nearest_cc::HasNeighborFieldInput, blender::nodes::node_geo_index_of_nearest_cc::IndexOfNearestFieldInput, blender::nodes::node_geo_input_curve_handles_cc::HandlePositionFieldInput, blender::nodes::node_geo_material_selection_cc::MaterialSelectionFieldInput, blender::nodes::node_geo_offset_point_in_curve_cc::ControlPointNeighborFieldInput, blender::nodes::node_geo_offset_point_in_curve_cc::OffsetValidFieldInput, blender::nodes::node_geo_tool_selection_cc::EditSelectionFieldInput, and blender::nodes::node_geo_tool_selection_cc::SculptSelectionFieldInput.

Public Member Functions

GVArray get_varray_for_context (const fn::FieldContext &context, const IndexMask &mask, ResourceScope &scope) const override
 
virtual GVArray get_varray_for_context (const GeometryFieldContext &context, const IndexMask &mask) const =0
 
virtual std::optional< AttrDomainpreferred_domain (const GeometryComponent &component) const
 
- Public Member Functions inherited from blender::fn::FieldInput
 FieldInput (const CPPType &type, std::string debug_name="")
 
 ~FieldInput ()
 
virtual std::string socket_inspection_name () const
 
blender::StringRef debug_name () const
 
const CPPTypecpp_type () const
 
Category category () const
 
const CPPTypeoutput_cpp_type (int output_index) const override
 
- Public Member Functions inherited from blender::fn::FieldNode
 FieldNode (FieldNodeType node_type)
 
FieldNodeType node_type () const
 
bool depends_on_input () const
 
const std::shared_ptr< const FieldInputs > & field_inputs () const
 
virtual uint64_t hash () const
 
virtual bool is_equal_to (const FieldNode &other) const
 
virtual ~FieldNode ()
 
virtual void for_each_field_input_recursive (FunctionRef< void(const FieldInput &)> fn) const
 

Additional Inherited Members

- Public Types inherited from blender::fn::FieldInput
enum class  Category { NamedAttribute = 0 , Generated = 1 , AnonymousAttribute = 2 , Unknown }
 
- Protected Attributes inherited from blender::fn::FieldInput
const CPPTypetype_
 
std::string debug_name_
 
Category category_ = Category::Unknown
 
- Protected Attributes inherited from blender::fn::FieldNode
std::shared_ptr< const FieldInputsfield_inputs_
 

Detailed Description

Definition at line 216 of file BKE_geometry_fields.hh.

Member Function Documentation

◆ get_varray_for_context() [1/2]

GVArray blender::bke::GeometryFieldInput::get_varray_for_context ( const fn::FieldContext & context,
const IndexMask & mask,
ResourceScope & scope ) const
overridevirtual

Get the value of this specific input based on the given context. The returned virtual array, should live at least as long as the passed in #scope. May return null.

Implements blender::fn::FieldInput.

Definition at line 257 of file geometry_fields.cc.

References get_varray_for_context(), and mask().

Referenced by get_varray_for_context().

◆ get_varray_for_context() [2/2]

◆ preferred_domain()


The documentation for this class was generated from the following files: