SOTEXTDETAIL(3iv)
π SoTextDetail β the 3IV manual, but make it make sense π
okay bestie, gather round, because today we're talking about SoTextDetail from the SoTextDetail(3IV) manual page. she's a lil class that stores detail information about a text node. that's the whole vibe. β¨
πΈ INHERITS FROM πΈ
SoDetail > SoTextDetail
so she's a SoDetail girlie with her own main character upgrade. the family tree is giving lineage. π
β¨ SYNOPSIS β¨
#include <Inventor/details/SoTextDetail.h>
Methods from class SoTextDetail:
SoTextDetail()
virtual ~SoTextDetail()
int32_t getStringIndex() const
int32_t getCharacterIndex() const
SoText3::Part getPart() const
SbBox3f getBoundingBox() const
SbXfBox3f getXfBoundingBox() const
static SoType getClassTypeId()
Methods from class SoDetail:
SoDetail * copy() const
virtual SoType getTypeId() const
SbBool isOfType(SoType type) const
look at her. seven methods of her own plus the inherited ones. she's booked and busy fr fr. π
π¦ DESCRIPTION π¦
This class contains detail information about a point on a text shape (SoText2 or SoText3). It contains the part of the text, the string, and the character that were hit or generated.
so likeβ¦ when you click on some text and the library is like "bestie it was this exact letter," that's this class. she's the receipts. π§Ύβ¨
π METHODS π
SoTextDetail()virtual ~SoTextDetail()
Constructor and destructor. the birth and the departure. iconic behavior honestly. πΌπ
int32_t getStringIndex() const
Returns the index of the relevant string within a multiple-value string field of a text node.
so if your text node is out here holding several strings at once, this tells you which one was the one. index energy. π’
int32_t getCharacterIndex() const
Returns the index of the relevant character within the string. For example, if the character of detail was the "u" within "Splurmph", the character index would be 3.
ok let's count together bestie: S=0, p=1, l=2, u=3. yes we're zero-indexed, yes we're counting from the start, no we're not arguing about it. π
SoText3::Part getPart() const
For SoText3, this returns which part was picked or generated.
she's specific. she knows exactly which piece of the text you're talking about. no guessing, no vague energy. π
SbBox3f getBoundingBox() constSbXfBox3f getXfBoundingBox() const
When the detail is returned from picking, these return the object-space bounding box of the character that was intersected. Otherwise, they return an empty box. The second method returns an SbXfBox3f instead of a SbBox3f. These methods are implemented only for 3D text.
π¨ lowkey important: if you're not in a picking situation, you get an empty box. and these two are 3D text only, so don't come looking for them in 2D land. ngl that's just how it is. π
static SoType getClassTypeId()
Returns type identifier for this class. the class's lil ID card. show it at the door. πͺͺβ¨
π SEE ALSO π
SoText2, SoText3, SoDetail, SoPickedPoint, SoPrimitiveVertex
the whole friend group. go say hi. π«Ά
and that's the tea, bestie π΅ β this was the SoTextDetail(3IV) page, footer and all: SoTextDetail(3IV)(). no date, no version drama, just the page name holding it down at the bottom like always. go pick some text. slay. ππΈβ¨
π¦ where this page comes from
- debian bookworm: inventor-doc 2.1.5-10+dfsg-2 Β· LGPL-2.0-or-later
- debian trixie: inventor-doc 2.1.6+ds-2 Β· LGPL-2.0-or-later
- ubuntu jammy: inventor-doc 2.1.5-10-24
- ubuntu noble: inventor-doc 2.1.5-10+dfsg-2.1build2 Β· LGPL-2.0-or-later
- ubuntu questing: inventor-doc 2.1.6+ds-2
- ubuntu resolute: inventor-doc 2.1.6.1+ds-1 Β· LGPL-2.0-or-later
- ubuntu stonking: inventor-doc 2.1.6.1+ds-1 Β· LGPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms