Blender V5.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, blender::nodes::node_geo_uv_tangent_cc::TangentFieldInput, 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< AttrDomain > preferred_domain (const Mesh &mesh) const
virtual NativeFieldDomain native_domain_info (const Mesh &mesh) const
 FieldInput (const CPPType &type, std::string debug_name="")
Public Member Functions inherited from blender::fn::FieldInput
 FieldInput (const CPPType &type, std::string debug_name="")
 ~FieldInput () override
const FieldInputsPtr & field_inputs () const
uint64_t hash () const
virtual void hash_unique (UniqueHashBytes &hash, FieldHashDeep &deep_hash_cache) const
virtual void foreach_recursive_field (FunctionRef< void(const GField &)> fn) const
void delete_self () override
StringRefNull debug_name () const
virtual std::string socket_inspection_name () const
const CPPType & cpp_type () const
Public Member Functions inherited from blender::blender::ImplicitSharingInfo
virtual ~ImplicitSharingInfo ()
bool is_mutable () const
bool is_expired () const
void add_user () const
void add_weak_user () const
void tag_ensured_mutable () const
int64_t version () const
int strong_users () const
void remove_user_and_delete_if_last () const
void remove_weak_user_and_delete_if_last () const

Additional Inherited Members

Protected Attributes inherited from blender::fn::FieldInput
const CPPType * type_
std::string debug_name_
CacheMutex field_inputs_mutex_
FieldInputsPtr field_inputs_

Detailed Description

Definition at line 264 of file BKE_geometry_fields.hh.

Member Function Documentation

◆ FieldInput()

blender::fn::FieldInput::FieldInput ( const CPPType & type,
std::string debug_name = "" )

Definition at line 352 of file field.cc.

◆ 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

Output a virtual array for the given index mask in the given context.

Implements blender::fn::FieldInput.

Definition at line 330 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

Implemented 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::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, blender::nodes::node_geo_uv_tangent_cc::TangentFieldInput, and blender::nodes::node_geo_uv_unwrap_cc::UnwrapFieldInput.

References native_domain_info(), and preferred_domain().

◆ native_domain_info()

◆ 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, blender::nodes::node_geo_uv_tangent_cc::TangentFieldInput, and blender::nodes::node_geo_uv_unwrap_cc::UnwrapFieldInput.

Definition at line 347 of file geometry_fields.cc.

Referenced by get_varray_for_context().


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