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

#include <BKE_geometry_fields.hh>

Inherits blender::fn::FieldInput.

Inherited by blender::nodes::node_geo_edge_paths_to_selection_cc::PathToEdgeSelectionFieldInput, blender::nodes::node_geo_edges_to_face_groups_cc::FaceSetFromBoundariesInput, blender::nodes::node_geo_input_mesh_edge_angle_cc::AngleFieldInput, blender::nodes::node_geo_input_mesh_edge_angle_cc::SignedAngleFieldInput, blender::nodes::node_geo_input_mesh_edge_neighbors_cc::EdgeNeighborCountFieldInput, blender::nodes::node_geo_input_mesh_edge_vertices_cc::EdgePositionFieldInput, blender::nodes::node_geo_input_mesh_edge_vertices_cc::EdgeVertsInput, blender::nodes::node_geo_input_mesh_face_area_cc::FaceAreaFieldInput, blender::nodes::node_geo_input_mesh_face_is_planar_cc::PlanarFieldInput, blender::nodes::node_geo_input_mesh_face_neighbors_cc::FaceNeighborCountFieldInput, blender::nodes::node_geo_input_mesh_face_neighbors_cc::FaceVertexCountFieldInput, blender::nodes::node_geo_input_mesh_island_cc::IslandCountFieldInput, blender::nodes::node_geo_input_mesh_island_cc::IslandFieldInput, blender::nodes::node_geo_input_mesh_vertex_neighbors_cc::VertexCountFieldInput, blender::nodes::node_geo_input_mesh_vertex_neighbors_cc::VertexFaceCountFieldInput, blender::nodes::node_geo_input_shortest_edge_paths_cc::ShortestEdgePathsCostFieldInput, blender::nodes::node_geo_input_shortest_edge_paths_cc::ShortestEdgePathsNextVertFieldInput, blender::nodes::node_geo_mesh_face_group_boundaries_cc::BoundaryFieldInput, blender::nodes::node_geo_mesh_topology_corners_of_edge_cc::CornersOfEdgeCountInput, blender::nodes::node_geo_mesh_topology_corners_of_edge_cc::CornersOfEdgeInput, blender::nodes::node_geo_mesh_topology_corners_of_face_cc::CornersOfFaceCountInput, blender::nodes::node_geo_mesh_topology_corners_of_face_cc::CornersOfFaceInput, blender::nodes::node_geo_mesh_topology_corners_of_vertex_cc::CornersOfVertCountInput, blender::nodes::node_geo_mesh_topology_corners_of_vertex_cc::CornersOfVertInput, blender::nodes::node_geo_mesh_topology_edges_of_corner_cc::CornerNextEdgeFieldInput, blender::nodes::node_geo_mesh_topology_edges_of_corner_cc::CornerPreviousEdgeFieldInput, blender::nodes::node_geo_mesh_topology_edges_of_vertex_cc::EdgesOfVertCountInput, blender::nodes::node_geo_mesh_topology_edges_of_vertex_cc::EdgesOfVertInput, blender::nodes::node_geo_mesh_topology_face_of_corner_cc::CornerFaceIndexInput, blender::nodes::node_geo_mesh_topology_face_of_corner_cc::CornerIndexInFaceInput, blender::nodes::node_geo_mesh_topology_offset_corner_in_face_cc::OffsetCornerInFaceFieldInput, blender::nodes::node_geo_mesh_topology_vertex_of_corner_cc::CornerVertFieldInput, blender::nodes::node_geo_uv_pack_islands_cc::PackIslandsFieldInput, and blender::nodes::node_geo_uv_unwrap_cc::UnwrapFieldInput.

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 Mesh &mesh, AttrDomain domain, const IndexMask &mask) const =0
 
virtual std::optional< AttrDomainpreferred_domain (const Mesh &mesh) 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 227 of file BKE_geometry_fields.hh.

Member Function Documentation

◆ get_varray_for_context() [1/2]

GVArray blender::bke::MeshFieldInput::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 308 of file geometry_fields.cc.

References get_varray_for_context().

Referenced by get_varray_for_context().

◆ get_varray_for_context() [2/2]

virtual GVArray blender::bke::MeshFieldInput::get_varray_for_context ( const Mesh & mesh,
AttrDomain domain,
const IndexMask & mask ) const
pure virtual

◆ preferred_domain()

std::optional< AttrDomain > blender::bke::MeshFieldInput::preferred_domain ( const Mesh & mesh) const
virtual

Reimplemented in blender::nodes::node_geo_edge_paths_to_selection_cc::PathToEdgeSelectionFieldInput, blender::nodes::node_geo_edges_to_face_groups_cc::FaceSetFromBoundariesInput, blender::nodes::node_geo_input_mesh_edge_angle_cc::AngleFieldInput, blender::nodes::node_geo_input_mesh_edge_angle_cc::SignedAngleFieldInput, blender::nodes::node_geo_input_mesh_edge_neighbors_cc::EdgeNeighborCountFieldInput, blender::nodes::node_geo_input_mesh_edge_vertices_cc::EdgePositionFieldInput, blender::nodes::node_geo_input_mesh_edge_vertices_cc::EdgeVertsInput, blender::nodes::node_geo_input_mesh_face_area_cc::FaceAreaFieldInput, blender::nodes::node_geo_input_mesh_face_is_planar_cc::PlanarFieldInput, blender::nodes::node_geo_input_mesh_face_neighbors_cc::FaceNeighborCountFieldInput, blender::nodes::node_geo_input_mesh_face_neighbors_cc::FaceVertexCountFieldInput, blender::nodes::node_geo_input_mesh_island_cc::IslandCountFieldInput, blender::nodes::node_geo_input_mesh_island_cc::IslandFieldInput, blender::nodes::node_geo_input_mesh_vertex_neighbors_cc::VertexCountFieldInput, blender::nodes::node_geo_input_mesh_vertex_neighbors_cc::VertexFaceCountFieldInput, blender::nodes::node_geo_input_shortest_edge_paths_cc::ShortestEdgePathsCostFieldInput, blender::nodes::node_geo_input_shortest_edge_paths_cc::ShortestEdgePathsNextVertFieldInput, blender::nodes::node_geo_mesh_face_group_boundaries_cc::BoundaryFieldInput, blender::nodes::node_geo_mesh_topology_corners_of_edge_cc::CornersOfEdgeCountInput, blender::nodes::node_geo_mesh_topology_corners_of_edge_cc::CornersOfEdgeInput, blender::nodes::node_geo_mesh_topology_corners_of_face_cc::CornersOfFaceCountInput, blender::nodes::node_geo_mesh_topology_corners_of_face_cc::CornersOfFaceInput, blender::nodes::node_geo_mesh_topology_corners_of_vertex_cc::CornersOfVertCountInput, blender::nodes::node_geo_mesh_topology_corners_of_vertex_cc::CornersOfVertInput, blender::nodes::node_geo_mesh_topology_edges_of_corner_cc::CornerNextEdgeFieldInput, blender::nodes::node_geo_mesh_topology_edges_of_corner_cc::CornerPreviousEdgeFieldInput, blender::nodes::node_geo_mesh_topology_edges_of_vertex_cc::EdgesOfVertCountInput, blender::nodes::node_geo_mesh_topology_edges_of_vertex_cc::EdgesOfVertInput, blender::nodes::node_geo_mesh_topology_face_of_corner_cc::CornerIndexInFaceInput, blender::nodes::node_geo_mesh_topology_offset_corner_in_face_cc::OffsetCornerInFaceFieldInput, blender::nodes::node_geo_mesh_topology_vertex_of_corner_cc::CornerVertFieldInput, blender::nodes::node_geo_uv_pack_islands_cc::PackIslandsFieldInput, and blender::nodes::node_geo_uv_unwrap_cc::UnwrapFieldInput.

Definition at line 325 of file geometry_fields.cc.


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