Blender V4.3
SocketType Struct Reference

#include <node_type.h>

Public Types

enum  Type {
  UNDEFINED = 0 , BOOLEAN , FLOAT , INT ,
  UINT , UINT64 , COLOR , VECTOR ,
  POINT , NORMAL , POINT2 , CLOSURE ,
  STRING , ENUM , TRANSFORM , NODE ,
  BOOLEAN_ARRAY , FLOAT_ARRAY , INT_ARRAY , COLOR_ARRAY ,
  VECTOR_ARRAY , POINT_ARRAY , NORMAL_ARRAY , POINT2_ARRAY ,
  STRING_ARRAY , TRANSFORM_ARRAY , NODE_ARRAY , NUM_TYPES
}
 
enum  Flags {
  LINKABLE = (1 << 0) , ANIMATABLE = (1 << 1) , SVM_INTERNAL = (1 << 2) , OSL_INTERNAL = (1 << 3) ,
  INTERNAL = (1 << 2) | (1 << 3) , LINK_TEXTURE_GENERATED = (1 << 4) , LINK_TEXTURE_NORMAL = (1 << 5) , LINK_TEXTURE_UV = (1 << 6) ,
  LINK_TEXTURE_INCOMING = (1 << 7) , LINK_INCOMING = (1 << 8) , LINK_NORMAL = (1 << 9) , LINK_POSITION = (1 << 10) ,
  LINK_TANGENT = (1 << 11) , LINK_OSL_INITIALIZER = (1 << 12) , DEFAULT_LINK_MASK
}
 

Public Member Functions

size_t size () const
 
bool is_array () const
 

Static Public Member Functions

static size_t size (Type type)
 
static size_t max_size ()
 
static ustring type_name (Type type)
 
static void * zero_default_value ()
 
static bool is_float3 (Type type)
 

Public Attributes

ustring name
 
Type type
 
int struct_offset
 
const void * default_value
 
const NodeEnumenum_values
 
const NodeTypenode_type
 
int flags
 
ustring ui_name
 
SocketModifiedFlags modified_flag_bit
 

Detailed Description

Definition at line 23 of file node_type.h.

Member Enumeration Documentation

◆ Flags

Enumerator
LINKABLE 
ANIMATABLE 
SVM_INTERNAL 
OSL_INTERNAL 
INTERNAL 
LINK_TEXTURE_GENERATED 
LINK_TEXTURE_NORMAL 
LINK_TEXTURE_UV 
LINK_TEXTURE_INCOMING 
LINK_INCOMING 
LINK_NORMAL 
LINK_POSITION 
LINK_TANGENT 
LINK_OSL_INITIALIZER 
DEFAULT_LINK_MASK 

Definition at line 58 of file node_type.h.

◆ Type

Enumerator
UNDEFINED 
BOOLEAN 
FLOAT 
INT 
UINT 
UINT64 
COLOR 
VECTOR 
POINT 
NORMAL 
POINT2 
CLOSURE 
STRING 
ENUM 
TRANSFORM 
NODE 
BOOLEAN_ARRAY 
FLOAT_ARRAY 
INT_ARRAY 
COLOR_ARRAY 
VECTOR_ARRAY 
POINT_ARRAY 
NORMAL_ARRAY 
POINT2_ARRAY 
STRING_ARRAY 
TRANSFORM_ARRAY 
NODE_ARRAY 
NUM_TYPES 

Definition at line 24 of file node_type.h.

Member Function Documentation

◆ is_array()

bool SocketType::is_array ( ) const

Definition at line 18 of file node_type.cpp.

References BOOLEAN_ARRAY.

Referenced by Node::copy_value(), and Node::set_value().

◆ is_float3()

◆ max_size()

size_t SocketType::max_size ( )
static

Definition at line 89 of file node_type.cpp.

Referenced by OSLNode::create(), and OSLNode::input_default_value().

◆ size() [1/2]

CCL_NAMESPACE_BEGIN size_t SocketType::size ( ) const

Definition at line 13 of file node_type.cpp.

References size().

Referenced by Node::copy_value(), Node::get_total_size_in_bytes(), Node::set_default_value(), and size().

◆ size() [2/2]

◆ type_name()

ustring SocketType::type_name ( Type type)
static

Definition at line 100 of file node_type.cpp.

References int, and NUM_TYPES.

◆ zero_default_value()

void * SocketType::zero_default_value ( )
static

Definition at line 94 of file node_type.cpp.

References transform_zero().

Member Data Documentation

◆ default_value

const void* SocketType::default_value

◆ enum_values

◆ flags

◆ modified_flag_bit

SocketModifiedFlags SocketType::modified_flag_bit

Definition at line 87 of file node_type.h.

Referenced by NodeType::register_input().

◆ name

◆ node_type

const NodeType* SocketType::node_type

Definition at line 84 of file node_type.h.

Referenced by NodeType::register_input(), NodeType::register_output(), and xml_read_node().

◆ struct_offset

◆ type

◆ ui_name

ustring SocketType::ui_name

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