Blender  V3.3
Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
SocketType Struct Reference

#include <node_type.h>

Public Types

enum  Type {
  UNDEFINED , BOOLEAN , FLOAT , INT ,
  UINT , 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
}
 
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_INCOMING = (1 << 7) , LINK_NORMAL = (1 << 8) , LINK_POSITION = (1 << 9) , LINK_TANGENT = (1 << 10) ,
  DEFAULT_LINK_MASK = (1 << 4) | (1 << 5) | (1 << 6) | (1 << 7) | (1 << 8) | (1 << 9) | (1 << 10)
}
 

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 voidzero_default_value ()
 
static bool is_float3 (Type type)
 

Public Attributes

ustring name
 
Type type
 
int struct_offset
 
const voiddefault_value
 
const NodeEnumenum_values
 
const NodeTypenode_type
 
int flags
 
ustring ui_name
 
SocketModifiedFlags modified_flag_bit
 

Detailed Description

Definition at line 22 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_INCOMING 
LINK_NORMAL 
LINK_POSITION 
LINK_TANGENT 
DEFAULT_LINK_MASK 

Definition at line 54 of file node_type.h.

◆ Type

Enumerator
UNDEFINED 
BOOLEAN 
FLOAT 
INT 
UINT 
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 

Definition at line 23 of file node_type.h.

Member Function Documentation

◆ is_array()

bool SocketType::is_array ( void  ) const

Definition at line 17 of file node_type.cpp.

References BOOLEAN_ARRAY, and type.

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

◆ is_float3()

bool SocketType::is_float3 ( Type  type)
static

◆ max_size()

size_t SocketType::max_size ( )
static

Definition at line 85 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 12 of file node_type.cpp.

References type.

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

◆ size() [2/2]

size_t SocketType::size ( Type  type)
static

◆ type_name()

ustring SocketType::type_name ( Type  type)
static

Definition at line 96 of file node_type.cpp.

References names, and type.

◆ zero_default_value()

void * SocketType::zero_default_value ( )
static

Definition at line 90 of file node_type.cpp.

References transform_zero().

Member Data Documentation

◆ default_value

const void* SocketType::default_value

Definition at line 75 of file node_type.h.

Referenced by Node::set_default_value().

◆ enum_values

const NodeEnum* SocketType::enum_values

◆ flags

int SocketType::flags

◆ modified_flag_bit

SocketModifiedFlags SocketType::modified_flag_bit

Definition at line 80 of file node_type.h.

◆ name

ustring SocketType::name

◆ node_type

const NodeType* SocketType::node_type

Definition at line 77 of file node_type.h.

Referenced by xml_read_node().

◆ struct_offset

int SocketType::struct_offset

◆ type

Type SocketType::type

◆ ui_name

ustring SocketType::ui_name

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