30 b.add_input(type,
"List"_ustr).structure_type(StructureType::List).hide_value();
34 .description(
"A field or list representing the values that will not be removed")
35 .structure_type(StructureType::Dynamic);
36 b.add_output(type,
"Selection"_ustr)
38 .structure_type(StructureType::List)
39 .align_with_previous();
40 b.add_output(type,
"Inverted"_ustr)
42 .structure_type(StructureType::List)
43 .align_with_previous();
107 [&]<
typename T>(
const T &src_data) {
108 if constexpr (std::is_same_v<T, GList::ArrayData>) {
113 else if constexpr (std::is_same_v<T, GList::SingleData>) {
142 if (filter_value.is_single()) {
143 if (filter_value.ensure_type<
bool>()) {
150 else if (filter_value.is_context_dependent_field()) {
157 else if (filter_value.is_list()) {
160 if (values.size() <
list->size()) {
170 "\"Selection\" input must be a field or a list");
#define NODE_CLASS_CONVERTER
#define NOD_REGISTER_NODE(REGISTER_FUNC)
#define NOD_inline_enum_accessors(member)
VArray< T > typed() const
static IndexMask from_bools(Span< bool > bools, LinearAllocator<> &memory)
constexpr IndexRange()=default
int add(GField field, GVArray *varray_ptr)
IndexMask get_evaluated_as_mask(int field_index)
IndexMask complement(const IndexMask &universe, LinearAllocator<> &memory) const
static GListPtr from_garray(GArray<> array)
static GListPtr create(const CPPType &type, DataVariant data, const int64_t size)
void add_item(std::string socket_name, SocketLinkOperation::LinkSocketFn fn, int weight=0)
const bNodeTree & node_tree() const
const bNodeSocket & other_socket() const
eNodeSocketInOut in_out() const
void error_message_add(const NodeWarningType type, StringRef message) const
T extract_input(const UString identifier)
bool output_is_required(const UString identifier) const
void set_default_remaining_outputs()
void set_output(const UString identifier, T &&value)
void update_and_connect_available_socket(bNode &new_node, UString socket_name)
bNode & add_node(UString idname)
eNodeSocketDatatype socket_type
void operator()(LinkSearchOpParams ¶ms)
ccl_device_inline float3x3 inverted(const float3x3 m)
void gather(const GVArray &src, const IndexMask &indices, GMutableSpan dst, exec_mode::Mode mode=exec_mode::parallel)
void node_register_type(bNodeType &ntype)
bNodeSocketType * node_socket_type_find_static(int type, int subtype=0)
static void node_layout(ui::Layout &layout, bContext *, PointerRNA *ptr)
static void output_lists(GeoNodeExecParams ¶ms, const GListPtr &list, const IndexMask &selection)
static GListPtr filter_list(const GListPtr &list, const IndexMask &mask)
static void node_declare(NodeDeclarationBuilder &b)
static void node_gather_link_searches(GatherLinkSearchOpParams ¶ms)
static void node_register()
static void node_rna(StructRNA *srna)
static void node_geo_exec(GeoNodeExecParams params)
PropertyRNA * RNA_def_node_enum(StructRNA *srna, const char *identifier, const char *ui_name, const char *ui_description, const EnumPropertyItem *static_items, const EnumRNAAccessors accessors, std::optional< int > default_value, const EnumPropertyItemFunc item_func, const bool allow_animation)
const EnumPropertyItem * enum_items_filter(const EnumPropertyItem *original_item_array, FunctionRef< bool(const EnumPropertyItem &item)> fn)
const EnumPropertyItem rna_enum_node_socket_data_type_items[]
void geo_node_type_base(bke::bNodeType *ntype, UString idname, const std::optional< int16_t > legacy_type)
bke::bNodeTreeType * typeinfo
bool(*) valid_socket_type(bNodeTreeType *ntreetype, bNodeSocketType *socket_type)
bool(*) validate_link(eNodeSocketDatatype from, eNodeSocketDatatype to)
void(*) draw_buttons(ui::Layout &, bContext *C, PointerRNA *ptr)
std::string ui_description
NodeGeometryExecFunction geometry_node_execute
NodeGatherSocketLinkOperationsFunction gather_link_search_ops
NodeDeclareFunction declare
void prop(PointerRNA *ptr, PropertyRNA *prop, int index, int value, eUI_Item_Flag flag, std::optional< StringRef > name_opt, int icon, std::optional< StringRef > placeholder=std::nullopt)