Blender  V2.93
Namespaces | Functions | Variables
node_geo_attribute_compare.cc File Reference
#include "UI_interface.h"
#include "UI_resources.h"
#include "NOD_math_functions.hh"
#include "node_geometry_util.hh"

Go to the source code of this file.

Namespaces

 blender
 
 blender::nodes
 

Functions

static void geo_node_attribute_compare_layout (uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr)
 
static void geo_node_attribute_compare_init (bNodeTree *UNUSED(tree), bNode *node)
 
static bool operation_tests_equality (const NodeAttributeCompare &node_storage)
 
static void blender::nodes::geo_node_attribute_compare_update (bNodeTree *UNUSED(ntree), bNode *node)
 
static void blender::nodes::do_math_operation (const FloatReadAttribute &input_a, const FloatReadAttribute &input_b, const FloatCompareOperation operation, MutableSpan< bool > span_result)
 
static void blender::nodes::do_equal_operation_float (const FloatReadAttribute &input_a, const FloatReadAttribute &input_b, const float threshold, MutableSpan< bool > span_result)
 
static void blender::nodes::do_equal_operation_float3 (const Float3ReadAttribute &input_a, const Float3ReadAttribute &input_b, const float threshold, MutableSpan< bool > span_result)
 
static void blender::nodes::do_equal_operation_color4f (const Color4fReadAttribute &input_a, const Color4fReadAttribute &input_b, const float threshold, MutableSpan< bool > span_result)
 
static void blender::nodes::do_equal_operation_bool (const BooleanReadAttribute &input_a, const BooleanReadAttribute &input_b, const float UNUSED(threshold), MutableSpan< bool > span_result)
 
static void blender::nodes::do_not_equal_operation_float (const FloatReadAttribute &input_a, const FloatReadAttribute &input_b, const float threshold, MutableSpan< bool > span_result)
 
static void blender::nodes::do_not_equal_operation_float3 (const Float3ReadAttribute &input_a, const Float3ReadAttribute &input_b, const float threshold, MutableSpan< bool > span_result)
 
static void blender::nodes::do_not_equal_operation_color4f (const Color4fReadAttribute &input_a, const Color4fReadAttribute &input_b, const float threshold, MutableSpan< bool > span_result)
 
static void blender::nodes::do_not_equal_operation_bool (const BooleanReadAttribute &input_a, const BooleanReadAttribute &input_b, const float UNUSED(threshold), MutableSpan< bool > span_result)
 
static CustomDataType blender::nodes::get_data_type (GeometryComponent &component, const GeoNodeExecParams &params, const NodeAttributeCompare &node_storage)
 
static AttributeDomain blender::nodes::get_result_domain (const GeometryComponent &component, const GeoNodeExecParams &params, StringRef result_name)
 
static void blender::nodes::attribute_compare_calc (GeometryComponent &component, const GeoNodeExecParams &params)
 
static void blender::nodes::geo_node_attribute_compare_exec (GeoNodeExecParams params)
 
void register_node_type_geo_attribute_compare ()
 

Variables

static bNodeSocketTemplate geo_node_attribute_compare_in []
 
static bNodeSocketTemplate geo_node_attribute_compare_out []
 

Function Documentation

◆ geo_node_attribute_compare_init()

static void geo_node_attribute_compare_init ( bNodeTree UNUSEDtree,
bNode node 
)
static

◆ geo_node_attribute_compare_layout()

static void geo_node_attribute_compare_layout ( uiLayout layout,
bContext UNUSEDC,
PointerRNA ptr 
)
static

◆ operation_tests_equality()

static bool operation_tests_equality ( const NodeAttributeCompare node_storage)
static

◆ register_node_type_geo_attribute_compare()

void register_node_type_geo_attribute_compare ( void  )

Variable Documentation

◆ geo_node_attribute_compare_in

bNodeSocketTemplate geo_node_attribute_compare_in[]
static
Initial value:
= {
{SOCK_GEOMETRY, N_("Geometry")},
{SOCK_STRING, N_("A")},
{SOCK_FLOAT, N_("A"), 0.0, 0.0, 0.0, 0.0, -FLT_MAX, FLT_MAX},
{SOCK_VECTOR, N_("A"), 0.0, 0.0, 0.0, 0.0, -FLT_MAX, FLT_MAX},
{SOCK_RGBA, N_("A"), 0.5, 0.5, 0.5, 1.0},
{SOCK_STRING, N_("B")},
{SOCK_FLOAT, N_("B"), 0.0, 0.0, 0.0, 0.0, -FLT_MAX, FLT_MAX},
{SOCK_VECTOR, N_("B"), 0.0, 0.0, 0.0, 0.0, -FLT_MAX, FLT_MAX},
{SOCK_RGBA, N_("B"), 0.5, 0.5, 0.5, 1.0},
{SOCK_FLOAT, N_("Threshold"), 0.01f, 0.0f, 0.0f, 0.0f, 0.0f, FLT_MAX},
{SOCK_STRING, N_("Result")},
{-1, ""},
}
#define N_(msgid)
@ SOCK_VECTOR
@ SOCK_FLOAT
@ SOCK_GEOMETRY
@ SOCK_STRING
@ SOCK_RGBA

Definition at line 24 of file node_geo_attribute_compare.cc.

Referenced by register_node_type_geo_attribute_compare().

◆ geo_node_attribute_compare_out

bNodeSocketTemplate geo_node_attribute_compare_out[]
static
Initial value:
= {
{SOCK_GEOMETRY, N_("Geometry")},
{-1, ""},
}

Definition at line 39 of file node_geo_attribute_compare.cc.

Referenced by register_node_type_geo_attribute_compare().