Blender V5.3
blender::nodes::node_geo_string_to_curves_cc Namespace Reference

Classes

struct  TextLayout

Functions

static void node_declare (NodeDeclarationBuilder &b)
static void node_init (bNodeTree *, bNode *node)
static float3 get_pivot_point (GeoNodeExecParams &params, bke::CurvesGeometry &curves)
static std::optional< TextLayout > get_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 ()

Variables

static const EnumPropertyItem rna_node_geometry_string_to_curves_overflow_items []
static const EnumPropertyItem rna_node_geometry_string_to_curves_align_x_items []
static const EnumPropertyItem rna_node_geometry_string_to_curves_align_y_items []
static const EnumPropertyItem rna_node_geometry_string_to_curves_pivot_mode []

Function Documentation

◆ add_instances_from_handles()

◆ create_attributes()

◆ create_curve_instances()

◆ get_pivot_point()

◆ get_text_layout()

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

◆ node_declare()

◆ node_geo_exec()

◆ node_init()

void blender::nodes::node_geo_string_to_curves_cc::node_init ( bNodeTree * ,
bNode * node )
static

Definition at line 211 of file node_geo_string_to_curves.cc.

References blender::data, node, and node_init().

Referenced by node_init(), and node_register().

◆ node_register()

Variable Documentation

◆ rna_node_geometry_string_to_curves_align_x_items

const EnumPropertyItem blender::nodes::node_geo_string_to_curves_cc::rna_node_geometry_string_to_curves_align_x_items[]
static
Initial value:
= {
"LEFT",
ICON_ALIGN_LEFT,
N_("Left"),
N_("Align text to the left")},
"CENTER",
ICON_ALIGN_CENTER,
N_("Center"),
N_("Align text to the center")},
"RIGHT",
ICON_ALIGN_RIGHT,
N_("Right"),
N_("Align text to the right")},
"JUSTIFY",
ICON_ALIGN_JUSTIFY,
N_("Justify"),
N_("Align text to the left and the right")},
"FLUSH",
ICON_ALIGN_FLUSH,
N_("Flush"),
N_("Align text to the left and the right, with equal character spacing")},
{0, nullptr, 0, nullptr, nullptr},
}
@ GEO_NODE_STRING_TO_CURVES_ALIGN_X_FLUSH
@ GEO_NODE_STRING_TO_CURVES_ALIGN_X_CENTER
@ GEO_NODE_STRING_TO_CURVES_ALIGN_X_JUSTIFY
@ GEO_NODE_STRING_TO_CURVES_ALIGN_X_RIGHT
@ GEO_NODE_STRING_TO_CURVES_ALIGN_X_LEFT
#define N_(msgid)

Definition at line 55 of file node_geo_string_to_curves.cc.

Referenced by node_declare().

◆ rna_node_geometry_string_to_curves_align_y_items

const EnumPropertyItem blender::nodes::node_geo_string_to_curves_cc::rna_node_geometry_string_to_curves_align_y_items[]
static
Initial value:
= {
"TOP",
ICON_ALIGN_TOP,
N_("Top"),
N_("Align text to the top")},
"TOP_BASELINE",
ICON_ALIGN_TOP,
N_("Top Baseline"),
N_("Align text to the top line's baseline")},
"MIDDLE",
ICON_ALIGN_MIDDLE,
N_("Middle"),
N_("Align text to the middle")},
"BOTTOM_BASELINE",
ICON_ALIGN_BOTTOM,
N_("Bottom Baseline"),
N_("Align text to the bottom line's baseline")},
"BOTTOM",
ICON_ALIGN_BOTTOM,
N_("Bottom"),
N_("Align text to the bottom")},
{0, nullptr, 0, nullptr, nullptr},
}
@ GEO_NODE_STRING_TO_CURVES_ALIGN_Y_BOTTOM_BASELINE
@ GEO_NODE_STRING_TO_CURVES_ALIGN_Y_TOP
@ GEO_NODE_STRING_TO_CURVES_ALIGN_Y_TOP_BASELINE
@ GEO_NODE_STRING_TO_CURVES_ALIGN_Y_BOTTOM
@ GEO_NODE_STRING_TO_CURVES_ALIGN_Y_MIDDLE

Definition at line 84 of file node_geo_string_to_curves.cc.

Referenced by node_declare().

◆ rna_node_geometry_string_to_curves_overflow_items

const EnumPropertyItem blender::nodes::node_geo_string_to_curves_cc::rna_node_geometry_string_to_curves_overflow_items[]
static
Initial value:
= {
"OVERFLOW",
ICON_NONE,
N_("Overflow"),
N_("Let the text use more space than the specified height")},
"SCALE_TO_FIT",
ICON_NONE,
N_("Scale To Fit"),
N_("Scale the text size to fit inside the width and height")},
"TRUNCATE",
ICON_NONE,
N_("Truncate"),
N_("Only output curves that fit within the width and height. Output the remainder to the "
"\"Remainder\" output.")},
{0, nullptr, 0, nullptr, nullptr},
}
@ GEO_NODE_STRING_TO_CURVES_MODE_TRUNCATE
@ GEO_NODE_STRING_TO_CURVES_MODE_OVERFLOW
@ GEO_NODE_STRING_TO_CURVES_MODE_SCALE_TO_FIT

Definition at line 35 of file node_geo_string_to_curves.cc.

Referenced by node_declare().

◆ rna_node_geometry_string_to_curves_pivot_mode

const EnumPropertyItem blender::nodes::node_geo_string_to_curves_cc::rna_node_geometry_string_to_curves_pivot_mode[]
static

Definition at line 113 of file node_geo_string_to_curves.cc.

Referenced by node_declare().