Blender V5.3
node_geometry_util.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
9#include "MEM_guardedalloc.h" // IWYU pragma: export
10
11#include "BKE_node.hh"
12#include "BKE_node_legacy_types.hh" // IWYU pragma: export
13#include "BKE_node_socket_value.hh" // IWYU pragma: export
14
15#include "NOD_geometry_exec.hh" // IWYU pragma: export
16#include "NOD_register.hh" // IWYU pragma: export
17#include "NOD_socket_declarations.hh" // IWYU pragma: export
18#include "NOD_socket_declarations_geometry.hh" // IWYU pragma: export
19
20#include "node_util.hh" // IWYU pragma: export
21
22namespace blender {
23
24namespace bke {
25struct BVHTreeFromMesh;
26}
27namespace nodes {
28class GatherAddNodeSearchParams;
30} // namespace nodes
31
33 UString idname,
34 std::optional<int16_t> legacy_type = std::nullopt);
36 const bNodeTree *ntree,
37 const char **r_disabled_hint);
38
39/* Same as geo_node_type_base but allows node use in the compositor by allowing compositor node
40 * trees in the poll function. */
42 UString idname,
43 std::optional<int16_t> legacy_type = std::nullopt);
44
45namespace nodes {
46
49
51
52namespace enums {
53
54const EnumPropertyItem *attribute_type_type_with_socket_fn(bContext * /*C*/,
55 PointerRNA * /*ptr*/,
56 PropertyRNA * /*prop*/,
57 bool *r_free);
58
59bool generic_attribute_type_supported(const EnumPropertyItem &item);
60
61} // namespace enums
62
63const EnumPropertyItem *grid_data_type_socket_items_filter_fn(bContext *C,
64 PointerRNA *ptr,
65 PropertyRNA *prop,
66 bool *r_free);
67const EnumPropertyItem *grid_socket_type_items_filter_fn(bContext *C,
68 PointerRNA *ptr,
69 PropertyRNA *prop,
70 bool *r_free);
71
73
75
76void draw_data_blocks(const bContext *C, ui::Layout &layout, PointerRNA &bake_rna);
77
78} // namespace nodes
79} // namespace blender
Read Blender memory allocation and freeing.
#define C
Definition RandGen.cpp:29
bool generic_attribute_type_supported(const EnumPropertyItem &item)
const EnumPropertyItem * attribute_type_type_with_socket_fn(bContext *, PointerRNA *, PropertyRNA *, bool *r_free)
void search_link_ops_for_tool_node(GatherLinkSearchOpParams &params)
bool check_tool_context_and_error(GeoNodeExecParams &params)
void draw_data_blocks(const bContext *C, ui::Layout &layout, PointerRNA &bake_rna)
const EnumPropertyItem * grid_socket_type_items_filter_fn(bContext *, PointerRNA *, PropertyRNA *, bool *r_free)
const EnumPropertyItem * grid_data_type_socket_items_filter_fn(bContext *, PointerRNA *, PropertyRNA *, bool *r_free)
void node_geo_sdf_grid_error_not_levelset(GeoNodeExecParams &params)
void node_geo_exec_with_missing_openvdb(GeoNodeExecParams &params)
void node_geo_exec_with_too_old_openvdb(GeoNodeExecParams &params)
BMesh Iterators.
bool geo_node_poll_default(const bke::bNodeType *, const bNodeTree *ntree, const char **r_disabled_hint)
void geo_node_type_base(bke::bNodeType *ntype, UString idname, const std::optional< int16_t > legacy_type)
void geo_cmp_node_type_base(bke::bNodeType *ntype, UString idname, const std::optional< int16_t > legacy_type)
Defines a node type.
Definition BKE_node.hh:265