Blender V5.0
blender::nodes::node_fn_bit_math_cc Namespace Reference

Classes

class  SocketSearchOp

Enumerations

enum  BitMathOperation : int16_t {
  And = 0 , Or = 1 , Xor = 2 , Not = 3 ,
  Shift = 4 , Rotate = 5
}

Functions

static void node_declare (NodeDeclarationBuilder &b)
static void node_layout (uiLayout *layout, bContext *, PointerRNA *ptr)
static void node_gather_link_searches (GatherLinkSearchOpParams &params)
static void node_label (const bNodeTree *, const bNode *node, char *label, int label_maxncpy)
static const mf::MultiFunction * get_multi_function (const bNode &bnode)
static void node_build_multi_function (NodeMultiFunctionBuilder &builder)
static void node_rna (StructRNA *srna)
static void node_register ()

Variables

const std::array< EnumPropertyItem, 7 > bit_math_operation_items
static constexpr int32_t max_shift = sizeof(int32_t) * CHAR_BIT - 1
static constexpr int32_t min_shift = -max_shift

Enumeration Type Documentation

◆ BitMathOperation

Enumerator
And 
Or 
Xor 
Not 
Shift 
Rotate 

Definition at line 21 of file node_fn_bit_math.cc.

Function Documentation

◆ get_multi_function()

const mf::MultiFunction * blender::nodes::node_fn_bit_math_cc::get_multi_function ( const bNode & bnode)
static

◆ node_build_multi_function()

void blender::nodes::node_fn_bit_math_cc::node_build_multi_function ( NodeMultiFunctionBuilder & builder)
static

◆ node_declare()

void blender::nodes::node_fn_bit_math_cc::node_declare ( NodeDeclarationBuilder & b)
static

Definition at line 69 of file node_fn_bit_math.cc.

References b, ELEM, max_shift, min, min_shift, Not, Rotate, and Shift.

Referenced by node_register().

◆ node_gather_link_searches()

void blender::nodes::node_fn_bit_math_cc::node_gather_link_searches ( GatherLinkSearchOpParams & params)
static

Definition at line 102 of file node_fn_bit_math.cc.

References bit_math_operation_items, IFACE_, params, and SOCK_INT.

Referenced by node_register().

◆ node_label()

void blender::nodes::node_fn_bit_math_cc::node_label ( const bNodeTree * ,
const bNode * node,
char * label,
int label_maxncpy )
static

◆ node_layout()

void blender::nodes::node_fn_bit_math_cc::node_layout ( uiLayout * layout,
bContext * ,
PointerRNA * ptr )
static

Definition at line 85 of file node_fn_bit_math.cc.

References uiLayout::prop(), ptr, and UI_ITEM_NONE.

Referenced by node_register().

◆ node_register()

◆ node_rna()

void blender::nodes::node_fn_bit_math_cc::node_rna ( StructRNA * srna)
static

Variable Documentation

◆ bit_math_operation_items

const std::array<EnumPropertyItem, 7> blender::nodes::node_fn_bit_math_cc::bit_math_operation_items

Definition at line 30 of file node_fn_bit_math.cc.

Referenced by node_gather_link_searches(), node_label(), and node_rna().

◆ max_shift

int32_t blender::nodes::node_fn_bit_math_cc::max_shift = sizeof(int32_t) * CHAR_BIT - 1
staticconstexpr

Definition at line 66 of file node_fn_bit_math.cc.

Referenced by node_declare().

◆ min_shift

int32_t blender::nodes::node_fn_bit_math_cc::min_shift = -max_shift
staticconstexpr

Definition at line 67 of file node_fn_bit_math.cc.

Referenced by node_declare().