|
Blender V4.3
|
#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< AttrDomain > | preferred_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 CPPType & | cpp_type () const |
| Category | category () const |
| const CPPType & | output_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 CPPType * | type_ |
| std::string | debug_name_ |
| Category | category_ = Category::Unknown |
Protected Attributes inherited from blender::fn::FieldNode | |
| std::shared_ptr< const FieldInputs > | field_inputs_ |
Definition at line 216 of file BKE_geometry_fields.hh.
|
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().
|
pure virtual |
Implemented in 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.
|
virtual |
Reimplemented in blender::bke::AttributeFieldInput, blender::bke::EvaluateAtIndexInput, blender::bke::EvaluateOnDomainInput, blender::bke::NamedLayerSelectionFieldInput, 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, and blender::nodes::node_geo_material_selection_cc::MaterialSelectionFieldInput.
Definition at line 302 of file geometry_fields.cc.