Blender V5.0
blender::nodes::node_geo_tool_set_selection_cc Namespace Reference

Enumerations

enum class  SelectionType { Boolean = 0 , Float = 1 }

Functions

static void node_declare (NodeDeclarationBuilder &b)
static void node_layout (uiLayout *layout, bContext *, PointerRNA *ptr)
static void node_init (bNodeTree *, bNode *node)
static GField clamp_selection (const GField &selection)
static GField invert_selection (const GField &selection)
static void remove_with_wrong_domain (bke::MutableAttributeAccessor attributes, const StringRef name, const bke::AttrDomain domain)
static void node_geo_exec (GeoNodeExecParams params)
static void node_rna (StructRNA *srna)
static void node_register ()

Enumeration Type Documentation

◆ SelectionType

Warning
Values are stored in files.
Enumerator
Boolean 
Float 

Definition at line 24 of file node_geo_tool_set_selection.cc.

Function Documentation

◆ clamp_selection()

GField blender::nodes::node_geo_tool_set_selection_cc::clamp_selection ( const GField & selection)
static

◆ invert_selection()

GField blender::nodes::node_geo_tool_set_selection_cc::invert_selection ( const GField & selection)
static

◆ node_declare()

void blender::nodes::node_geo_tool_set_selection_cc::node_declare ( NodeDeclarationBuilder & b)
static

Definition at line 29 of file node_geo_tool_set_selection.cc.

References b, Boolean, and Float.

Referenced by node_register().

◆ node_geo_exec()

◆ node_init()

void blender::nodes::node_geo_tool_set_selection_cc::node_init ( bNodeTree * ,
bNode * node )
static

Definition at line 54 of file node_geo_tool_set_selection.cc.

References Boolean, bNode::custom1, and bNode::custom2.

Referenced by node_register().

◆ node_layout()

void blender::nodes::node_geo_tool_set_selection_cc::node_layout ( uiLayout * layout,
bContext * ,
PointerRNA * ptr )
static

Definition at line 48 of file node_geo_tool_set_selection.cc.

References uiLayout::prop(), ptr, and UI_ITEM_NONE.

Referenced by node_register().

◆ node_register()

◆ node_rna()

void blender::nodes::node_geo_tool_set_selection_cc::node_rna ( StructRNA * srna)
static

◆ remove_with_wrong_domain()

void blender::nodes::node_geo_tool_set_selection_cc::remove_with_wrong_domain ( bke::MutableAttributeAccessor attributes,
const StringRef name,
const bke::AttrDomain domain )
static

After conversion to and from other geometry types, the selection attributes can end up on the wrong domain (usually the point domain). Since the node requires certain domains to work, just remove the attributes in this case.

Definition at line 88 of file node_geo_tool_set_selection.cc.

References blender::bke::AttributeAccessor::lookup_meta_data(), name, and blender::bke::MutableAttributeAccessor::remove().

Referenced by node_geo_exec().