Blender V4.5
blender::nodes::node_geo_string_to_curves_cc Namespace Reference

Classes

struct  TextLayout

Functions

static void node_declare (NodeDeclarationBuilder &b)
static void node_layout (uiLayout *layout, bContext *C, PointerRNA *ptr)
static void node_init (bNodeTree *, bNode *node)
static float3 get_pivot_point (GeoNodeExecParams &params, bke::CurvesGeometry &curves)
static std::optional< TextLayoutget_text_layout (GeoNodeExecParams &params)
static Map< int, int > create_curve_instances (GeoNodeExecParams &params, TextLayout &layout, bke::Instances &instances)
static void add_instances_from_handles (bke::Instances &instances, const Map< int, int > &char_handles, const TextLayout &layout)
static void create_attributes (GeoNodeExecParams &params, const TextLayout &layout, bke::Instances &instances)
static void node_geo_exec (GeoNodeExecParams params)
static void node_register ()

Function Documentation

◆ add_instances_from_handles()

◆ create_attributes()

◆ create_curve_instances()

Map< int, int > blender::nodes::node_geo_string_to_curves_cc::create_curve_instances ( GeoNodeExecParams & params,
TextLayout & layout,
bke::Instances & instances )
static

◆ get_pivot_point()

◆ get_text_layout()

std::optional< TextLayout > blender::nodes::node_geo_string_to_curves_cc::get_text_layout ( GeoNodeExecParams & params)
static

Definition at line 142 of file node_geo_string_to_curves.cc.

References NodeGeometryStringToCurves::align_x, NodeGeometryStringToCurves::align_y, blender::nodes::GeoNodeExecParams::anonymous_attribute_output_is_required(), BKE_vfont_to_curve_ex(), BLI_str_utf8_as_utf32(), BLI_str_utf8_offset_from_index(), BLI_strlen_utf8_ex(), blender::nodes::node_geo_string_to_curves_cc::TextLayout::char_codes, CU_OVERFLOW_TRUNCATE, Vector< T, InlineBufferCapacity, Allocator >::data(), blender::nodes::Error, blender::nodes::GeoNodeExecParams::error_message_add(), blender::nodes::GeoNodeExecParams::extract_input(), blender::nodes::node_geo_string_to_curves_cc::TextLayout::final_font_size, FO_DUPLI, GEO_NODE_STRING_TO_CURVES_MODE_OVERFLOW, get_text_layout(), i, blender::IndexRange::IndexRange(), CharTrans::is_overflow, blender::nodes::node_geo_string_to_curves_cc::TextLayout::line_numbers, CharTrans::linenr, MAXTEXTBOX, MEM_calloc_arrayN(), MEM_freeN(), MEM_malloc_arrayN(), MEM_SAFE_FREE, blender::nodes::GeoNodeExecParams::node(), OB_FONT, NodeGeometryStringToCurves::overflow, blender::nodes::node_geo_string_to_curves_cc::TextLayout::positions, Array< T, InlineBufferCapacity, Allocator >::reinitialize(), Vector< T, InlineBufferCapacity, Allocator >::remove_last(), Vector< T, InlineBufferCapacity, Allocator >::resize(), Vector< T, InlineBufferCapacity, Allocator >::size(), blender::nodes::node_geo_string_to_curves_cc::TextLayout::text, TIP_, blender::nodes::node_geo_string_to_curves_cc::TextLayout::truncated_text, CharTrans::xof, and CharTrans::yof.

Referenced by get_text_layout(), and node_geo_exec().

◆ node_declare()

◆ node_geo_exec()

◆ node_init()

◆ node_layout()

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

◆ node_register()