Blender V5.0
node_add.cc File Reference
#include <numeric>
#include "AS_asset_representation.hh"
#include "MEM_guardedalloc.h"
#include "DNA_collection_types.h"
#include "DNA_node_types.h"
#include "DNA_texture_types.h"
#include "BLI_easing.h"
#include "BLI_listbase.h"
#include "BLI_math_geom.h"
#include "BLI_string.h"
#include "BLI_string_utf8.h"
#include "BLT_translation.hh"
#include "BKE_context.hh"
#include "BKE_image.hh"
#include "BKE_lib_id.hh"
#include "BKE_main.hh"
#include "BKE_main_invariants.hh"
#include "BKE_node.hh"
#include "BKE_node_legacy_types.hh"
#include "BKE_node_runtime.hh"
#include "BKE_node_tree_update.hh"
#include "BKE_report.hh"
#include "BKE_scene.hh"
#include "BKE_texture.h"
#include "IMB_colormanagement.hh"
#include "DEG_depsgraph_build.hh"
#include "ED_asset.hh"
#include "ED_asset_menu_utils.hh"
#include "ED_node.hh"
#include "ED_render.hh"
#include "ED_screen.hh"
#include "RNA_access.hh"
#include "RNA_define.hh"
#include "RNA_enum_types.hh"
#include "RNA_prototypes.hh"
#include "WM_api.hh"
#include "WM_types.hh"
#include "UI_view2d.hh"
#include "io_utils.hh"
#include <fmt/format.h>
#include "node_intern.hh"

Go to the source code of this file.

Classes

struct  blender::ed::space_node::RerouteCutsForSocket
struct  blender::ed::space_node::NodeStackAnimationData

Namespaces

namespace  blender
namespace  blender::ed
namespace  blender::ed::space_node

Functions

Utilities
static void blender::ed::space_node::position_node_based_on_mouse (bNode &node, const float2 &location)
bNodeblender::ed::space_node::add_node (const bContext &C, const StringRef idname, const float2 &location)
bNodeblender::ed::space_node::add_static_node (const bContext &C, int type, const float2 &location)
static void blender::ed::space_node::node_templateID_assign (bContext *C, bNodeTree *node_tree)
Add Reroute Operator
std::optional< float2blender::ed::space_node::link_path_intersection (const bNodeLink &link, const Span< float2 > path)
static wmOperatorStatus blender::ed::space_node::add_reroute_exec (bContext *C, wmOperator *op)
void blender::ed::space_node::NODE_OT_add_reroute (wmOperatorType *ot)
Add Node Group Operator
static bool blender::ed::space_node::node_group_add_poll (const bNodeTree &node_tree, const bNodeTree &node_group, ReportList &reports)
static wmOperatorStatus blender::ed::space_node::node_add_group_exec (bContext *C, wmOperator *op)
static bool blender::ed::space_node::node_add_group_poll (bContext *C)
static bool blender::ed::space_node::node_swap_group_poll (bContext *C)
static wmOperatorStatus blender::ed::space_node::node_add_group_invoke (bContext *C, wmOperator *op, const wmEvent *event)
void blender::ed::space_node::NODE_OT_add_group (wmOperatorType *ot)
Add Node Group Asset Operator
static bool blender::ed::space_node::add_node_group_asset (const bContext &C, const asset_system::AssetRepresentation &asset, ReportList &reports)
static wmOperatorStatus blender::ed::space_node::node_add_group_asset_invoke (bContext *C, wmOperator *op, const wmEvent *event)
static wmOperatorStatus blender::ed::space_node::node_swap_group_asset_invoke (bContext *C, wmOperator *op, const wmEvent *event)
static std::string blender::ed::space_node::node_add_group_asset_get_description (bContext *C, wmOperatorType *, PointerRNA *ptr)
void blender::ed::space_node::NODE_OT_add_group_asset (wmOperatorType *ot)
void blender::ed::space_node::NODE_OT_swap_group_asset (wmOperatorType *ot)
Add Node Object Operator
static wmOperatorStatus blender::ed::space_node::node_add_object_exec (bContext *C, wmOperator *op)
static wmOperatorStatus blender::ed::space_node::node_add_object_invoke (bContext *C, wmOperator *op, const wmEvent *event)
static bool blender::ed::space_node::node_add_object_poll (bContext *C)
void blender::ed::space_node::NODE_OT_add_object (wmOperatorType *ot)
Add Node Collection Operator
static wmOperatorStatus blender::ed::space_node::node_add_collection_exec (bContext *C, wmOperator *op)
static wmOperatorStatus blender::ed::space_node::node_add_collection_invoke (bContext *C, wmOperator *op, const wmEvent *event)
static bool blender::ed::space_node::node_add_collection_poll (bContext *C)
void blender::ed::space_node::NODE_OT_add_collection (wmOperatorType *ot)
Add Image Node Operator
static bool blender::ed::space_node::node_add_image_poll (bContext *C)
static wmOperatorStatus blender::ed::space_node::node_add_nodes_modal (bContext *C, wmOperator *op, const wmEvent *event)
static wmOperatorStatus blender::ed::space_node::node_add_image_exec (bContext *C, wmOperator *op)
static wmOperatorStatus blender::ed::space_node::node_add_image_invoke (bContext *C, wmOperator *op, const wmEvent *event)
void blender::ed::space_node::NODE_OT_add_image (wmOperatorType *ot)
Add Mask Node Operator
static bool blender::ed::space_node::node_add_mask_poll (bContext *C)
static wmOperatorStatus blender::ed::space_node::node_add_mask_exec (bContext *C, wmOperator *op)
void blender::ed::space_node::NODE_OT_add_mask (wmOperatorType *ot)
Add Material Operator
static wmOperatorStatus blender::ed::space_node::node_add_material_exec (bContext *C, wmOperator *op)
static wmOperatorStatus blender::ed::space_node::node_add_material_invoke (bContext *C, wmOperator *op, const wmEvent *event)
static bool blender::ed::space_node::node_add_material_poll (bContext *C)
void blender::ed::space_node::NODE_OT_add_material (wmOperatorType *ot)
Add Import Node Operator
static wmOperatorStatus blender::ed::space_node::node_add_import_node_exec (bContext *C, wmOperator *op)
static wmOperatorStatus blender::ed::space_node::node_add_import_node_invoke (bContext *C, wmOperator *op, const wmEvent *event)
static bool blender::ed::space_node::node_add_import_node_poll (bContext *C)
void blender::ed::space_node::NODE_OT_add_import_node (wmOperatorType *ot)
Add Group Input Node Operator
static wmOperatorStatus blender::ed::space_node::node_add_group_input_node_exec (bContext *C, wmOperator *op)
static wmOperatorStatus blender::ed::space_node::node_add_group_input_node_invoke (bContext *C, wmOperator *op, const wmEvent *event)
static bool blender::ed::space_node::node_add_group_input_node_poll (bContext *C)
void blender::ed::space_node::NODE_OT_add_group_input_node (wmOperatorType *ot)
Add Color Operator
static wmOperatorStatus blender::ed::space_node::node_add_color_exec (bContext *C, wmOperator *op)
static wmOperatorStatus blender::ed::space_node::node_add_color_invoke (bContext *C, wmOperator *op, const wmEvent *event)
static bool blender::ed::space_node::node_add_color_poll (bContext *C)
void blender::ed::space_node::NODE_OT_add_color (wmOperatorType *ot)
New Node Tree Operator
static bNodeTreeblender::ed::space_node::new_node_tree_impl (bContext *C, StringRef treename, StringRef idname)
static wmOperatorStatus blender::ed::space_node::new_node_tree_exec (bContext *C, wmOperator *op)
static const EnumPropertyItemblender::ed::space_node::new_node_tree_type_itemf (bContext *, PointerRNA *, PropertyRNA *, bool *r_free)
void blender::ed::space_node::NODE_OT_new_node_tree (wmOperatorType *ot)
New Compositing Node Tree Operator
static wmOperatorStatus blender::ed::space_node::new_compositing_node_group_exec (bContext *C, wmOperator *op)
static wmOperatorStatus blender::ed::space_node::new_compositing_node_group_invoke (bContext *C, wmOperator *op, const wmEvent *)
void blender::ed::space_node::NODE_OT_new_compositing_node_group (wmOperatorType *ot)
Duplicate Compositing Node Tree Operator
static wmOperatorStatus blender::ed::space_node::duplicate_compositing_node_group_exec (bContext *C, wmOperator *)
void blender::ed::space_node::NODE_OT_duplicate_compositing_node_group (wmOperatorType *ot)
New Compositor Sequencer Node Group Operator
static void blender::ed::space_node::initialize_compositor_sequencer_node_group (const bContext *C, bNodeTree &ntree)
static wmOperatorStatus blender::ed::space_node::new_compositor_sequencer_node_group_exec (bContext *C, wmOperator *op)
void blender::ed::space_node::NODE_OT_new_compositor_sequencer_node_group (wmOperatorType *operator_type)