Debian Codegraph @

doc/man/man3/ivm/nodes/SoText3.ivm

raw
1 NAME SoText3 SoTxt3 SO_TXT3_ { 3D text shape node }
2
3 INCLUDE nodes/SoText3.h
4
5 DESC {
6 This node defines one or more strings of 3D text. In contrast with
7 \cSoText2\., 3D text can be rotated, scaled, lighted, and textured,
8 just like all other 3D shapes. Each character in a 3D text string is
9 created by extruding an outlined version of the character (in the
10 current typeface) along the current profile, as defined by nodes
11 derived from \cSoProfile\.. The default text profile, if none is
12 specified, is a straight line segment one unit long.
13 \p
14 The text origin is at (0,0,0) after applying the current
15 transformation. The scale of the text is affected by the \vsize\.
16 field of the current \cSoFont\. as well as the current transformation.
17 \p
18 \cSoText3\. uses the current set of materials when rendering. If the
19 material binding is \kOVERALL\., then the whole text is drawn with the
20 first material. If it is \kPER_PART\. or \kPER_PART_INDEXED\., the
21 front part of the text is drawn with the first material, the sides
22 with the second, and the back with the third.
23 \p
24 Textures are applied to 3D text as follows. On the front and back
25 faces of the text, the texture origin is at the base point of the
26 first string; the base point is at the lower left for justification
27 \kLEFT\., at the lower right for \kRIGHT\., and at the lower center
28 for \kCENTER\.. The texture is scaled equally in both S and T
29 dimensions, with the font height representing 1 unit. S increases to
30 the right on the front faces and to the left on the back faces. On the
31 sides, the texture is scaled the same as on the front and back. S is
32 equal to 0 at the rear edge of the side faces. The T origin can occur
33 anywhere along each character, depending on how that character's
34 outline is defined.
35 }
36
37 ENUM Justification {
38 LEFT "Left edges of all strings are aligned",
39 RIGHT "Right edges of all strings are aligned",
40 CENTER "Centers of all strings are aligned"
41 }
42
43 ENUM Part {
44 FRONT "Front faces of characters",
45 SIDES "Extruded sides of characters",
46 BACK "Back faces of characters",
47 ALL "All parts"
48 }
49
50 FIELD string {
51 The text string(s) to display. Each string will appear on its own line.
52 The string(s) can be ascii or UTF-8.
53 }
54
55 FIELD spacing {
56 Defines the distance (in the negative y direction) between the base
57 points of successive strings, measured with respect to the current
58 font height. A value of 1 indicates single spacing, a value of 2
59 indicates double spacing, and so on.
60 }
61
62 FIELD parts {
63 Which parts of text are visible. Note that, for speed, the default for
64 this field is \kFRONT\. only.
65 }
66
67 FIELD justification {
68 Indicates placement and alignment of strings. With \kLEFT\.
69 justification, the left edge of the first line is at the (transformed)
70 origin, and all left edges are aligned. \kRIGHT\. justification is
71 similar. \kCENTER\. justification places the center of the first
72 string at the (transformed) origin, with the centers of all remaining
73 strings aligned under it.
74 }
75
76 METHOD "" SoText3() {
77 Creates a 3D text node with default settings.
78 }
79
80 METHOD "" static SoType getClassTypeId() {
81 Returns type identifier for this class.
82 }
83
84 ACTION SoGLRenderAction {
85 Draws text based on the current font, profiles, transformation,
86 drawing style, material, texture, complexity, and so on.
87 }
88
89 ACTION SoRayPickAction {
90 Performs a pick on the text. The string index and character position
91 are available from the \cSoTextDetail\..
92 }
93
94 ACTION SoGetBoundingBoxAction {
95 Computes the bounding box that encloses the text.
96 }
97
98 ACTION SoCallbackAction {
99 If any triangle callbacks are registered with the action, they will be
100 invoked for each successive triangle used to approximate the text
101 geometry.
102 }
103
104 ALSO {
105 SoFont,
106 SoProfile,
107 SoText2,
108 SoTextDetail
109 }