Blender V5.3
node_group_operator.cc File Reference
#include "BLI_array_utils.hh"
#include "BLI_index_mask.hh"
#include "BLI_listbase.hh"
#include "BLI_rect.hh"
#include "BLI_string_utf8.hh"
#include "DNA_key_types.h"
#include "ED_curves.hh"
#include "ED_grease_pencil.hh"
#include "ED_object.hh"
#include "ED_screen.hh"
#include "ED_select_utils.hh"
#include "ED_view3d.hh"
#include "WM_api.hh"
#include "BKE_asset.hh"
#include "BKE_compute_context_cache.hh"
#include "BKE_compute_contexts.hh"
#include "BKE_context.hh"
#include "BKE_curves.hh"
#include "BKE_customdata.hh"
#include "BKE_editmesh.hh"
#include "BKE_geometry_set.hh"
#include "BKE_global.hh"
#include "BKE_grease_pencil.hh"
#include "BKE_idprop_hash.hh"
#include "BKE_layer.hh"
#include "BKE_lib_id.hh"
#include "BKE_lib_query.hh"
#include "BKE_main.hh"
#include "BKE_material.hh"
#include "BKE_mesh.hh"
#include "BKE_mesh_wrapper.hh"
#include "BKE_node_runtime.hh"
#include "BKE_object.hh"
#include "BKE_paint.hh"
#include "BKE_paint_bvh.hh"
#include "BKE_pointcloud.hh"
#include "BKE_report.hh"
#include "BKE_scene.hh"
#include "BKE_screen.hh"
#include "BKE_workspace.hh"
#include "DNA_object_types.h"
#include "DNA_scene_types.h"
#include "DEG_depsgraph.hh"
#include "DEG_depsgraph_build.hh"
#include "DEG_depsgraph_query.hh"
#include "RNA_access.hh"
#include "RNA_define.hh"
#include "RNA_enum_types.hh"
#include "RNA_prototypes.hh"
#include "UI_interface_layout.hh"
#include "UI_resources.hh"
#include "ED_asset.hh"
#include "ED_asset_menu_utils.hh"
#include "ED_geometry.hh"
#include "ED_mesh.hh"
#include "ED_sculpt.hh"
#include "BLT_translation.hh"
#include "NOD_dependencies.hh"
#include "NOD_geometry_nodes_caller_ui.hh"
#include "NOD_geometry_nodes_execute.hh"
#include "NOD_geometry_nodes_lazy_function.hh"
#include "NOD_geometry_nodes_srna.hh"
#include "AS_asset_catalog.hh"
#include "AS_asset_catalog_path.hh"
#include "AS_asset_library.hh"
#include "AS_asset_representation.hh"
#include "PRF_profile.hh"
#include <xxhash.h>
#include "geometry_intern.hh"
#include <fmt/format.h>

Go to the source code of this file.

Classes

struct  blender::ed::geometry::ErrorsForType
struct  blender::ed::geometry::RegistrationData
struct  blender::ed::geometry::RegistrationData::TypeTreeItem
struct  blender::ed::geometry::OperatorTypeData
struct  blender::ed::geometry::OperatorTypeData::LocalRef
class  blender::ed::geometry::MeshState
struct  blender::ed::geometry::GetIDName
class  blender::ed::geometry::AssetRepresentation

Namespaces

namespace  blender
 BMesh Iterators.
namespace  blender::ed
namespace  blender::ed::geometry

Functions

static RegistrationData & blender::ed::geometry::get_registration_data ()
static std::optional< std::string > blender::ed::geometry::operator_idname_get (const StringRefNull custom_idname, RegistrationData::Errors *errors)
static std::optional< StringRefNull > blender::ed::geometry::custom_idname_for_asset (const AssetRepresentation &asset)
static std::optional< StringRefNull > blender::ed::geometry::custom_idname_for_group (const bNodeTree &group)
Menu
GeometryNodeAssetTraitFlag blender::ed::geometry::asset_flag_for_context (const Object &active_object)
static bool blender::ed::geometry::asset_menu_poll (const bContext *C, MenuType *)
static GeometryNodeAssetTraitFlag blender::ed::geometry::asset_flag_for_context (const ObjectType type, const eObjectMode mode)
static Set< StringRef > blender::ed::geometry::get_builtin_menus (const ObjectType object_type, const eObjectMode mode)
static bool blender::ed::geometry::menu_operators_poll (const bContext &C, const RegistrationData::TypeTreeItem &node)
static void blender::ed::geometry::add_node_group_operator_button (const bContext *C, ui::Layout &layout, wmOperatorType *ot)
static void blender::ed::geometry::catalog_assets_draw (const bContext *C, Menu *menu)
MenuType blender::ed::geometry::node_group_operator_assets_menu ()
static void blender::ed::geometry::catalog_assets_draw_unassigned (const bContext *C, Menu *menu)
MenuType blender::ed::geometry::node_group_operator_assets_menu_unassigned ()
void blender::ed::geometry::ui_template_node_operator_asset_menu_items (ui::Layout &layout, const bContext &C, const StringRef path)
void blender::ed::geometry::ui_template_node_operator_asset_root_items (ui::Layout &layout, const bContext &C)

Operator

using blender::ed::geometry::OperatorsToRegister = CustomIDVectorSet<std::unique_ptr<OperatorTypeData>, GetIDName>
static const bNodeTree * blender::ed::geometry::get_asset_or_local_node_group (const bContext &C, const wmOperatorType &ot, ReportList *reports)
static const bNodeTree * blender::ed::geometry::get_node_group (const bContext &C, const wmOperatorType &ot, ReportList *reports)
static GeoOperatorLog & blender::ed::geometry::get_static_eval_log ()
const GeoOperatorLog & blender::ed::geometry::node_group_operator_static_eval_log ()
static void blender::ed::geometry::find_verbose_log_contexts (const Main &bmain, Set< ComputeContextHash > &r_verbose_log_contexts)
static const ImplicitSharingInfo * blender::ed::geometry::get_vertex_group_sharing_info (const Mesh &mesh)
static std::string blender::ed::geometry::shape_key_attribute_name (const KeyBlock &kb)
static void blender::ed::geometry::add_shape_keys_as_attributes (Mesh &mesh, const Key &key)
static void blender::ed::geometry::store_attributes_to_shape_keys (const Mesh &mesh, Key &key)
static void blender::ed::geometry::remove_shape_key_attributes (Mesh &mesh, const Key &key)
static bke::GeometrySet blender::ed::geometry::get_original_geometry_eval_copy (Depsgraph &depsgraph, Object &object, nodes::GeoNodesOperatorData &operator_data, Vector< MeshState > &orig_mesh_states)
static void blender::ed::geometry::store_result_geometry (const bContext &C, const wmOperator &op, const Depsgraph &depsgraph, Main &bmain, Scene &scene, Object &object, const RegionView3D *rv3d, bke::GeometrySet geometry)
static void blender::ed::geometry::gather_node_group_ids (const bNodeTree &node_tree, Set< ID * > &ids)
static std::optional< ID_Type > blender::ed::geometry::socket_type_to_id_type (const eNodeSocketDatatype socket_type)
static Map< std::string, ID * > blender::ed::geometry::gather_input_ids (const Main &bmain, const bNodeTree &node_group, const PointerRNA &properties_ptr)
static Depsgraph * blender::ed::geometry::build_extra_depsgraph (const Depsgraph &depsgraph_active, const Set< ID * > &ids)
static bool blender::ed::geometry::object_has_editable_data (const Main &bmain, const Object &object)
static Vector< Object * > blender::ed::geometry::gather_supported_objects (const bContext &C, const Main &bmain, const eObjectMode mode)
static void blender::ed::geometry::store_input_node_values_rna_props (const bContext &C, wmOperator &op, const wmEvent &event)
static wmOperatorStatus blender::ed::geometry::run_node_group_exec (bContext *C, wmOperator *op)
static wmOperatorStatus blender::ed::geometry::run_node_group_invoke (bContext *C, wmOperator *op, const wmEvent *event)
static void blender::ed::geometry::run_node_group_ui (bContext *C, wmOperator *op)
static bool blender::ed::geometry::run_node_ui_poll (wmOperatorType *, PointerRNA *ptr)
static bool blender::ed::geometry::run_node_group_poll (bContext *C, wmOperatorType *ot)
static Array< EnumPropertyItem, 0 > blender::ed::geometry::get_input_enum_items (const IDProperty &input_idprop)
static void blender::ed::geometry::make_common_type_prop (StructRNA &srna, const EnumPropertyItem *items, const nodes::GeometryNodesInputType default_type)
static void blender::ed::geometry::make_common_attribute_name_prop (StructRNA &srna, const StringRefNull name, const StringRefNull description, const IDProperty &input_idprop)
static void blender::ed::geometry::make_common_value_and_attribute_props (StructRNA &srna, const StringRefNull name, const StringRefNull description, const IDProperty &input_idprop)
static void blender::ed::geometry::make_common_value_props (StructRNA &srna)
static StructRNA * blender::ed::geometry::get_input_socket_struct_rna (IDProperty &input_idprop, OperatorTypeData &type_data)
static StructRNA * blender::ed::geometry::create_inputs_srna (const IDProperty &properties, OperatorTypeData &type_data)
static StructRNA * blender::ed::geometry::create_panels_srna (const IDProperty &properties, Vector< StructRNA * > &r_generated)
static void blender::ed::geometry::register_node_tool (wmOperatorType *ot, std::unique_ptr< OperatorTypeData > &type_data_ptr)
void blender::ed::geometry::ui_template_node_operator_registration_errors (ui::Layout &layout, const StringRefNull idname_py)
static RegistrationData::TypeTreeItem * blender::ed::geometry::find_tree_child (const Span< std::unique_ptr< RegistrationData::TypeTreeItem > > children, const StringRef name)
static const RegistrationData::TypeTreeItem * blender::ed::geometry::find_tree_node (const Span< std::unique_ptr< RegistrationData::TypeTreeItem > > nodes, StringRef path)
static RegistrationData::TypeTreeItem & blender::ed::geometry::ensure_child (Vector< std::unique_ptr< RegistrationData::TypeTreeItem > > &children, const StringRef name)
static void blender::ed::geometry::tree_add_type (Vector< std::unique_ptr< RegistrationData::TypeTreeItem > > &nodes, StringRef path, wmOperatorType *ot)
static OperatorsToRegister blender::ed::geometry::get_node_tools_type_data (const bContext &C, Main &bmain, RegistrationData::Errors &errors)
static void blender::ed::geometry::show_error_reports (const bContext &C, RegistrationData::Errors errors)
void blender::ed::geometry::register_node_group_operators (const bContext &C)