|
Blender V5.0
|
#include <FN_field.hh>
Inherits blender::fn::FieldNode.
Inherited by blender::bke::CurvesFieldInput, blender::bke::GeometryFieldInput, blender::bke::InstancesFieldInput, blender::bke::MeshFieldInput, blender::bke::PointCloudFieldInput, blender::fn::IndexFieldInput, and blender::fn::tests::IndexFieldInput.
Public Types | |
| enum class | Category { NamedAttribute = 0 , Generated = 1 , AnonymousAttribute = 2 , Unknown } |
Public Member Functions | |
| virtual GVArray | get_varray_for_context (const FieldContext &context, const IndexMask &mask, ResourceScope &scope) const =0 |
#FieldInput | |
| FieldInput (const CPPType &type, std::string debug_name="") | |
| ~FieldInput () override | |
#FieldInput Inline Methods | |
| 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 |
Protected Attributes | |
| 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_ |
A FieldNode that represents an input to the entire field-tree.
Definition at line 259 of file FN_field.hh.
|
strong |
| Enumerator | |
|---|---|
| NamedAttribute | |
| Generated | |
| AnonymousAttribute | |
| Unknown | |
Definition at line 262 of file FN_field.hh.
| blender::fn::FieldInput::FieldInput | ( | const CPPType & | type, |
| std::string | debug_name = "" ) |
Definition at line 677 of file field.cc.
References debug_name(), debug_name_, blender::fn::FieldNode::field_inputs(), blender::fn::FieldNode::field_inputs_, blender::fn::FieldNode::FieldNode(), and type_.
Referenced by blender::fn::IndexFieldInput::IndexFieldInput(), and blender::fn::tests::IndexFieldInput::IndexFieldInput().
|
overridedefault |
|
inline |
Definition at line 637 of file FN_field.hh.
References category_.
|
inline |
Definition at line 632 of file FN_field.hh.
References type_.
Referenced by blender::nodes::node_geo_accumulate_field_cc::AccumulateFieldInput::AccumulateFieldInput(), blender::nodes::node_geo_blur_attribute_cc::BlurAttributeFieldInput::BlurAttributeFieldInput(), blender::fn::build_multi_function_procedure_for_fields(), blender::bke::EvaluateAtIndexInput::EvaluateAtIndexInput(), blender::bke::EvaluateOnDomainInput::EvaluateOnDomainInput(), blender::nodes::node_geo_field_average_cc::FieldAverageInput::FieldAverageInput(), blender::nodes::node_geo_field_min_and_max_cc::FieldMinMaxInput::FieldMinMaxInput(), blender::nodes::node_geo_field_variance_cc::FieldVarianceInput::FieldVarianceInput(), blender::bke::AttributeFieldInput::get_varray_for_context(), blender::bke::EvaluateOnDomainInput::get_varray_for_context(), and blender::nodes::node_geo_accumulate_field_cc::TotalFieldInput::TotalFieldInput().
|
inline |
Definition at line 627 of file FN_field.hh.
References debug_name_.
Referenced by blender::fn::build_multi_function_procedure_for_fields(), and FieldInput().
|
pure virtual |
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.
Implemented in blender::bke::CurvesFieldInput, blender::bke::GeometryFieldInput, blender::bke::InstancesFieldInput, blender::bke::MeshFieldInput, blender::bke::PointCloudFieldInput, blender::fn::IndexFieldInput, and blender::fn::tests::IndexFieldInput.
References mask().
Referenced by blender::bke::GreasePencilLayerFieldContext::get_varray_for_input(), and blender::fn::FieldContext::get_varray_for_input().
|
inlineoverridevirtual |
Implements blender::fn::FieldNode.
Definition at line 642 of file FN_field.hh.
References BLI_assert, type_, and UNUSED_VARS_NDEBUG.
|
inlinevirtual |
Reimplemented in blender::bke::AttributeFieldInput, blender::bke::IDAttributeFieldInput, blender::bke::NormalFieldInput, and blender::nodes::AttributeFieldInput.
Definition at line 622 of file FN_field.hh.
References debug_name_.
|
protected |
Definition at line 272 of file FN_field.hh.
Referenced by blender::nodes::node_geo_input_mesh_edge_angle_cc::AngleFieldInput::AngleFieldInput(), blender::bke::AttributeExistsFieldInput::AttributeExistsFieldInput(), blender::bke::AttributeFieldInput::AttributeFieldInput(), blender::nodes::node_geo_mesh_face_group_boundaries_cc::BoundaryFieldInput::BoundaryFieldInput(), category(), blender::nodes::node_geo_offset_point_in_curve_cc::ControlPointNeighborFieldInput::ControlPointNeighborFieldInput(), blender::nodes::node_geo_mesh_topology_face_of_corner_cc::CornerFaceIndexInput::CornerFaceIndexInput(), blender::nodes::node_geo_mesh_topology_face_of_corner_cc::CornerIndexInFaceInput::CornerIndexInFaceInput(), blender::nodes::node_geo_mesh_topology_edges_of_corner_cc::CornerNextEdgeFieldInput::CornerNextEdgeFieldInput(), blender::nodes::node_geo_mesh_topology_edges_of_corner_cc::CornerPreviousEdgeFieldInput::CornerPreviousEdgeFieldInput(), blender::nodes::node_geo_mesh_topology_corners_of_edge_cc::CornersOfEdgeCountInput::CornersOfEdgeCountInput(), blender::nodes::node_geo_mesh_topology_corners_of_edge_cc::CornersOfEdgeInput::CornersOfEdgeInput(), blender::nodes::node_geo_mesh_topology_corners_of_face_cc::CornersOfFaceCountInput::CornersOfFaceCountInput(), blender::nodes::node_geo_mesh_topology_corners_of_face_cc::CornersOfFaceInput::CornersOfFaceInput(), blender::nodes::node_geo_mesh_topology_corners_of_vertex_cc::CornersOfVertCountInput::CornersOfVertCountInput(), blender::nodes::node_geo_mesh_topology_corners_of_vertex_cc::CornersOfVertInput::CornersOfVertInput(), blender::nodes::node_geo_mesh_topology_vertex_of_corner_cc::CornerVertFieldInput::CornerVertFieldInput(), blender::bke::CurveLengthFieldInput::CurveLengthFieldInput(), blender::nodes::node_geo_curve_spline_parameter_cc::CurveLengthParameterFieldInput::CurveLengthParameterFieldInput(), blender::nodes::node_geo_curve_topology_curve_of_point_cc::CurveOfPointInput::CurveOfPointInput(), blender::nodes::node_geo_curve_spline_parameter_cc::CurveParameterFieldInput::CurveParameterFieldInput(), blender::nodes::node_geo_curve_topology_points_of_curve_cc::CurvePointCountInput::CurvePointCountInput(), blender::nodes::node_geo_input_mesh_edge_neighbors_cc::EdgeNeighborCountFieldInput::EdgeNeighborCountFieldInput(), blender::nodes::node_geo_input_mesh_edge_vertices_cc::EdgePositionFieldInput::EdgePositionFieldInput(), blender::nodes::node_geo_mesh_topology_edges_of_vertex_cc::EdgesOfVertCountInput::EdgesOfVertCountInput(), blender::nodes::node_geo_mesh_topology_edges_of_vertex_cc::EdgesOfVertInput::EdgesOfVertInput(), blender::nodes::node_geo_input_mesh_edge_vertices_cc::EdgeVertsInput::EdgeVertsInput(), blender::nodes::node_geo_tool_selection_cc::EditSelectionFieldInput::EditSelectionFieldInput(), blender::nodes::node_geo_curve_endpoint_selection_cc::EndpointFieldInput::EndpointFieldInput(), blender::nodes::node_geo_input_mesh_face_area_cc::FaceAreaFieldInput::FaceAreaFieldInput(), blender::nodes::node_geo_input_mesh_face_neighbors_cc::FaceNeighborCountFieldInput::FaceNeighborCountFieldInput(), blender::nodes::node_geo_input_mesh_face_neighbors_cc::FaceVertexCountFieldInput::FaceVertexCountFieldInput(), blender::nodes::node_geo_curve_handle_type_selection_cc::HandleTypeFieldInput::HandleTypeFieldInput(), blender::bke::IDAttributeFieldInput::IDAttributeFieldInput(), blender::fn::IndexFieldInput::IndexFieldInput(), blender::nodes::node_geo_curve_spline_parameter_cc::IndexOnSplineFieldInput::IndexOnSplineFieldInput(), blender::nodes::node_geo_input_mesh_island_cc::IslandCountFieldInput::IslandCountFieldInput(), blender::nodes::node_geo_input_mesh_island_cc::IslandFieldInput::IslandFieldInput(), blender::nodes::node_geo_material_selection_cc::MaterialSelectionFieldInput::MaterialSelectionFieldInput(), blender::bke::NamedLayerSelectionFieldInput::NamedLayerSelectionFieldInput(), blender::bke::NormalFieldInput::NormalFieldInput(), blender::nodes::node_geo_mesh_topology_offset_corner_in_face_cc::OffsetCornerInFaceFieldInput::OffsetCornerInFaceFieldInput(), blender::nodes::node_geo_offset_point_in_curve_cc::OffsetValidFieldInput::OffsetValidFieldInput(), blender::nodes::node_geo_uv_pack_islands_cc::PackIslandsFieldInput::PackIslandsFieldInput(), blender::nodes::node_geo_edge_paths_to_selection_cc::PathToEdgeSelectionFieldInput::PathToEdgeSelectionFieldInput(), blender::nodes::node_geo_input_mesh_face_is_planar_cc::PlanarFieldInput::PlanarFieldInput(), blender::nodes::node_geo_curve_topology_curve_of_point_cc::PointIndexInCurveInput::PointIndexInCurveInput(), blender::nodes::node_geo_curve_topology_points_of_curve_cc::PointsOfCurveInput::PointsOfCurveInput(), blender::nodes::node_geo_input_spline_resolution_cc::ResolutionFieldInput::ResolutionFieldInput(), blender::nodes::node_geo_tool_selection_cc::SculptSelectionFieldInput::SculptSelectionFieldInput(), blender::nodes::node_geo_input_shortest_edge_paths_cc::ShortestEdgePathsCostFieldInput::ShortestEdgePathsCostFieldInput(), blender::nodes::node_geo_input_shortest_edge_paths_cc::ShortestEdgePathsNextVertFieldInput::ShortestEdgePathsNextVertFieldInput(), blender::nodes::node_geo_input_mesh_edge_angle_cc::SignedAngleFieldInput::SignedAngleFieldInput(), blender::nodes::node_geo_input_spline_length_cc::SplineCountFieldInput::SplineCountFieldInput(), blender::nodes::node_geo_input_tangent_cc::TangentFieldInput::TangentFieldInput(), blender::nodes::node_geo_uv_tangent_cc::TangentFieldInput::TangentFieldInput(), blender::nodes::node_geo_uv_unwrap_cc::UnwrapFieldInput::UnwrapFieldInput(), blender::nodes::node_geo_input_mesh_vertex_neighbors_cc::VertexCountFieldInput::VertexCountFieldInput(), and blender::nodes::node_geo_input_mesh_vertex_neighbors_cc::VertexFaceCountFieldInput::VertexFaceCountFieldInput().
|
protected |
Definition at line 271 of file FN_field.hh.
Referenced by debug_name(), FieldInput(), and socket_inspection_name().
|
protected |
Definition at line 270 of file FN_field.hh.
Referenced by cpp_type(), FieldInput(), blender::bke::AttributeFieldInput::get_varray_for_context(), blender::nodes::node_geo_blur_attribute_cc::BlurAttributeFieldInput::get_varray_for_context(), blender::nodes::node_geo_tool_selection_cc::EditSelectionFieldInput::get_varray_for_context(), blender::nodes::node_geo_tool_selection_cc::SculptSelectionFieldInput::get_varray_for_context(), blender::bke::AttributeFieldInput::hash(), blender::bke::NamedLayerSelectionFieldInput::hash(), blender::bke::AttributeFieldInput::is_equal_to(), and output_cpp_type().