25 b.use_custom_socket_order();
26 b.allow_any_socket_order();
27 b.add_default_layout();
31 b.add_output<
decl::Bundle>(
"Bundle"_ustr).align_with_previous().propagate_all();
34 if (
node !=
nullptr) {
37 auto &
decl =
b.add_input(socket_type,
"Item"_ustr);
39 decl.structure_type(StructureType::Dynamic);
42 decl.structure_type(StructureType(
storage.structure_type));
66 auto *
storage = MEM_new<NodeStoreBundleItem>(__func__);
82 const std::string path = params.
extract_input<std::string>(
"Path"_ustr);
88 params.
set_output(
"Bundle"_ustr, std::move(bundle_ptr));
93 const bNodeSocket *item_sock = bnode.input_by_identifier(
"Item"_ustr);
95 params.
set_output(
"Bundle"_ustr, std::move(bundle_ptr));
101 params.
set_output(
"Bundle"_ustr, std::move(bundle_ptr));
107 params.
set_output(
"Bundle"_ustr, std::move(bundle_ptr));
126 if (!split_path.has_value()) {
135 bundle.add_path_override(*split_path,
168 "What kind of higher order types are expected to flow through this socket",
178 ntype.
ui_name =
"Store Bundle Item";
179 ntype.
ui_description =
"Store a bundle item by path and data type.";
#define NODE_CLASS_CONVERTER
#define NODE_STORAGE_FUNCS(StorageT)
#define NOD_REGISTER_NODE(REGISTER_FUNC)
#define NOD_storage_enum_accessors(member)
T & ensure_mutable_inplace()
static nodes::BundleItemValue new_bundle_item_value(Context &context, Result &result)
NodeOperation(Context &context, const bNode &node)
void add_warning(nodes::NodeWarningType type, std::string message)
Result & get_result(StringRef identifier)
Context & context() const
Result & get_input(StringRef identifier) const
void share_data(const Result &source)
void set_single_value(const T &value)
void allocate_single_value()
const T & get_single_value() const
static BundlePtr create()
void add_path_override(StringRef path, const BundleItemValue &value)
static std::optional< Vector< BundleKey > > split_path(StringRef path)
void error_message_add(const NodeWarningType type, StringRef message) const
T extract_input(const UString identifier)
const bNode & node() const
void set_output(const UString identifier, T &&value)
NodeOperation(Context &context, const bNode &node)
#define storage(slot, qualifiers)
void node_register_type(bNodeType &ntype)
bNodeSocketType * node_socket_type_find_static(int type, int subtype=0)
void node_type_storage(bNodeType &ntype, std::optional< StringRefNull > storagename, void(*freefunc)(bNode *node), void(*copyfunc)(bNodeTree *dest_ntree, bNode *dest_node, const bNode *src_node))
static void node_geo_exec(GeoNodeExecParams params)
static void node_init(bNodeTree *, bNode *node)
static void node_layout_ex(ui::Layout &layout, bContext *, PointerRNA *ptr)
static void node_declare(NodeDeclarationBuilder &b)
static void node_layout(ui::Layout &layout, bContext *, PointerRNA *ptr)
static void node_rna(StructRNA *srna)
static NodeOperation * get_compositor_operation(Context &context, const bNode &node)
static void node_register()
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)
bool socket_type_supported_in_bundle(const eNodeSocketDatatype socket_type, const int ntree_type)
const EnumPropertyItem * enum_items_filter(const EnumPropertyItem *original_item_array, FunctionRef< bool(const EnumPropertyItem &item)> fn)
ImplicitSharingPtr< Bundle > BundlePtr
const EnumPropertyItem rna_enum_node_socket_structure_type_items[]
void node_copy_standard_storage(bNodeTree *, bNode *dest_node, const bNode *src_node)
const EnumPropertyItem rna_enum_node_socket_data_type_items[]
void node_free_standard_storage(bNode *node)
void geo_cmp_node_type_base(bke::bNodeType *ntype, UString idname, const std::optional< int16_t > legacy_type)
const SocketValueVariant * geometry_nodes_default_value
void(*) draw_buttons(ui::Layout &, bContext *C, PointerRNA *ptr)
std::string ui_description
NodeGetCompositorOperationFunction get_compositor_operation
NodeGeometryExecFunction geometry_node_execute
void(*) draw_buttons_ex(ui::Layout &, bContext *C, PointerRNA *ptr)
void(*) initfunc(bNodeTree *ntree, bNode *node)
NodeDeclareFunction declare
void use_property_decorate_set(bool is_decorate)
void use_property_split_set(bool is_sep)
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)