Debian Codegraph @

doc/man/man3/ivm/details/SoTextDetail.ivm

raw
1 NAME SoTextDetail SoTxtDtl "" { stores detail information about a text node }
2
3 INCLUDE details/SoTextDetail.h
4
5 DESC {
6 This class contains detail information about a point on a text shape
7 (\cSoText2\. or \cSoText3\.). It contains the part of the text, string,
8 and character that were hit or generated.
9 }
10
11 METHOD "" SoTextDetail() {}
12 METHOD "" virtual ~SoTextDetail() { Constructor and destructor. }
13
14 METHOD getStrInd int32_t getStringIndex() const {
15 Returns the index of the relevant string within a multiple-value
16 \vstring\. field of a text node.
17 }
18
19 METHOD getCharInd int32_t getCharacterIndex() const {
20 Returns the index of the relevant character within the string. For
21 example, if the character of detail was the "u" within "Splurmph", the
22 character index would be 3.
23 }
24
25 BEGIN C++
26 METHOD "" SoText3::Part getPart() const {
27 For \cSoText3\., this returns which part was picked or generated.
28 }
29 END
30 BEGIN C
31 METHOD "" SoText3Part getPart() const {
32 For \cSoText3\., this returns which part was picked or generated.
33 }
34 END
35
36 METHOD getBBox SbBox3f getBoundingBox() const {}
37 METHOD getXfBBox SbXfBox3f getXfBoundingBox() const {
38 When the detail is returned from picking, these return the
39 object-space bounding box of the character that was intersected.
40 Otherwise, they return an empty box. The second method returns an
41 \cSbXfBox3f\. instead of a \cSbBox3f\.. These methods are implemented
42 only for 3D text.
43 }
44
45 METHOD "" static SoType getClassTypeId() {
46 Returns type identifier for this class.
47 }
48
49 ALSO { SoText2, SoText3, SoDetail, SoPickedPoint, SoPrimitiveVertex }