|
Blender V5.3
|
Enumerations | |
| enum class | SelectionType { Boolean = 0 , Float = 1 } |
Functions | |
| static void | node_declare (NodeDeclarationBuilder &b) |
| static void | node_layout (ui::Layout &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 () |
|
strong |
| Enumerator | |
|---|---|
| Boolean | |
| Float | |
Definition at line 28 of file node_geo_tool_set_selection.cc.
|
static |
Definition at line 64 of file node_geo_tool_set_selection.cc.
References clamp(), clamp_selection(), blender::fn::GField::cpp_type(), blender::nodes::FieldOperation::from(), and blender::CPPType::is().
Referenced by clamp_selection(), and node_geo_exec().
|
static |
Definition at line 74 of file node_geo_tool_set_selection.cc.
References blender::fn::GField::cpp_type(), blender::nodes::FieldOperation::from(), blender::nodes::GField::GField(), invert(), invert_selection(), blender::CPPType::is(), and blender::fn::multi_function::registry::lookup().
Referenced by invert_selection(), and node_geo_exec().
|
static |
Definition at line 33 of file node_geo_tool_set_selection.cc.
References b, node, and node_declare().
Referenced by node_declare(), and node_register().
|
static |
Definition at line 102 of file node_geo_tool_set_selection.cc.
References blender::nodes::GeoNodesUserData::call_data, blender::nodes::check_tool_context_and_error(), clamp_selection(), blender::bNode::custom1, ELEM, blender::nodes::Error, blender::nodes::GeoNodeExecParams::error_message_add(), blender::nodes::GeoNodeExecParams::extract_input(), blender::geometry::foreach_real_geometry(), blender::nodes::GField::from_input(), blender::bke::get_implicit_type_conversions(), invert_selection(), blender::bke::mesh_select_edge_flush(), blender::bke::mesh_select_face_flush(), blender::bke::mesh_select_vert_flush(), blender::nodes::GeoNodesOperatorData::mode, blender::nodes::GeoNodeExecParams::node(), node_geo_exec(), blender::OB_MODE_EDIT, blender::OB_MODE_OBJECT, blender::OB_MODE_PAINT_GREASE_PENCIL, blender::OB_MODE_SCULPT, blender::nodes::GeoNodesCallData::operator_data, remove_with_wrong_domain(), blender::nodes::GeoNodeExecParams::set_output(), blender::bke::try_capture_field_on_geometry(), blender::bke::DataTypeConversions::try_convert(), and blender::nodes::GeoNodeExecParams::user_data().
Referenced by node_geo_exec(), and node_register().
|
static |
Definition at line 58 of file node_geo_tool_set_selection.cc.
References node, and node_init().
Referenced by node_init(), and node_register().
|
static |
Definition at line 52 of file node_geo_tool_set_selection.cc.
References node_layout(), blender::ui::Layout::prop(), and UI_ITEM_NONE.
Referenced by node_layout(), and node_register().
|
static |
Definition at line 233 of file node_geo_tool_set_selection.cc.
References blender::bke::bNodeType::declare, blender::bke::bNodeType::draw_buttons, blender::bke::bNodeType::enum_name_legacy, blender::bke::bNodeType::gather_link_search_ops, GEO_NODE_TOOL_SET_SELECTION, blender::geo_node_type_base(), blender::bke::bNodeType::geometry_node_execute, blender::bke::bNodeType::initfunc, blender::bke::bNodeType::nclass, NODE_CLASS_GEOMETRY, node_declare(), node_geo_exec(), node_init(), node_layout(), node_register(), blender::bke::node_register_type(), node_rna(), blender::bke::bNodeType::rna_ext, blender::nodes::search_link_ops_for_tool_node(), blender::ExtensionRNA::srna, blender::bke::bNodeType::ui_description, and blender::bke::bNodeType::ui_name.
Referenced by node_register().
|
static |
Definition at line 201 of file node_geo_tool_set_selection.cc.
References NOD_inline_enum_accessors, node_rna(), blender::nodes::RNA_def_node_enum(), and blender::rna_enum_attribute_domain_point_edge_face_curve_items.
Referenced by node_register(), and node_rna().
|
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 91 of file node_geo_tool_set_selection.cc.
References blender::bke::AttributeAccessor::lookup_meta_data(), blender::bke::MutableAttributeAccessor::remove(), and remove_with_wrong_domain().
Referenced by node_geo_exec(), and remove_with_wrong_domain().