42 return {&
storage->sample_attribute_items,
43 &
storage->sample_attribute_items_num,
56 MEM_SAFE_DELETE(item->
name);
91 return "Value_" + std::to_string(item.
identifier);
95 return "Attribute_" + std::to_string(item.
identifier);
101 return "Attribute_" + std::to_string(item.
identifier) +
"_Alpha";
CustomData interface, see also DNA_customdata_types.h.
#define storage(slot, qualifiers)
std::optional< eNodeSocketDatatype > custom_data_type_to_socket_type(eCustomDataType type)
std::optional< eCustomDataType > socket_type_to_custom_data_type(eNodeSocketDatatype type)
void set_item_name_and_make_unique(bNode &node, typename Accessor::ItemT &item, const char *value)
BLI_assert(slot->slot_subtype.map==BMO_OP_SLOT_SUBTYPE_MAP_FLT)
char * BLI_strdup_null(const char *str) ATTR_WARN_UNUSED_RESULT ATTR_MALLOC
static constexpr StringRefNull add_item
static constexpr StringRefNull remove_item
static constexpr StringRefNull move_item
static constexpr StringRefNull active_index
static constexpr StringRefNull items
static constexpr StringRefNull list
static socket_items::SocketItemsRef< NodeRaycastSampleAttributeItem > get_items_from_node(bNode &node)
static StructRNA ** item_srna
static std::string output_socket_identifier_for_item_alpha(const NodeRaycastSampleAttributeItem &item)
static char ** get_name(NodeRaycastSampleAttributeItem &item)
static constexpr bool has_type
static void init_with_socket_type_and_name(bNode &node, NodeRaycastSampleAttributeItem &item, const eNodeSocketDatatype socket_type, const char *name)
static constexpr bool has_single_identifier_str
NodeRaycastSampleAttributeItem ItemT
static void destruct_item(NodeRaycastSampleAttributeItem *item)
static eNodeSocketDatatype get_socket_type(const NodeRaycastSampleAttributeItem &item)
static std::string input_socket_identifier_for_item(const NodeRaycastSampleAttributeItem &item)
static bool supports_socket_type(const eNodeSocketDatatype socket_type, const int)
static constexpr bool has_name
static void blend_write_item(BlendWriter *writer, const ItemT &item)
static constexpr StringRefNull node_idname
static void copy_item(const NodeRaycastSampleAttributeItem &src, NodeRaycastSampleAttributeItem &dst)
static std::string output_socket_identifier_for_item(const NodeRaycastSampleAttributeItem &item)
static void blend_read_data_item(BlendDataReader *reader, ItemT &item)