|
Blender V5.0
|
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 ¶ms, bke::CurvesGeometry &curves) |
| static std::optional< TextLayout > | get_text_layout (GeoNodeExecParams ¶ms) |
| static Map< int, int > | create_curve_instances (GeoNodeExecParams ¶ms, 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 ¶ms, const TextLayout &layout, bke::Instances &instances) |
| static void | node_geo_exec (GeoNodeExecParams params) |
| static void | node_register () |
|
static |
Definition at line 321 of file node_geo_string_to_curves.cc.
References handles, blender::threading::parallel_for(), blender::nodes::node_geo_string_to_curves_cc::TextLayout::positions, blender::bke::Instances::reference_handles_for_write(), blender::bke::Instances::resize(), and blender::bke::Instances::transforms_for_write().
Referenced by node_geo_exec().
|
static |
Definition at line 338 of file node_geo_string_to_curves.cc.
References blender::bke::Instances::attributes_for_write(), blender::nodes::node_geo_string_to_curves_cc::TextLayout::char_codes, create_attributes(), blender::bke::SpanAttributeWriter< T >::finish(), i, Vector< T, InlineBufferCapacity, Allocator >::index_range(), blender::nodes::node_geo_string_to_curves_cc::TextLayout::line_numbers, blender::bke::MutableAttributeAccessor::lookup_or_add_for_write_only_span(), params, blender::nodes::node_geo_string_to_curves_cc::TextLayout::pivot_points, and blender::bke::SpanAttributeWriter< T >::span.
Referenced by create_attributes(), and node_geo_exec().
|
static |
Returns a mapping of UTF32 character code to instance handle.
Definition at line 263 of file node_geo_string_to_curves.cc.
References blender::bke::Instances::add_reference(), BKE_nurbList_free(), BKE_vfont_char_build(), BLI_str_utf32_as_utf8(), blender::nodes::node_geo_string_to_curves_cc::TextLayout::char_codes, blender::bke::curve_legacy_to_curves(), blender::geometry::debug_randomize_curve_order(), blender::nodes::node_geo_string_to_curves_cc::TextLayout::final_font_size, blender::nodes::GeometrySet::from_curves(), blender::math::from_scale(), Curves::geometry, get_pivot_point(), handles, i, Vector< T, InlineBufferCapacity, Allocator >::index_range(), len, CharInfo::mat_nr, blender::bke::GeometrySet::name, Curve::nurb, OB_FONT, Curve::ob_type, params, blender::nodes::node_geo_string_to_curves_cc::TextLayout::pivot_points, Curve::resolu, blender::bke::CurvesGeometry::transform(), and Curve::vfont.
Referenced by node_geo_exec().
|
static |
Definition at line 86 of file node_geo_string_to_curves.cc.
References GEO_NODE_STRING_TO_CURVES_PIVOT_MODE_BOTTOM_CENTER, GEO_NODE_STRING_TO_CURVES_PIVOT_MODE_BOTTOM_LEFT, GEO_NODE_STRING_TO_CURVES_PIVOT_MODE_BOTTOM_RIGHT, GEO_NODE_STRING_TO_CURVES_PIVOT_MODE_MIDPOINT, GEO_NODE_STRING_TO_CURVES_PIVOT_MODE_TOP_CENTER, GEO_NODE_STRING_TO_CURVES_PIVOT_MODE_TOP_LEFT, GEO_NODE_STRING_TO_CURVES_PIVOT_MODE_TOP_RIGHT, max, min, blender::bounds::min_max(), params, NodeGeometryStringToCurves::pivot_mode, and blender::bke::CurvesGeometry::positions().
Referenced by create_curve_instances().
|
static |
Definition at line 143 of file node_geo_string_to_curves.cc.
References NodeGeometryStringToCurves::align_x, NodeGeometryStringToCurves::align_y, 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::node_geo_string_to_curves_cc::TextLayout::final_font_size, FO_DUPLI, GEO_NODE_STRING_TO_CURVES_MODE_OVERFLOW, i, 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, OB_FONT, CharTrans::offset, NodeGeometryStringToCurves::overflow, params, 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, text_free(), TIP_, and blender::nodes::node_geo_string_to_curves_cc::TextLayout::truncated_text.
Referenced by node_geo_exec().
|
static |
Definition at line 30 of file node_geo_string_to_curves.cc.
References b, BLT_I18NCONTEXT_ID_TEXT, blender::nodes::decl::Float::default_value, GEO_NODE_STRING_TO_CURVES_MODE_OVERFLOW, GEO_NODE_STRING_TO_CURVES_MODE_SCALE_TO_FIT, GEO_NODE_STRING_TO_CURVES_MODE_TRUNCATE, blender::nodes::SocketDeclaration::make_available(), min, node_declare(), blender::nodes::SocketDeclaration::optional_label, NodeGeometryStringToCurves::overflow, and PROP_DISTANCE.
Referenced by node_declare(), and node_register().
|
static |
Definition at line 367 of file node_geo_string_to_curves.cc.
References add_instances_from_handles(), create_attributes(), create_curve_instances(), blender::nodes::GeometrySet::from_instances(), GEO_NODE_STRING_TO_CURVES_MODE_TRUNCATE, get_text_layout(), node_geo_exec(), NodeGeometryStringToCurves::overflow, and params.
Referenced by node_geo_exec(), and node_register().
Definition at line 74 of file node_geo_string_to_curves.cc.
References BKE_vfont_builtin_ensure(), data, GEO_NODE_STRING_TO_CURVES_ALIGN_X_LEFT, GEO_NODE_STRING_TO_CURVES_ALIGN_Y_TOP_BASELINE, GEO_NODE_STRING_TO_CURVES_MODE_OVERFLOW, GEO_NODE_STRING_TO_CURVES_PIVOT_MODE_BOTTOM_LEFT, bNode::id, MEM_callocN(), and bNode::storage.
Referenced by node_register().
|
static |
Definition at line 63 of file node_geo_string_to_curves.cc.
References C, IFACE_, uiLayout::prop(), ptr, UI_ITEM_NONE, uiTemplateID(), uiLayout::use_property_decorate_set(), and uiLayout::use_property_split_set().
Referenced by node_register().
|
static |
Definition at line 396 of file node_geo_string_to_curves.cc.
References blender::bke::bNodeType::declare, blender::bke::bNodeType::draw_buttons, blender::bke::bNodeType::enum_name_legacy, GEO_NODE_STRING_TO_CURVES, geo_node_type_base(), blender::bke::bNodeType::geometry_node_execute, blender::bke::bNodeType::initfunc, blender::bke::bNodeType::nclass, NODE_CLASS_GEOMETRY, node_copy_standard_storage(), node_declare(), node_free_standard_storage(), node_geo_exec(), node_init(), node_layout(), node_register(), blender::bke::node_register_type(), blender::bke::node_type_size(), blender::bke::node_type_storage(), blender::bke::bNodeType::ui_description, and blender::bke::bNodeType::ui_name.
Referenced by node_register().