|
OCCT-Light 0.1
C ABI and C++ veneer for multi-language CAD workflows
|
C++ veneer for the text-to-shape module. More...
#include <occtl/occtl_text.h>#include <occtl-hpp/core.hpp>#include <occtl-hpp/topo.hpp>#include <string>
Go to the source code of this file.
Classes | |
| struct | occtl::text::TextFacesOptions |
| Optional layout/font knobs for make_faces and make_wires. More... | |
Typedefs | |
| using | occtl::text::TextMetrics = ::occtl_text_metrics_t |
| Formatted text metrics returned by measure. | |
Functions | |
| inline ::occtl_axis2_placement_t | occtl::text::detail::default_ax2 () noexcept |
| Default axis2 placement: origin + Z (main) + X. | |
| inline ::occtl_text_info_t | occtl::text::detail::to_c_info (const std::string &theText, const TextFacesOptions &theOpts, ::occtl_text_layout_options_t &theLayout) |
| TextMetrics | occtl::text::measure (const std::string &theText, const TextFacesOptions &theOpts) |
| Measures formatted text without creating graph topology. Throws occtl::Error on failure. | |
| NodeId | occtl::text::make_faces (Graph &theGraph, const std::string &theText, const TextFacesOptions &theOpts) |
| Builds a Compound of planar text faces and returns its NodeId. Throws occtl::Error on failure. | |
| NodeId | occtl::text::make_wires (Graph &theGraph, const std::string &theText, const TextFacesOptions &theOpts) |
| Builds a Compound of glyph outline wires and returns its NodeId. Throws occtl::Error on failure. | |
C++ veneer for the text-to-shape module.
Mirrors the C info struct as a PascalCase POD with defaults and returns the produced compound NodeId. Failures translate to occtl::Error.
|
inline |
Builds a Compound of planar text faces and returns its NodeId. Throws occtl::Error on failure.
| [in,out] | theGraph | graph receiving the text shape |
| [in] | theText | UTF-8 string; must be non-empty |
| [in] | theOpts | layout and font options; height must be > 0 and exactly one font selector must be set |
|
inline |
Builds a Compound of glyph outline wires and returns its NodeId. Throws occtl::Error on failure.
| [in,out] | theGraph | graph receiving the text shape |
| [in] | theText | UTF-8 string; must be non-empty |
| [in] | theOpts | layout and font options; height must be > 0 and exactly one font selector must be set |
|
inline |
Measures formatted text without creating graph topology. Throws occtl::Error on failure.
| [in] | theText | UTF-8 string; must be non-empty |
| [in] | theOpts | layout and font options; height must be > 0 and exactly one font selector must be set |