Blender
V3.3
|
Classes | |
struct | TextLayout |
Functions | |
static void | node_declare (NodeDeclarationBuilder &b) |
static void | node_layout (uiLayout *layout, struct bContext *C, PointerRNA *ptr) |
static void | node_init (bNodeTree *UNUSED(ntree), bNode *node) |
static void | node_update (bNodeTree *ntree, 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, InstancesComponent &instances) |
static void | add_instances_from_handles (InstancesComponent &instances, const Map< int, int > &char_handles, const TextLayout &layout) |
static void | create_attributes (GeoNodeExecParams ¶ms, const TextLayout &layout, InstancesComponent &instances) |
static void | node_geo_exec (GeoNodeExecParams params) |
|
static |
Definition at line 318 of file node_geo_string_to_curves.cc.
References handles, InstancesComponent::instance_reference_handles(), InstancesComponent::instance_transforms(), blender::threading::parallel_for(), blender::nodes::node_geo_string_to_curves_cc::TextLayout::positions, and InstancesComponent::resize().
Referenced by node_geo_exec().
|
static |
Definition at line 334 of file node_geo_string_to_curves.cc.
References ATTR_DOMAIN_INSTANCE, InstancesComponent::attributes_for_write(), blender::nodes::node_geo_string_to_curves_cc::TextLayout::char_codes, blender::bke::SpanAttributeWriter< T >::finish(), blender::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 node_geo_exec().
|
static |
Definition at line 271 of file node_geo_string_to_curves.cc.
References InstancesComponent::add_reference(), blender::float4x4::apply_scale(), BKE_nurbList_free(), BKE_vfont_build_char(), blender::nodes::node_geo_string_to_curves_cc::TextLayout::char_codes, GeometrySet::create_with_curves(), blender::bke::curve_legacy_to_curves(), curves, blender::nodes::node_geo_string_to_curves_cc::TextLayout::final_font_size, Curves::geometry, get_pivot_point(), handles, blender::float4x4::identity(), blender::Vector< T, InlineBufferCapacity, Allocator >::index_range(), CharInfo::mat_nr, Curve::nurb, OB_FONT, params, blender::nodes::node_geo_string_to_curves_cc::TextLayout::pivot_points, Curve::resolu, Curve::type, Curve::vfont, and blender::bke::CurvesGeometry::wrap().
Referenced by node_geo_exec().
|
static |
Definition at line 105 of file node_geo_string_to_curves.cc.
References curves, 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, params, and NodeGeometryStringToCurves::pivot_mode.
Referenced by create_curve_instances().
|
static |
Definition at line 160 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(), BLI_strncpy(), blender::nodes::node_geo_string_to_curves_cc::TextLayout::char_codes, CU_CHINFO_OVERFLOW, CU_OVERFLOW_TRUNCATE, blender::Vector< T, InlineBufferCapacity, Allocator >::data(), blender::nodes::node_geo_string_to_curves_cc::TextLayout::final_font_size, FO_DUPLI, GEO_NODE_STRING_TO_CURVES_MODE_OVERFLOW, blender::nodes::node_geo_string_to_curves_cc::TextLayout::line_numbers, CharTrans::linenr, max, MAXTEXTBOX, MEM_calloc_arrayN, MEM_callocN, MEM_freeN, MEM_mallocN, MEM_SAFE_FREE, OB_FONT, offset, NodeGeometryStringToCurves::overflow, params, blender::nodes::node_geo_string_to_curves_cc::TextLayout::positions, blender::Array< T, InlineBufferCapacity, Allocator >::reinitialize(), blender::Vector< T, InlineBufferCapacity, Allocator >::remove_last(), blender::Vector< T, InlineBufferCapacity, Allocator >::resize(), blender::Vector< T, InlineBufferCapacity, Allocator >::size(), blender::nodes::node_geo_string_to_curves_cc::TextLayout::text, text_free(), TIP_, blender::nodes::node_geo_string_to_curves_cc::TextLayout::truncated_text, CharTrans::xof, and CharTrans::yof.
Referenced by node_geo_exec().
|
static |
Definition at line 24 of file node_geo_string_to_curves.cc.
References usdtokens::b(), GEO_NODE_STRING_TO_CURVES_MODE_SCALE_TO_FIT, GEO_NODE_STRING_TO_CURVES_MODE_TRUNCATE, blender::nodes::SocketDeclaration::make_available(), N_, node, and PROP_DISTANCE.
Referenced by register_node_type_geo_string_to_curves().
|
static |
Definition at line 367 of file node_geo_string_to_curves.cc.
References add_instances_from_handles(), create_attributes(), create_curve_instances(), GEO_NODE_STRING_TO_CURVES_MODE_TRUNCATE, GeometrySet::get_component_for_write(), get_text_layout(), NodeGeometryStringToCurves::overflow, and params.
Referenced by register_node_type_geo_string_to_curves().
|
static |
Definition at line 79 of file node_geo_string_to_curves.cc.
References BKE_vfont_builtin_get(), 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, and node.
|
static |
Definition at line 59 of file node_geo_string_to_curves.cc.
References C, IFACE_, ptr, UI_TEMPLATE_ID_FILTER_ALL, uiItemR(), uiLayoutSetPropDecorate(), uiLayoutSetPropSep(), and uiTemplateID().
Referenced by register_node_type_geo_string_to_curves().
|
static |
Definition at line 91 of file node_geo_string_to_curves.cc.
References GEO_NODE_STRING_TO_CURVES_MODE_OVERFLOW, GEO_NODE_STRING_TO_CURVES_MODE_TRUNCATE, next, node, nodeSetSocketAvailability(), ntree, and NodeGeometryStringToCurves::overflow.
Referenced by register_node_type_geo_string_to_curves().