Blender V5.3
ED_geometry.hh
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2020 Blender Authors
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later */
4
8
9#pragma once
10
11#include <string>
12
14#include "BLI_string_ref.hh"
15
16#include "BKE_screen.hh"
17
18namespace blender {
19
20struct ReportList;
21struct PointerRNA;
22struct PropertyRNA;
23class AttributeOwner;
24namespace bke {
25enum class AttrDomain : int8_t;
26enum class AttrType : int16_t;
28} // namespace bke
29namespace nodes::eval_log {
30class NodesEvalLog;
31}
32
33namespace ed::geometry {
34
35/* -------------------------------------------------------------------- */
41
43PropertyRNA *rna_property_for_type(PointerRNA &ptr, const bke::AttrType type);
46 const bke::AttrType type,
47 void *buffer);
48void rna_property_for_attribute_type_set_value(PointerRNA &ptr, PropertyRNA &prop, GPointer value);
49bool attribute_set_poll(bContext &C, const ID &object_data);
50
52
54
59void register_node_group_operators(const bContext &C);
60void ui_template_node_operator_registration_errors(ui::Layout &layout, StringRefNull idname_py);
61
68bool convert_attribute(AttributeOwner &owner,
69 bke::MutableAttributeAccessor attributes,
70 StringRef name,
71 bke::AttrDomain dst_domain,
72 bke::AttrType dst_type,
73 ReportList *reports);
74
76 std::string node_group_name;
77 std::unique_ptr<nodes::eval_log::NodesEvalLog> log;
78
79 GeoOperatorLog() = default;
81};
82
84
87
89 const bContext &C,
90 StringRef path);
92
93} // namespace ed::geometry
94} // namespace blender
#define C
Definition RandGen.cpp:29
PropertyRNA * rna_property_for_type(PointerRNA &ptr, const bke::AttrType type)
void ui_template_node_operator_asset_root_items(ui::Layout &layout, const bContext &C)
GPointer rna_property_for_attribute_type_retrieve_value(PointerRNA &ptr, const bke::AttrType type, void *buffer)
StringRefNull rna_property_name_for_type(const bke::AttrType type)
MenuType node_group_operator_assets_menu_unassigned()
const GeoOperatorLog & node_group_operator_static_eval_log()
void register_rna_properties_for_attribute_types(StructRNA &srna)
void ui_template_node_operator_asset_menu_items(ui::Layout &layout, const bContext &C, const StringRef path)
void rna_property_for_attribute_type_set_value(PointerRNA &ptr, PropertyRNA &prop, const GPointer value)
bool attribute_set_poll(bContext &C, const ID &object_data)
void ui_template_node_operator_registration_errors(ui::Layout &layout, const StringRefNull idname_py)
bool convert_attribute(AttributeOwner &owner, bke::MutableAttributeAccessor attributes, const StringRef name, const bke::AttrDomain dst_domain, const bke::AttrType dst_type, ReportList *reports)
void register_node_group_operators(const bContext &C)
BMesh Iterators.
signed char int8_t
Definition BKE_text.h:76
signed short int16_t
Definition BKE_text.h:77
std::unique_ptr< nodes::eval_log::NodesEvalLog > log