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

Go to the source code of this file.

Namespaces

 blender
 
 blender::nodes
 

Functions

static void geo_node_attribute_clamp_layout (uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr)
 
static void geo_node_attribute_clamp_init (bNodeTree *UNUSED(tree), bNode *node)
 
static void geo_node_attribute_clamp_update (bNodeTree *UNUSED(ntree), bNode *node)
 
template<typename T >
T blender::nodes::clamp_value (const T val, const T min, const T max)
 
template<>
float blender::nodes::clamp_value (const float val, const float min, const float max)
 
template<>
int blender::nodes::clamp_value (const int val, const int min, const int max)
 
template<>
float3 blender::nodes::clamp_value (const float3 val, const float3 min, const float3 max)
 
template<>
Color4f blender::nodes::clamp_value (const Color4f val, const Color4f min, const Color4f max)
 
template<typename T >
static void blender::nodes::clamp_attribute (Span< T > read_span, MutableSpan< T > span, const T min, const T max)
 
static AttributeDomain blender::nodes::get_result_domain (const GeometryComponent &component, StringRef source_name, StringRef result_name)
 
static void blender::nodes::clamp_attribute (GeometryComponent &component, const GeoNodeExecParams &params)
 
static void blender::nodes::geo_node_attribute_clamp_exec (GeoNodeExecParams params)
 
void register_node_type_geo_attribute_clamp ()
 

Variables

static bNodeSocketTemplate geo_node_attribute_clamp_in []
 
static bNodeSocketTemplate geo_node_attribute_clamp_out []
 

Function Documentation

◆ geo_node_attribute_clamp_init()

static void geo_node_attribute_clamp_init ( bNodeTree UNUSEDtree,
bNode node 
)
static

◆ geo_node_attribute_clamp_layout()

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

Definition at line 43 of file node_geo_attribute_clamp.cc.

References ptr, and uiItemR().

Referenced by register_node_type_geo_attribute_clamp().

◆ geo_node_attribute_clamp_update()

static void geo_node_attribute_clamp_update ( bNodeTree UNUSEDntree,
bNode node 
)
static

◆ register_node_type_geo_attribute_clamp()

void register_node_type_geo_attribute_clamp ( void  )

Variable Documentation

◆ geo_node_attribute_clamp_in

bNodeSocketTemplate geo_node_attribute_clamp_in[]
static
Initial value:
= {
{SOCK_GEOMETRY, N_("Geometry")},
{SOCK_STRING, N_("Attribute")},
{SOCK_STRING, N_("Result")},
{SOCK_VECTOR, N_("Min"), 0.0f, 0.0f, 0.0f, 0.0f, -FLT_MAX, FLT_MAX},
{SOCK_VECTOR, N_("Max"), 1.0f, 1.0f, 1.0f, 0.0f, -FLT_MAX, FLT_MAX},
{SOCK_FLOAT, N_("Min"), 0.0f, 0.0f, 0.0f, 0.0f, -FLT_MAX, FLT_MAX},
{SOCK_FLOAT, N_("Max"), 1.0f, 0.0f, 0.0f, 0.0f, -FLT_MAX, FLT_MAX},
{SOCK_INT, N_("Min"), 0.0f, 0.0f, 0.0f, 0.0f, -100000, 100000},
{SOCK_INT, N_("Max"), 100.0f, 0.0f, 0.0f, 0.0f, -100000, 100000},
{SOCK_RGBA, N_("Min"), 0.5, 0.5, 0.5, 1.0},
{SOCK_RGBA, N_("Max"), 0.5, 0.5, 0.5, 1.0},
{-1, ""},
}
#define N_(msgid)
@ SOCK_INT
@ SOCK_VECTOR
@ SOCK_FLOAT
@ SOCK_GEOMETRY
@ SOCK_STRING
@ SOCK_RGBA

Definition at line 23 of file node_geo_attribute_clamp.cc.

Referenced by register_node_type_geo_attribute_clamp().

◆ geo_node_attribute_clamp_out

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

Definition at line 38 of file node_geo_attribute_clamp.cc.

Referenced by register_node_type_geo_attribute_clamp().