|
Blender
V2.93
|
#include <mutex>#include "BLI_hash.hh"#include "BLI_map.hh"#include "BLI_session_uuid.h"#include "BLI_set.hh"#include "DNA_ID.h"#include "DNA_customdata_types.h"#include "DNA_modifier_types.h"#include "DNA_session_uuid_types.h"#include "BKE_attribute.h"Go to the source code of this file.
Classes | |
| class | NodeTreeEvaluationContext |
| struct | NodeWarning |
| struct | AvailableAttributeInfo |
| struct | NodeUIStorage |
| struct | NodeTreeUIStorage |
Enumerations | |
| enum class | NodeWarningType { Error , Warning , Info } |
Functions | |
| const NodeUIStorage * | BKE_node_tree_ui_storage_get_from_context (const bContext *C, const bNodeTree &ntree, const bNode &node) |
| void | BKE_nodetree_ui_storage_free_for_context (bNodeTree &ntree, const NodeTreeEvaluationContext &context) |
| void | BKE_nodetree_error_message_add (bNodeTree &ntree, const NodeTreeEvaluationContext &context, const bNode &node, const NodeWarningType type, std::string message) |
| void | BKE_nodetree_attribute_hint_add (bNodeTree &ntree, const NodeTreeEvaluationContext &context, const bNode &node, const blender::StringRef attribute_name, const AttributeDomain domain, const CustomDataType data_type) |
|
strong |
| Enumerator | |
|---|---|
| Error | |
| Warning | |
| Info | |
Definition at line 70 of file BKE_node_ui_storage.hh.
| const NodeUIStorage* BKE_node_tree_ui_storage_get_from_context | ( | const bContext * | C, |
| const bNodeTree & | ntree, | ||
| const bNode & | node | ||
| ) |
Definition at line 55 of file node_ui_storage.cc.
References BKE_object_active_modifier(), C, context, NodeTreeUIStorage::context_map, CTX_data_active_object(), blender::Map< Key, Value, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::lookup_ptr(), blender::Map< Key, Value, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::lookup_ptr_as(), node, ntree, and bNodeTree::ui_storage.
Referenced by node_add_error_message_button(), and node_geometry_add_attribute_search_button().
| void BKE_nodetree_attribute_hint_add | ( | bNodeTree & | ntree, |
| const NodeTreeEvaluationContext & | context, | ||
| const bNode & | node, | ||
| const blender::StringRef | attribute_name, | ||
| const AttributeDomain | domain, | ||
| const CustomDataType | data_type | ||
| ) |
Definition at line 158 of file node_ui_storage.cc.
References blender::Set< Key, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::add_as(), NodeUIStorage::attribute_hints, context, node, node_ui_storage_ensure(), and ntree.
Referenced by log_ui_hints().
| void BKE_nodetree_error_message_add | ( | bNodeTree & | ntree, |
| const NodeTreeEvaluationContext & | context, | ||
| const bNode & | node, | ||
| const NodeWarningType | type, | ||
| std::string | message | ||
| ) |
Definition at line 146 of file node_ui_storage.cc.
References blender::Vector< T, InlineBufferCapacity, Allocator >::append(), context, node, node_error_message_log(), node_ui_storage_ensure(), ntree, type, and NodeUIStorage::warnings.
Referenced by blender::nodes::GeoNodeExecParams::error_message_add().
| void BKE_nodetree_ui_storage_free_for_context | ( | bNodeTree & | ntree, |
| const NodeTreeEvaluationContext & | context | ||
| ) |
Removes only the UI data associated with a particular evaluation context. The same node tree can be used for execution in multiple places, but the entire UI storage can't be removed when one execution starts, or all of the data associated with the node tree would be lost.
Definition at line 88 of file node_ui_storage.cc.
References context, NodeTreeUIStorage::context_map, NodeTreeUIStorage::context_map_mutex, ntree, blender::Map< Key, Value, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::remove(), and bNodeTree::ui_storage.
Referenced by reset_tree_ui_storage().