Blender V4.3
blender::bke::AttributeFieldInput Class Reference

#include <BKE_geometry_fields.hh>

Inherits blender::bke::GeometryFieldInput.

Public Member Functions

 AttributeFieldInput (std::string name, const CPPType &type, std::optional< std::string > socket_inspection_name=std::nullopt)
 
StringRefNull attribute_name () const
 
GVArray get_varray_for_context (const GeometryFieldContext &context, const IndexMask &mask) const override
 
std::string socket_inspection_name () const override
 
uint64_t hash () const override
 
bool is_equal_to (const fn::FieldNode &other) const override
 
std::optional< AttrDomainpreferred_domain (const GeometryComponent &component) const override
 
- Public Member Functions inherited from blender::bke::GeometryFieldInput
GVArray get_varray_for_context (const fn::FieldContext &context, const IndexMask &mask, ResourceScope &scope) const override
 
- Public Member Functions inherited from blender::fn::FieldInput
 FieldInput (const CPPType &type, std::string debug_name="")
 
 ~FieldInput ()
 
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 ~FieldNode ()
 
virtual void for_each_field_input_recursive (FunctionRef< void(const FieldInput &)> fn) const
 

Static Public Member Functions

static fn::GField Create (std::string name, const CPPType &type, std::optional< std::string > socket_inspection_name=std::nullopt)
 
template<typename T >
static fn::Field< TCreate (std::string name, std::optional< std::string > socket_inspection_name=std::nullopt)
 

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 271 of file BKE_geometry_fields.hh.

Constructor & Destructor Documentation

◆ AttributeFieldInput()

blender::bke::AttributeFieldInput::AttributeFieldInput ( std::string name,
const CPPType & type,
std::optional< std::string > socket_inspection_name = std::nullopt )
inline

Member Function Documentation

◆ attribute_name()

StringRefNull blender::bke::AttributeFieldInput::attribute_name ( ) const
inline

◆ Create() [1/2]

◆ Create() [2/2]

template<typename T >
static fn::Field< T > blender::bke::AttributeFieldInput::Create ( std::string name,
std::optional< std::string > socket_inspection_name = std::nullopt )
inlinestatic

◆ get_varray_for_context()

◆ hash()

uint64_t blender::bke::AttributeFieldInput::hash ( ) const
overridevirtual

Reimplemented from blender::fn::FieldNode.

Definition at line 461 of file geometry_fields.cc.

References blender::get_default_hash(), and blender::fn::FieldInput::type_.

◆ is_equal_to()

bool blender::bke::AttributeFieldInput::is_equal_to ( const fn::FieldNode & other) const
overridevirtual

Reimplemented from blender::fn::FieldNode.

Definition at line 466 of file geometry_fields.cc.

References blender::fn::FieldInput::type_.

◆ preferred_domain()

std::optional< AttrDomain > blender::bke::AttributeFieldInput::preferred_domain ( const GeometryComponent & component) const
overridevirtual

◆ socket_inspection_name()

std::string blender::bke::AttributeFieldInput::socket_inspection_name ( ) const
overridevirtual

Reimplemented from blender::fn::FieldInput.

Definition at line 453 of file geometry_fields.cc.

References TIP_.

Referenced by Create(), and Create().


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