Blender  V2.93
Classes | Enumerations | Functions
BKE_node_ui_storage.hh File Reference
#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 NodeUIStorageBKE_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)
 

Enumeration Type Documentation

◆ NodeWarningType

enum NodeWarningType
strong
Enumerator
Error 
Warning 
Info 

Definition at line 70 of file BKE_node_ui_storage.hh.

Function Documentation

◆ BKE_node_tree_ui_storage_get_from_context()

const NodeUIStorage* BKE_node_tree_ui_storage_get_from_context ( const bContext C,
const bNodeTree ntree,
const bNode node 
)

◆ BKE_nodetree_attribute_hint_add()

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 
)

◆ BKE_nodetree_error_message_add()

void BKE_nodetree_error_message_add ( bNodeTree ntree,
const NodeTreeEvaluationContext context,
const bNode node,
const NodeWarningType  type,
std::string  message 
)

◆ BKE_nodetree_ui_storage_free_for_context()

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().