Blender V5.0
blender::nodes::GeoViewerItemsAccessor Struct Reference

#include <NOD_geo_viewer.hh>

Inherits blender::nodes::socket_items::SocketItemsAccessorDefaults.

Classes

struct  operator_idnames
struct  ui_idnames
struct  rna_names

Public Types

using ItemT = NodeGeometryViewerItem

Static Public Member Functions

static socket_items::SocketItemsRef< NodeGeometryViewerItemget_items_from_node (bNode &node)
static void copy_item (const NodeGeometryViewerItem &src, NodeGeometryViewerItem &dst)
static void destruct_item (NodeGeometryViewerItem *item)
static void blend_write_item (BlendWriter *writer, const ItemT &item)
static void blend_read_data_item (BlendDataReader *reader, ItemT &item)
static eNodeSocketDatatype get_socket_type (const NodeGeometryViewerItem &item)
static char ** get_name (NodeGeometryViewerItem &item)
static void init_with_socket_type_and_name (bNode &node, NodeGeometryViewerItem &item, const eNodeSocketDatatype socket_type, const char *name)
static bool supports_socket_type (const eNodeSocketDatatype socket_type, const int)
static std::string socket_identifier_for_item (const NodeGeometryViewerItem &item)

Static Public Attributes

static StructRNAitem_srna = &RNA_NodeGeometryViewerItem
static int node_type
static constexpr StringRefNull node_idname = "GeometryNodeViewer"
static constexpr bool has_type = true
static constexpr bool has_name = true
Static Public Attributes inherited from blender::nodes::socket_items::SocketItemsAccessorDefaults
static constexpr bool has_single_identifier_str = true
static constexpr bool has_name_validation = false
static constexpr bool has_custom_initial_name = false
static constexpr bool has_vector_dimensions = false
static constexpr bool can_have_empty_name = false
static constexpr char unique_name_separator = '.'

Detailed Description

Makes it possible to use various functions (e.g. the ones in NOD_socket_items.hh) for viewer node items.

Definition at line 18 of file NOD_geo_viewer.hh.

Member Typedef Documentation

◆ ItemT

Member Function Documentation

◆ blend_read_data_item()

void blender::nodes::GeoViewerItemsAccessor::blend_read_data_item ( BlendDataReader * reader,
ItemT & item )
static

Definition at line 516 of file node_geo_viewer.cc.

References BLO_read_string(), and NodeGeometryViewerItem::name.

◆ blend_write_item()

void blender::nodes::GeoViewerItemsAccessor::blend_write_item ( BlendWriter * writer,
const ItemT & item )
static

Definition at line 510 of file node_geo_viewer.cc.

References BLO_write_string(), and NodeGeometryViewerItem::name.

◆ copy_item()

void blender::nodes::GeoViewerItemsAccessor::copy_item ( const NodeGeometryViewerItem & src,
NodeGeometryViewerItem & dst )
inlinestatic

Definition at line 44 of file NOD_geo_viewer.hh.

References BLI_strdup_null(), and NodeGeometryViewerItem::name.

◆ destruct_item()

void blender::nodes::GeoViewerItemsAccessor::destruct_item ( NodeGeometryViewerItem * item)
inlinestatic

Definition at line 50 of file NOD_geo_viewer.hh.

References MEM_SAFE_FREE, and NodeGeometryViewerItem::name.

◆ get_items_from_node()

socket_items::SocketItemsRef< NodeGeometryViewerItem > blender::nodes::GeoViewerItemsAccessor::get_items_from_node ( bNode & node)
inlinestatic

Definition at line 38 of file NOD_geo_viewer.hh.

References bNode::storage.

◆ get_name()

char ** blender::nodes::GeoViewerItemsAccessor::get_name ( NodeGeometryViewerItem & item)
inlinestatic

Definition at line 63 of file NOD_geo_viewer.hh.

References NodeGeometryViewerItem::name.

◆ get_socket_type()

eNodeSocketDatatype blender::nodes::GeoViewerItemsAccessor::get_socket_type ( const NodeGeometryViewerItem & item)
inlinestatic

Definition at line 58 of file NOD_geo_viewer.hh.

References NodeGeometryViewerItem::socket_type.

◆ init_with_socket_type_and_name()

void blender::nodes::GeoViewerItemsAccessor::init_with_socket_type_and_name ( bNode & node,
NodeGeometryViewerItem & item,
const eNodeSocketDatatype socket_type,
const char * name )
inlinestatic

◆ socket_identifier_for_item()

std::string blender::nodes::GeoViewerItemsAccessor::socket_identifier_for_item ( const NodeGeometryViewerItem & item)
inlinestatic

◆ supports_socket_type()

bool blender::nodes::GeoViewerItemsAccessor::supports_socket_type ( const eNodeSocketDatatype socket_type,
const int  )
inlinestatic

Member Data Documentation

◆ has_name

bool blender::nodes::GeoViewerItemsAccessor::has_name = true
staticconstexpr

Definition at line 24 of file NOD_geo_viewer.hh.

◆ has_type

bool blender::nodes::GeoViewerItemsAccessor::has_type = true
staticconstexpr

Definition at line 23 of file NOD_geo_viewer.hh.

◆ item_srna

StructRNA * blender::nodes::GeoViewerItemsAccessor::item_srna = &RNA_NodeGeometryViewerItem
static

Definition at line 20 of file NOD_geo_viewer.hh.

Referenced by blender::nodes::node_geo_viewer_cc::node_declare().

◆ node_idname

StringRefNull blender::nodes::GeoViewerItemsAccessor::node_idname = "GeometryNodeViewer"
staticconstexpr

Definition at line 22 of file NOD_geo_viewer.hh.

◆ node_type

int blender::nodes::GeoViewerItemsAccessor::node_type
static

Definition at line 21 of file NOD_geo_viewer.hh.


The documentation for this struct was generated from the following files: