Blender V4.3
ED_node.hh
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2023 Blender Authors
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later */
4
5#pragma once
6
7#include <optional>
8
10#include "BLI_string_ref.hh"
11#include "BLI_vector_set.hh"
12
13#include "ED_node_c.hh"
14
15struct SpaceNode;
16struct ARegion;
17struct Main;
18struct bContext;
19struct bNodeSocket;
20struct bNodeTree;
21struct Object;
22struct rcti;
24struct uiLayout;
25
27
29void snode_set_context(const bContext &C);
30
32
38 const ARegion &region,
39 bool attach_enabled,
40 bool is_new_node);
41
45void node_insert_on_link_flags(Main &bmain, SpaceNode &snode, bool is_new_node);
47
53void node_socket_draw(bNodeSocket *sock, const rcti *rect, const float color[4], float scale);
54
58std::optional<int32_t> find_nested_node_id_in_root(const SpaceNode &snode, const bNode &node);
59
67std::optional<ObjectAndModifier> get_modifier_for_node_editor(const SpaceNode &snode);
72[[nodiscard]] bool push_compute_context_for_tree_path(
73 const SpaceNode &snode, ComputeContextBuilder &compute_context_builder);
74
76 const bContext &C,
77 StringRef catalog_path);
78
79} // namespace blender::ed::space_node
void node_insert_on_link_flags_set(SpaceNode &snode, const ARegion &region, bool attach_enabled, bool is_new_node)
void node_socket_draw(bNodeSocket *sock, const rcti *rect, const float color[4], float scale)
bool push_compute_context_for_tree_path(const SpaceNode &snode, ComputeContextBuilder &compute_context_builder)
void ui_template_node_asset_menu_items(uiLayout &layout, const bContext &C, StringRef catalog_path)
VectorSet< bNode * > get_selected_nodes(bNodeTree &node_tree)
void node_insert_on_link_flags_clear(bNodeTree &node_tree)
std::optional< ObjectAndModifier > get_modifier_for_node_editor(const SpaceNode &snode)
std::optional< int32_t > find_nested_node_id_in_root(const SpaceNode &snode, const bNode &node)
void snode_set_context(const bContext &C)
Definition node_edit.cc:678
void node_insert_on_link_flags(Main &bmain, SpaceNode &snode, bool is_new_node)
const NodesModifierData * nmd
Definition ED_node.hh:62